Buffer overflow in Vyperlang Vyper
CVE-2024-24561
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.009 (59.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 59th percentile — 59.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.009 · change: 0.000
Affected products
- Vyperlang Vyper — versions <= 0.3.10
Weakness classification (CWE)
References
- github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2c (Exploit, Vendor Advisory)
- github.com/vyperlang/vyper/issues/3756 (Issue Tracking)
- github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099/vyper/… (Product)
Frequently asked questions
- What is CVE-2024-24561?
- CVE-2024-24561 is a critical-severity vulnerability in Vyperlang Vyper, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. CVSS score: 9.8/10. Published 2024-02-01.
- How severe is CVE-2024-24561?
- Critical severity. CVSS v3 base score is 9.8 out of 10.