CVE-2024-24564
MEDIUM 5.3CVSS 3.1Vyper's `extract32` can ready dirty memory
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. When using the built-in extract32(b, start), if the start index provided has for side effect to update b, the byte array to extract 32 bytes from, it could be that some dirty memory is read and returned by extract32. This vulnerability is fixed in 0.4.0.
- Published
- 26 Feb 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-125
- Also known as
- GHSA-4hwq-4cpm-8vmxPYSEC-2024-205
- Sources
- NVDJSONOSV GHSA-4hwq-4cpm-8vmxJSONOSV PYSEC-2024-205JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:* |
< 0.4.0 | 0.4.0 |
| OSV | PyPI | vyper | < 0.4.0 | 0.4.0 |
References
- https://github.com/vyperlang/vyper/commit/3d9c537142fb99b2672f21e2057f5f202cde194f · Patch, WEB, FIX
- https://github.com/vyperlang/vyper/security/advisories/GHSA-4hwq-4cpm-8vmx · Exploit, Vendor Advisory, WEB, ADVISORY, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2024-24564 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-205.yaml · WEB
- https://github.com/vyperlang/vyper · PACKAGE
- https://github.com/vyperlang/vyper/blob/10564dcc37756f3d3684b7a91fd8f4325a38c4d8/vyper/builtins/functions.py#L916-L918 · WEB
- https://github.com/vyperlang/vyper/blob/10564dcc37756f3d3684b7a91fd8f4325a38c4d8/vyper/builtins/functions.py#L920-L922 · WEB
- https://github.com/advisories/GHSA-4hwq-4cpm-8vmx · ADVISORY
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 26 Feb 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Feb 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Feb 2024)