Home / vyperlang / vyper / CVE-2025-21607
CVE-2025-21607: is it exploited, and which versions of vyperlang vyper are affected and fixed?
CVE-2025-21607 is an always-incorrect control flow vulnerability in vyperlang vyper. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: vyper 0 and later, no fix listed (GitHub advisory GHSA-vgf2-gvx8-xwc3). Fixed in 0.4.1 (NVD). Severity: Low (2.3, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:23 UTC.
What is CVE-2025-21607?
Success of Certain Precompile Calls not Checked in Vyper
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.
From the CVE record by GitHub_M, last updated April 24, 2025, 14:39 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| vyperlang | vyper | < 0.4.1 |
As the CVE record by GitHub_M states it, last updated April 24, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | vyper | >= 0 | none listed | GHSA-vgf2-gvx8-xwc3 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 24, 2025. Summary: Vyper Does Not Check the Success of Certain Precompile Calls.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| vyperlang | vyper | before 0.4.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 08:43 UTC.
How severe is CVE-2025-21607?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.3 | CVSS 4.0 | 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 | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-21607 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, January 15, 2025)
- EPSS
- 0.67% probability of exploitation activity in the next 30 days, percentile 53.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-670 Always-Incorrect Control Flow Implementation
- CWE-703 Improper Check or Handling of Exceptional Conditions
Where are the vendor advisories and references?
- https://github.com/vyperlang/vyper/security/advisories/GHSA-vgf2-gvx8-xwc3 x_refsource_CONFIRM
- https://github.com/vyperlang/vyper/pull/4451 x_refsource_MISC
- https://github.com/vyperlang/vyper/commit/7136eab0a254aa2ff7ddca41cc05f2ee1fa99caf x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- December 29, 2024
- Published
- January 14, 2025, 17:32 UTC
- CVE record updated
- April 24, 2025, 14:39 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 08:43 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect vyper?
- Oct 22, 2026CVE-2026-114663 vyperlang vyper: incorrectly resolved name or reference
- Oct 21, 2026CVE-2026-114118 vyperlang vyper: incorrect numeric conversion
- Oct 21, 2026CVE-2026-114117 vyperlang vyper: incorrect calculation
- Oct 21, 2026CVE-2026-114116 vyperlang vyper: interpretation Conflict
- Oct 21, 2026CVE-2026-114115 vyperlang vyper: type confusion
- Oct 21, 2026CVE-2026-114114 vyperlang vyper: improper Handling of Unicode Encoding
- Oct 21, 2026CVE-2021-48020 vyperlang vyper: out-of-bounds write (memory corruption)
- Oct 21, 2026CVE-2021-48018 vyperlang vyper: out-of-bounds write (memory corruption)
Questions about CVE-2025-21607
Is CVE-2025-21607 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.67% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of vyperlang vyper are affected by CVE-2025-21607?
vyper 0 and later, no fix listed, per the GitHub advisory GHSA-vgf2-gvx8-xwc3. The tables above give every range the sources list.
Which version fixes CVE-2025-21607?
0.4.1, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-21607?
Low (2.3, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-21607?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.