原始 OSV JSON
{
"id": "GHSA-c7pr-343r-5c46",
"aliases": [
"CVE-2021-41122"
],
"details": "### Impact\n\nThe following code does not properly validate that its input is in bounds.\n\n```python\n@external\ndef foo(x: decimal) -> decimal:\n return x\n```\n\n### Patches\n0.3.0 / #2447\n\n### Workarounds\nDon't use decimal args\n\n",
"summary": "missing clamps for decimal args in external functions",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.0"
}
]
}
],
"package": {
"name": "vyper",
"ecosystem": "PyPI"
}
}
],
"modified": "2024-11-18T22:44:51Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
}
],
"published": "2021-10-06T17:48:46Z",
"references": [
{
"url": "https://github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41122",
"type": "ADVISORY"
},
{
"url": "https://github.com/vyperlang/vyper/pull/2447",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2021-366.yaml",
"type": "WEB"
},
{
"url": "https://github.com/vyperlang/vyper",
"type": "PACKAGE"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-682"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-10-05T23:15:00Z",
"github_reviewed_at": "2021-10-06T13:26:05Z"
}
}