CVE-2023-37902CWE-252

Vyper's ecrecover can return undefined data if signature does not verify

Medium · published July 25, 2023

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

Vyper is a Pythonic programming language that targets the Ethereum Virtual Machine (EVM). Prior to version 0.3.10, the ecrecover precompile does not fill the output buffer if the signature does not verify. However, the ecrecover builtin will still return whatever is at memory location 0. This means that the if the compiler has been convinced to write to the 0 memory location with specially crafted data (generally, this can happen with a hashmap access or immutable read) just before the ecrecover, a signature check might pass on an invalid signature. Version 0.3.10 contains a patch for this issue.

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.00574 · 46.6th percentile
Weakness
CWE-252 · Unchecked Return Value
Published
2023-07-25T20:05Z
EPSS history
Timeline
  • 25 JUL 20:05Z
    Vyper's ecrecover can return undefined data if signature does not verify
    cvelistv5