# CVE-2022-24788: Buffer overflow in Vyper

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- 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): 0.99%, higher than 63% of CVEs (2026-12-01)
- Published: 2022-04-13T18:30:18.000Z
- Modified: 2026-06-17T04:32:31.223Z
- Also known as: GHSA-4mrx-6fxm-8jpg, PYSEC-2022-197
- Weaknesses: CWE-119, CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. Versions of vyper prior to 0.3.2 suffer from a potential buffer overrun. Importing a function from a JSON interface which returns `bytes` generates bytecode which does not clamp bytes length, potentially resulting in a buffer overrun. Users are advised to upgrade. There are no known workarounds 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 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N`
- 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-4mrx-6fxm-8jpg> (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-24788> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2022-197.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)

## Sources

- CVE List: [CVE-2022-24788](https://www.cve.org/CVERecord?id=CVE-2022-24788), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-4mrx-6fxm-8jpg](https://github.com/advisories/GHSA-4mrx-6fxm-8jpg), CC-BY-4.0, modified 2024-11-19
- NVD: [CVE-2022-24788](https://nvd.nist.gov/vuln/detail/CVE-2022-24788), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-197](https://osv.dev/vulnerability/PYSEC-2022-197), CC-BY-4.0, modified 2023-11-08

---

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