Vulnerabilities · 2023 · Vyperlang
CVE-2023-37902
Vyperlang Vyper vulnerability
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.
Affected products
Vyper. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vyperlang Vyper runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/vyperlang/vyper/commit/019a37ab98ff53f04fecfadf602b6cd5ac748f7f · Patch
- github.com/vyperlang/vyper/security/advisories/GHSA-f5x6-7qgp-jhf3 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2023-37902
- github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-133.yaml
- github.com/advisories/GHSA-f5x6-7qgp-jhf3
- nvd.nist.gov/vuln/detail/CVE-2023-37902
- cve.org/CVERecord?id=CVE-2023-37902
More vulnerabilities in Vyperlang products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.