# CVE-2024-32646: vyper performs double eval of the slice args when buffer from adhoc locations

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/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.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-04-25T17:21:59.687Z
- Modified: 2026-06-17T07:30:01.380Z
- Also known as: GHSA-r56x-j438-vw5m, PYSEC-2024-207
- Weaknesses: CWE-20
- 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. In versions 0.3.10 and prior, using the `slice` builtin can result in a double eval vulnerability when the buffer argument is either `msg.data`, `self.code` or `<address>.code` and either the `start` or `length` arguments have side-effects. It can be easily triggered only with the versions `<0.3.4` as `0.3.4` introduced the unique symbol fence. No vulnerable production contracts were found. Additionally, double evaluation of side-effects should be easily discoverable in client tests. As such, the impact is low. As of time of publication, no fixed versions are available.

(As written by CVE List.)

## Affected

- vyperlang vyper: <= 0.3.10; *; before 0.4.0
- vyper (PyPI): before 0.4.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/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:N/I:L/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-r56x-j438-vw5m> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32646> (advisory)
- <https://github.com/vyperlang/vyper/pull/2914> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-207.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)
- <https://github.com/advisories/GHSA-r56x-j438-vw5m> (advisory)

## Sources

- CVE List: [CVE-2024-32646](https://www.cve.org/CVERecord?id=CVE-2024-32646), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-r56x-j438-vw5m](https://github.com/advisories/GHSA-r56x-j438-vw5m), CC-BY-4.0, modified 2026-06-10
- NVD: [CVE-2024-32646](https://nvd.nist.gov/vuln/detail/CVE-2024-32646), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-207](https://osv.dev/vulnerability/PYSEC-2024-207), CC-BY-4.0, modified 2026-06-10

---

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