Description
Vyper 0.4.0b1 through 0.5.0b1 miscompiles unfoldable constants and omitted default arguments from imported modules, because parse_Name resolves their names in the using function's scope rather than at declaration. When a contract's parameter, local, or loop variable shares such a name, attacker-influenced input can replace the intended value, including out-of-range values for narrow types such as uint8, corrupting validation or accounting logic.
Published: 2026-10-22
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: Integrity Compromise
Action: Immediate Patch
AI Analysis

Impact

The Vyper compiler in releases 0.4.0b1 through 0.5.0b1 miscompiles unfoldable constants and omitted default arguments from imported modules because the parser resolves their names in the function’s scope rather than at declaration. As a result, if a contract parameter, local, or loop variable shares a name with an imported constant or default argument, an attacker‑influenced input can replace the intended value, including out‑of‑range values for narrow types such as uint8. This can corrupt validation or accounting logic, leading to both data integrity violations and potential financial loss.

Affected Systems

Any smart contract compiled with Vyper versions 0.4.0b1 to 0.5.0b1 that imports constants or default arguments from another module and shadows those names in a function or variable. The affected product is the Vyper compiler provided by vyperlang; all contracts deployed with those versions are vulnerable.

Risk and Exploitability

The vulnerability has a CVSS score of 8.6, indicating high severity. The EPSS score is not available and the issue is not listed in CISA KEV. An attacker can influence the input to public contract functions or the deployment arguments of a vulnerable contract; no privileged access is required. Because the compiler produces miscompiled bytecode that accepts the attacker‑supplied values, exploitation is straightforward once a vulnerable contract is deployed, and the exploitation probability is high enough to warrant immediate patching.

Generated by OpenCVE AI on October 22, 2026 at 07:10 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vyper to a release newer than 0.5.0b1 (for example 0.5.0b2 or later) and recompile all contracts that were built with the vulnerable compiler.
  • Recompile existing contracts with the updated compiler to ensure correct constant handling and redeploy them if necessary.
  • Audit the source code for any occurrences where imported constants or default arguments are shadowed by contract parameters, local variables, or loop variables, and rename those identifiers to avoid conflict.

Generated by OpenCVE AI on October 22, 2026 at 07:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 22 Oct 2026 02:00:00 +0000

Type Values Removed Values Added
Description Vyper 0.4.0b1 through 0.5.0b1 miscompiles unfoldable constants and omitted default arguments from imported modules, because parse_Name resolves their names in the using function's scope rather than at declaration. When a contract's parameter, local, or loop variable shares such a name, attacker-influenced input can replace the intended value, including out-of-range values for narrow types such as uint8, corrupting validation or accounting logic.
Title Vyper 0.4.0b1 through 0.5.0b1 Name Shadowing of Imported Constants and Default Arguments
First Time appeared Vyperlang
Vyperlang vyper
Weaknesses CWE-706
CPEs cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*
Vendors & Products Vyperlang
Vyperlang vyper
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T01:43:46.942Z

Reserved: 2026-10-21T21:59:05.257Z

Link: CVE-2026-114663

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-22T02:16:58.603

Modified: 2026-10-22T02:16:58.603

Link: CVE-2026-114663

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T08:30:03Z

Weaknesses
  • CWE-706

    Use of Incorrectly-Resolved Name or Reference