{"id":"CVE-2022-24845","published":"2022-04-13T21:15:16Z","modified":"2025-04-22T18:15:47Z","title":"Integer bounds error in Vyper","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In affected versions, the return of `<iface>.returns_int128()` is not validated to fall within the bounds of `int128`. This issue can result in a misinterpretation of the integer value and lead to incorrect behavior. As of v0.3.0, `<iface>.returns_int128()` is validated in simple expressions, but not complex expressions. Users are advised to upgrade. There is no known workaround for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01426,"percentile":0.72887,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b","tags":["x_refsource_MISC"]},{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7h","tags":["x_refsource_CONFIRM"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":14.58},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":["< 0.3.2"]}],"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":["<0.3.2"],"patched":["0.3.2"],"from":["GHSA-j2x6-9323-fp7h","PYSEC-2022-198"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-0355","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vyperlang-vyper-cve-2022-24788","children":[{"from":"CVE-2022-24845","to":"CVE-2022-29255","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["vyper/codegen/external_call.py"],"commits":["https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b","https://github.com/vyperlang/vyper/commit/6b4d8ff185de071252feaa1c319712b2d6577f8d"],"basis":"rarely changed file"}]}]}}