Medium severity · published Jul 25, 2023
CVE-2023-37902
Vyper's ecrecover can return undefined data if signature does not verify
5.3
CVSS
0.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 47% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
VY
vyper · vyperlang
< 0.3.10 · source: vendor, NVD, CISA
Affected product
VY
vyper
vyperlang
More from vyper
9.8
CVE-2024-24563
Vyper array negative index vulnerability
9.8
CVE-2024-24561
Vyper bounds check on built-in `slice()` function can be overflowed
9.8
CVE-2024-22419
concat built-in can corrupt memory in vyper
9.8
CVE-2022-24845
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine
9.8
CVE-2022-24788
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine