CVE-2026-114117: Incorrect Calculation in vyperlang vyper
Description
Vyper versions 0.3.8 through 0.5.0b1 contain an optimizer miscompilation vulnerability where certain ternary expressions involving bitwise OR with a nonzero integer literal are incorrectly compiled to the constant 1. This causes affected smart contracts to use incorrect values in storage writes, arithmetic operations, indexing, return values, or events, potentially leading to incorrect deposit records and locked funds.
CVSS v4.0
Score 8.2high
Affected software
vyperlang
vyper
pkg:github/vyperlang/vyperRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Vyper 0.3.8 through 0.5.0b1 arises from an optimizer miscompilation under the default -O gas or -O codesize optimization levels. Specifically, expressions of the form (msg.value | K) or (len(msg.data) | K), where K is any nonzero integer literal, when used as a ternary expression branch, are compiled incorrectly to the constant 1. This results in affected contracts using wrong values in critical operations such as storage writes, arithmetic, indexing, return values, or event emissions without any warning or revert. The flaw can cause deposits to be recorded incorrectly and may lock funds within the contract.
Potential Impact
Contracts compiled with affected Vyper versions may behave incorrectly due to miscompiled ternary expressions, leading to erroneous storage updates, arithmetic calculations, and event logs. This can cause financial discrepancies such as incorrect deposit records and potentially lock funds, impacting contract reliability and user assets.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, developers should avoid using the affected Vyper versions or the specific ternary expression patterns described. Review and audit contracts compiled with these versions for potential miscompilation issues.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-10-20T21:48:58.503Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad80c0c2cdf04f6568caa69
Added to database: 10/21/2026, 00:49:16 UTC
Last enriched: 10/21/2026, 01:03:23 UTC
Last updated: 10/21/2026, 01:08:15 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.