Skip to content

CVE-2026-114117 Vyper 0.3.8 through 0.5.0b1 Optimizer Miscompilation of msg.value | K in Ternary Branches

HighCVSS 8.2 EPSS 0.29%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

Vyper 0.3.8 through 0.5.0b1 contains an optimizer miscompilation in which (msg.value | K) or (len(msg.data) | K), where K is any nonzero integer literal, is compiled to the constant 1 when used as a ternary expression branch under -O gas (the default) or -O codesize. Affected contracts use the wrong value in storage writes, arithmetic, indexes, return values, or events without warning or revert, which can record deposits incorrectly and lock funds.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi vyper >= 0.3.8, <= 0.5.0b1 after 0.5.0b1 Fixed

Affected products

ProductAffected versionsFixed in
pypi vyper >= 0.3.8, <= 0.5.0b1 No fix listed

References