CVE-2024-24561

CRITICAL
Published Feb 1, 2024 Modified Nov 21, 2024 CWE-119 CWE-787

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.

Is your site exposed to CVE-2024-24561?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

9.8
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness Type (CWE)

CWE-119 Buffer Overflow
CWE-787 Out-of-bounds Write

Affected Products

Vendor Product
vyperlang vyper

References

Frequently Asked Questions

What is 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. It has a CVSS v3.1 base score of 9.8 (CRITICAL).
How severe is CVE-2024-24561? +
CVE-2024-24561 has a CVSS v3.1 score of 9.8 out of 10, rated CRITICAL. This is a critical vulnerability that should be patched immediately.
What products are affected by CVE-2024-24561? +
CVE-2024-24561 affects products from vyperlang, specifically: vyper. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-24561? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-24561 — free, no signup required.