# CVE-2024-24561: Vyper bounds check on built-in `slice()` function can be overflowed

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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.90%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-01T16:37:01.007Z
- Modified: 2026-09-10T03:50:06.200Z
- Also known as: GHSA-9x7f-gwxq-6f2c, PYSEC-2024-149
- Weaknesses: CWE-119, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In versions 0.3.10 and earlier, the bounds check for slices does not account for the ability for start + length to overflow when the values aren't literals. If a slice() function uses a non-literal argument for the start or length variable, this creates the ability for an attacker to overflow the bounds check. This issue can be used to do OOB access to storage, memory or calldata addresses. It can also be used to corrupt the length slot of the respective array.

(As written by CVE List.)

## Affected

- vyperlang vyper: <= 0.3.10; up to 0.3.10
- vyper (PyPI): before 0.4.0; before 0.4.0b1

## Every score

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

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2c> (exploit, advisory, vendor-advisory, web)
- <https://github.com/vyperlang/vyper/issues/3756> (issue-tracking, report, web)
- <https://github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099/vyper/builtins/functions.py#L404-L457> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24561> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-149.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)

## Sources

- CVE List: [CVE-2024-24561](https://www.cve.org/CVERecord?id=CVE-2024-24561), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-9x7f-gwxq-6f2c](https://github.com/advisories/GHSA-9x7f-gwxq-6f2c), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-24561](https://nvd.nist.gov/vuln/detail/CVE-2024-24561), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-149](https://osv.dev/vulnerability/PYSEC-2024-149), CC-BY-4.0, modified 2024-11-21

---

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