CVE-2025-21607

Public Exploit
Success of Certain Precompile Calls not Checked in Vyper

Description

Vyper is a Pythonic Smart Contract Language for the EVM. When the Vyper Compiler uses the precompiles EcRecover (0x1) and Identity (0x4), the success flag of the call is not checked. As a consequence an attacker can provide a specific amount of gas to make these calls fail but let the overall execution continue. Then the execution result can be incorrect. Based on EVM's rules, after the failed precompile the remaining code has only 1/64 of the pre-call-gas left (as 63/64 were forwarded and spent). Hence, only fairly simple executions can follow the failed precompile calls. Therefore, we found no significantly impacted real-world contracts. None the less an advisory has been made out of an abundance of caution. This issue is fixed in 0.4.1.

Category

2.3
CVSS
Severity: Low
CVSS 4.0 •
CVSS 3.1 •
EPSS 0.11%
Vendor Advisory github.com
Affected: vyperlang vyper
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-21607?
CVE-2025-21607 has been scored as a low severity vulnerability.
How to fix CVE-2025-21607?
To fix CVE-2025-21607, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-21607 being actively exploited in the wild?
It is possible that CVE-2025-21607 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-21607?
CVE-2025-21607 affects vyperlang vyper.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.