# CVE-2024-24564: Vyper extract32 can ready dirty memory

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/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.64%, higher than 46% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-26T20:11:35.000Z
- Modified: 2026-06-17T07:14:36.980Z
- Also known as: GHSA-4hwq-4cpm-8vmx, PYSEC-2024-205
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vyperlang vyper: < 0.4.0; before 0.4.0
- vyper (PyPI): before 0.4.0; before 3d9c537142fb99b2672f21e2057f5f202cde194f

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-4hwq-4cpm-8vmx> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/vyperlang/vyper/commit/3d9c537142fb99b2672f21e2057f5f202cde194f> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2024-24564](https://www.cve.org/CVERecord?id=CVE-2024-24564), CVE Terms of Use, modified 2024-10-25
- GitHub Advisory Database: [GHSA-4hwq-4cpm-8vmx](https://github.com/advisories/GHSA-4hwq-4cpm-8vmx), CC-BY-4.0, modified 2026-06-10
- NVD: [CVE-2024-24564](https://nvd.nist.gov/vuln/detail/CVE-2024-24564), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-205](https://osv.dev/vulnerability/PYSEC-2024-205), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-24564 · Whole record: https://cve.day/CVE-2024-24564.json · Rebuilt by cve.day 2026-11-25T22:58:37.067Z
