Vulnerability Details : CVE-2023-37902
Potential exploit
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.
Products affected by CVE-2023-37902
- cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-37902
0.07%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 23 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-37902
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
3.9
|
1.4
|
NIST | |
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
3.9
|
1.4
|
GitHub, Inc. |
CWE ids for CVE-2023-37902
-
The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-37902
-
https://github.com/vyperlang/vyper/commit/019a37ab98ff53f04fecfadf602b6cd5ac748f7f
Merge pull request from GHSA-f5x6-7qgp-jhf3 · vyperlang/vyper@019a37a · GitHubPatch
-
https://github.com/vyperlang/vyper/security/advisories/GHSA-f5x6-7qgp-jhf3
ecrecover can return undefined data for invalid signatures · Advisory · vyperlang/vyper · GitHubExploit;Third Party Advisory
Jump to