CVE-2024-32646CWE-20

vyper performs double eval of the slice args when buffer from adhoc locations

Medium · published April 25, 2024

CVSS v3.1
5.3
EPSS
0%
Percentile
38.5
In the wild
Unconfirmed
What it is

Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. In versions 0.3.10 and prior, using the `slice` builtin can result in a double eval vulnerability when the buffer argument is either `msg.data`, `self.code` or `<address>.code` and either the `start` or `length` arguments have side-effects. It can be easily triggered only with the versions `<0.3.4` as `0.3.4` introduced the unique symbol fence. No vulnerable production contracts were found. Additionally, double evaluation of side-effects should be easily discoverable in client tests. As such, the impact is low. As of time of publication, no fixed versions are available.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00455 · 38.5th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2024-04-25T17:21Z
EPSS history
Timeline
  • 25 APR 17:21Z
    vyper performs double eval of the slice args when buffer from adhoc locations
    cvelistv5