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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:*

History

09 Feb 2024, 20:21

Type Values Removed Values Added
References () https://github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099/vyper/builtins/functions.py#L404-L457 - () https://github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099/vyper/builtins/functions.py#L404-L457 - Product
References () https://github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2c - () https://github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2c - Exploit, Vendor Advisory
References () https://github.com/vyperlang/vyper/issues/3756 - () https://github.com/vyperlang/vyper/issues/3756 - Issue Tracking
CPE cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:*
CWE CWE-119 CWE-787
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
First Time Vyperlang vyper
Vyperlang

01 Feb 2024, 17:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-02-01 17:15

Updated : 2024-02-09 20:21


NVD link : CVE-2024-24561

Mitre link : CVE-2024-24561


JSON object : View

Products Affected

vyperlang

  • vyper
CWE
CWE-787

Out-of-bounds Write