Critical severity9.8NVD Advisory· Published Feb 1, 2024· Updated Jun 17, 2026
CVE-2024-24561
CVE-2024-24561
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vyperPyPI | < 0.4.0 | 0.4.0 |
Affected products
2Patches
Vulnerability mechanics
References
6- github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2cnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-9x7f-gwxq-6f2cghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-24561ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-149.yamlghsaWEB
- github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099/vyper/builtins/functions.pynvdProductWEB
- github.com/vyperlang/vyper/issues/3756nvdIssue TrackingWEB
News mentions
0No linked articles in our index yet.