{"id":"CVE-2022-24845","summary":"Integer bounds error in Vyper","details":"Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In affected versions, the return of `\u003ciface\u003e.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, `\u003ciface\u003e.returns_int128()` is validated in simple expressions, but not complex expressions. Users are advised to upgrade. There is no known workaround for this issue.","aliases":["GHSA-j2x6-9323-fp7h","PYSEC-2022-198"],"modified":"2026-08-12T03:51:09.882697467Z","published":"2022-04-13T21:15:16Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24845.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-190"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24845.json"},{"type":"ADVISORY","url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24845"},{"type":"FIX","url":"https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vyperlang/vyper","events":[{"introduced":"0"},{"fixed":"3b6a4117dcf1215d4cca19ca5a4c7d1ede6e4d44"},{"fixed":"049dbdc647b2ce838fae7c188e6bb09cf16e470b"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.3.2"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*"}}],"versions":["v0.3.1","v0.3.0","v0.2.16","v0.2.15","v0.2.14","v0.2.13","v0.2.12","v0.2.11","v0.2.10","v0.2.9","v0.2.8","v0.2.7","v0.2.6","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","0.2.1","v0.2.0","v0.1.0-beta.17","v0.1.0-beta.16","v0.1.0-beta.15","v0.1.0-beta.14","v0.1.0-beta.13","v0.1.0-beta.12","v0.1.0-beta.11","v0.1.0-beta.10","v0.1.0-beta.9","v0.1.0-beta.8","v0.1.0-beta.7","v0.1.0-beta.6","v0.1.0-beta.5","v0.1.0-beta.3","v0.1.0-beta.2","v0.1.0-beta.1","v0.0.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24845.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}