{"cve":"CVE-2024-24561","nvd":{"published":"2024-02-01T17:15:11.180","modified":"2026-06-17T07:14:36.610","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-787","CWE-119"],"references":["https://github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099/vyper/builtins/functions.py#L404-L457","https://github.com/vyperlang/vyper/issues/3756","https://github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2c","https://github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099/vyper/builtins/functions.py#L404-L457","https://github.com/vyperlang/vyper/issues/3756"],"products":["vyperlang:vyper"],"source":"nvd","synced_at":"2026-10-19T21:44:57.175229480+00:00"},"epss":{"cve":"CVE-2024-24561","score":0.00902,"percentile":0.59726,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9x7f-gwxq-6f2c","url":"https://osv.dev/vulnerability/GHSA-9x7f-gwxq-6f2c","summary":"Vyper's bounds check on built-in `slice()` function can be overflowed","modified":"2026-09-10T03:50:06.200562960Z","packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.4.0"],"fixed":["0.4.0"]}]},{"id":"PYSEC-2024-149","url":"https://osv.dev/vulnerability/PYSEC-2024-149","summary":"","modified":"2024-11-21T14:57:09.595510Z","packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.4.0b1"],"fixed":["0.4.0b1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}