CVE-2022-24788
CRITICAL 9.8CVSS 3.1Buffer Overflow in vyper
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.
- Published
- 13 Apr 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-119CWE-120
- Also known as
- GHSA-4mrx-6fxm-8jpgPYSEC-2022-197
- Sources
- NVDJSONOSV GHSA-4mrx-6fxm-8jpgJSONOSV PYSEC-2022-197JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:* |
< 0.3.2 | 0.3.2 |
| OSV | PyPI | vyper | < 0.3.2 | 0.3.2 |
References
- https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b · Patch, Third Party Advisory, WEB, FIX
- https://github.com/vyperlang/vyper/security/advisories/GHSA-4mrx-6fxm-8jpg · Patch, Third Party Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 13 Apr 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Apr 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Apr 2022)