CVE-2025-21607
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-01-14
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.7 %
higher than 48 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| vyper (PyPI) | 0.1.0b1 | Affected | |
| vyper (PyPI) | 0.1.0b10 | Affected | |
| vyper (PyPI) | 0.1.0b11 | Affected | |
| vyper (PyPI) | 0.1.0b12 | Affected | |
| vyper (PyPI) | 0.1.0b13 | Affected | |
| vyper (PyPI) | 0.1.0b14 | Affected | |
| vyper (PyPI) | 0.1.0b15 | Affected | |
| vyper (PyPI) | 0.1.0b16 | Affected | |
| vyper (PyPI) | 0.1.0b17 | Affected | |
| vyper (PyPI) | 0.1.0b2 | Affected | |
| vyper (PyPI) | 0.1.0b3 | Affected | |
| vyper (PyPI) | 0.1.0b4 | Affected | |
| vyper (PyPI) | 0.1.0b5 | Affected | |
| vyper (PyPI) | 0.1.0b6 | Affected | |
| vyper (PyPI) | 0.1.0b7 | Affected | |
| vyper (PyPI) | 0.1.0b8 | Affected | |
| vyper (PyPI) | 0.1.0b9 | Affected | |
| vyper (PyPI) | 0.2.1 | Affected | |
| vyper (PyPI) | 0.2.10 | Affected | |
| vyper (PyPI) | 0.2.11 | Affected | |
| vyper (PyPI) | 0.2.12 | Affected | |
| vyper (PyPI) | 0.2.13 | Affected | |
| vyper (PyPI) | 0.2.14 | Affected | |
| vyper (PyPI) | 0.2.15 | Affected | |
| vyper (PyPI) | 0.2.16 | Affected | |
| vyper (PyPI) | 0.2.2 | Affected | |
| vyper (PyPI) | 0.2.3 | Affected | |
| vyper (PyPI) | 0.2.4 | Affected | |
| vyper (PyPI) | 0.2.5 | Affected | |
| vyper (PyPI) | 0.2.6 | Affected | |
| vyper (PyPI) | 0.2.7 | Affected | |
| vyper (PyPI) | 0.2.8 | Affected | |
| vyper (PyPI) | 0.2.9 | Affected | |
| vyper (PyPI) | 0.3.0 | Affected | |
| vyper (PyPI) | 0.3.1 | Affected | |
| vyper (PyPI) | 0.3.10 | Affected | |
| vyper (PyPI) | 0.3.10rc1 | Affected | |
| vyper (PyPI) | 0.3.10rc2 | Affected | |
| vyper (PyPI) | 0.3.10rc3 | Affected | |
| vyper (PyPI) | 0.3.10rc4 | Affected | |
| Vyperlang | Vyper | < 0.4.1 | Affected |
Weakness type
-
CWE-670: Always-Incorrect Control Flow Implementation
The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.
References
- https://github.com/vyperlang/vyper/security/advisories/GHSA-vgf2-gvx8-xwc3
- https://github.com/vyperlang/vyper/security/advisories/GHSA-vgf2-gvx8-xwc3
- https://github.com/vyperlang/vyper/commit/7136eab0a254aa2ff7ddca41cc05f2ee1fa99caf
- https://github.com/vyperlang/vyper/pull/4451
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.