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/issues/3756 - () https://github.com/vyperlang/vyper/issues/3756 - Issue Tracking
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
Summary
  • (es) Vyper es un lenguaje de contrato inteligente de python para la máquina virtual ethereum. En las versiones 0.3.10 y anteriores, la verificación de los límites para sectores no tiene en cuenta la capacidad de inicio + longitud de desbordarse cuando los valores no son literales. Si una función slice() utiliza un argumento no literal para la variable de inicio o longitud, esto crea la capacidad para que un atacante desborde la verificación de los límites. Este problema se puede utilizar para realizar acceso OOB a direcciones de almacenamiento, memoria o datos de llamada. También se puede utilizar para corromper la ranura de longitud de la matriz respectiva.
CPE cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:*
CWE CWE-787
First Time Vyperlang
Vyperlang vyper

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

CVE.ORG link : CVE-2024-24561


JSON object : View

Products Affected

vyperlang

  • vyper
CWE
CWE-787

Out-of-bounds Write

CWE-119

Improper Restriction of Operations within the Bounds of a Memory Buffer