CVE-2025-21607
Python vulnerability analysis and mitigation

Overview

CVE-2025-21607 affects Vyper, a Pythonic Smart Contract Language for the Ethereum Virtual Machine (EVM). The vulnerability was discovered and disclosed on January 14, 2025, and involves the Vyper Compiler's handling of precompiles EcRecover (0x1) and Identity (0x4). The core issue lies in the compiler's failure to check the success flag of these precompile calls (GitHub Advisory).

Technical details

The vulnerability stems from the Vyper Compiler's implementation of precompile calls where the success flag is not verified for EcRecover (0x1) and Identity (0x4) operations. According to the EVM's rules, after a failed precompile call, the remaining code has only 1/64 of the pre-call-gas left, as 63/64 were forwarded and spent. The vulnerability has been assigned a CVSS v4.0 score of 2.3 (LOW) with the vector string CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N (NVD).

Impact

An attacker can exploit this vulnerability by providing a specific amount of gas to make these precompile calls fail while allowing the overall execution to continue. This results in incorrect execution results, though the impact is limited due to the gas constraints that restrict the complexity of operations that can follow the failed precompile calls. No significantly impacted real-world contracts have been identified (GitHub Advisory).

Mitigation and workarounds

Currently, there are no direct actions required from users as the impact on real-world contracts has been assessed as minimal. The issue is being tracked for resolution, and users are advised to monitor for updates from the Vyper team (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management