Buffer 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-24788
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:31 UTC · Revision 1
Source evidence
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.
osv:CVE-2022-24788
Complete source record
{
"id": "244f30422dc94ee70ee7b3715594470de58b90b9ed9b3787e83d341f83e1345f",
"url": "https://osv.dev/vulnerability/CVE-2022-24788",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Buffer overflow in Vyper",
"summary": "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.",
"evidence": "osv:CVE-2022-24788",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-24788",
"aliases": [
"CVE-2022-24788",
"GHSA-4mrx-6fxm-8jpg",
"PYSEC-2022-197"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/vyperlang/vyper",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3b6a4117dcf1215d4cca19ca5a4c7d1ede6e4d44"
},
{
"fixed": "049dbdc647b2ce838fae7c188e6bb09cf16e470b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.3.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "049dbdc647b2ce838fae7c188e6bb09cf16e470b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"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-24788.json"
}
}
],
"modified": "2026-10-28T02:30:36.793490377Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24788.json",
"https://github.com/vyperlang/vyper/security/advisories/GHSA-4mrx-6fxm-8jpg",
"https://nvd.nist.gov/vuln/detail/CVE-2022-24788",
"https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b"
],
"provider_metadata": {
"cwe_ids": [
"CWE-120"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24788.json"
}
},
"related_cves": [
{
"value": "CVE-2022-24788",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504156,
"published_at": "2022-04-13T18:30:18+00:00"
}