Vulnerability 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 Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Vyperlang | Vyper | <= 0.3.10 |
Related Weaknesses (CWE)
References
- https://github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099Product
- https://github.com/vyperlang/vyper/issues/3756Issue Tracking
- https://github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2cExploitVendor Advisory
- https://github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099Product
- https://github.com/vyperlang/vyper/issues/3756Issue Tracking
- https://github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2cExploitVendor Advisory
FAQ
What is CVE-2024-24561?
CVE-2024-24561 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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 overflo...
How severe is CVE-2024-24561?
CVE-2024-24561 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2024-24561?
Check the references section above for vendor advisories and patch information. Affected products include: Vyperlang Vyper.