CVE-2023-30629CWE-670

Vyper's raw_call with outsize=0 and revert_on_failure=False returns incorrect success value

High · published April 24, 2023

CVSS v3.1
7.5
EPSS
1%
Percentile
58.9
In the wild
Unconfirmed
What it is

Vyper is a Pythonic Smart Contract Language for the ethereum virtual machine. In versions 0.3.1 through 0.3.7, the Vyper compiler generates the wrong bytecode. Any contract that uses the `raw_call` with `revert_on_failure=False` and `max_outsize=0` receives the wrong response from `raw_call`. Depending on the memory garbage, the result can be either `True` or `False`. A patch is available and, as of time of publication, anticipated to be part of Vyper 0.3.8. As a workaround, one may always put `max_outsize>0`.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00883 · 58.9th percentile
Weakness
CWE-670 · Always-Incorrect Control Flow Implementation
Published
2023-04-24T21:58Z
EPSS history
Timeline
  • 24 APR 21:58Z
    Vyper's raw_call with outsize=0 and revert_on_failure=False returns incorrect success value
    cvelistv5