CVE-2023-37902

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

Published Jul 25, 2023 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-0264 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.
Github GHSA Github GHSA GHSA-f5x6-7qgp-jhf3 ecrecover can return undefined data if signature does not verify
History
Type Values Removed Values Added
CPEs cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 3, 2024, 6:59 PM
Reserved
Jul 10, 2023, 5:51 PM
Status
Modified
Published
Jul 25, 2023, 9:15 PM
Modified
Jun 17, 2026, 6:08 AM