{"id":"CVE-2021-41122","published":"2021-10-05T23:00:11Z","modified":"2024-08-04T02:59:31Z","title":"Bounds check missing for decimal args in Vyper","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"Vyper is a Pythonic Smart Contract Language for the EVM. In affected versions external functions did not properly validate the bounds of decimal arguments. The can lead to logic errors. This issue has been resolved in version 0.3.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00803,"percentile":0.53483,"provenance":"source"},"cwes":[{"id":"CWE-682","name":"Incorrect Calculation"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vyperlang/vyper/pull/2447","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":10.7},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":["< 0.3.0"]}],"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":["<0.3.0"],"patched":["0.3.0"],"from":["GHSA-c7pr-343r-5c46","PYSEC-2021-366"],"provenance":"source"}],"summary":{"text":"A bounds-check flaw in Vyper, the Pythonic smart contract language for the EVM, leaves external functions unable to properly validate the bounds of decimal arguments. An attacker with low-privilege network access (no user interaction required) can supply out-of-range decimal inputs to affected external functions, leading to logic errors in contract behaviour.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:09Z"},"euvd":{"id":"EUVD-2021-0460","exploited":false,"provenance":"source"}}