# CVE-2023-37902: Vyper's ecrecover can return undefined data if signature does not verify

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-07-25T17:46:19.000Z
- Modified: 2026-06-17T06:08:51.970Z
- Also known as: GHSA-f5x6-7qgp-jhf3, PYSEC-2023-133
- Weaknesses: CWE-252
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vyperlang vyper: < 0.3.10; before 0.3.10; before 0.3.9
- vyper (PyPI): before 0.3.10; before 019a37ab98ff53f04fecfadf602b6cd5ac748f7f; before 0.3.9

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-f5x6-7qgp-jhf3> (exploit, advisory, third-party-advisory, web)
- <https://github.com/vyperlang/vyper/commit/019a37ab98ff53f04fecfadf602b6cd5ac748f7f> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-37902> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-133.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)

## Sources

- CVE List: [CVE-2023-37902](https://www.cve.org/CVERecord?id=CVE-2023-37902), CVE Terms of Use, modified 2024-10-03
- GitHub Advisory Database: [GHSA-f5x6-7qgp-jhf3](https://github.com/advisories/GHSA-f5x6-7qgp-jhf3), CC-BY-4.0, modified 2024-11-19
- NVD: [CVE-2023-37902](https://nvd.nist.gov/vuln/detail/CVE-2023-37902), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-133](https://osv.dev/vulnerability/PYSEC-2023-133), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-37902 · Whole record: https://cve.day/CVE-2023-37902.json · Rebuilt by cve.day 2026-11-25T22:58:26.498Z
