CVE-2025-21607
published low CVSS 4.0 · 2.3Success of Certain Precompile Calls not Checked in Vyper
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vyperlang | — | vyper< 0.4.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vyperlang | vyper | < 0.4.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-670 CWE-670: Always-Incorrect Control Flow Implementation
References
3Provider assertions
2GitHub_M · cna
Success of Certain Precompile Calls not Checked in Vyper
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0c154926f5d00cf1ef6b539b3e6a5b80e2b419f3560573eaae29df532c29ce68
- Ingested
- 23 Sep 2026, 08:39:46 UTC
- Source record
- Official CVE record