# CVE-2022-24845: Integer bounds error in Vyper

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.43%, higher than 73% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-13T21:15:16.000Z
- Modified: 2026-06-17T04:32:38.777Z
- Also known as: GHSA-j2x6-9323-fp7h, PYSEC-2022-198
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vyperlang vyper: < 0.3.2; before 0.3.2
- vyper (PyPI): before 0.3.2; before 049dbdc647b2ce838fae7c188e6bb09cf16e470b

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7h> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24845> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2022-198.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)

## Sources

- CVE List: [CVE-2022-24845](https://www.cve.org/CVERecord?id=CVE-2022-24845), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-j2x6-9323-fp7h](https://github.com/advisories/GHSA-j2x6-9323-fp7h), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24845](https://nvd.nist.gov/vuln/detail/CVE-2022-24845), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-198](https://osv.dev/vulnerability/PYSEC-2022-198), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-24845 · Whole record: https://cve.day/CVE-2022-24845.json · Rebuilt by cve.day 2026-11-25T22:58:10.620Z
