{"id":"CVE-2026-114117","published":"2026-10-21T00:37:14Z","modified":"2026-10-21T20:12:04Z","title":"Vyper 0.3.8 through 0.5.0b1 Optimizer Miscompilation of msg.value | K in Ternary Branches","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00355,"percentile":0.21558,"provenance":"source"},"cwes":[{"id":"CWE-682","name":"Incorrect Calculation"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6j9c-gvcw-74fj","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/vyper-0.3.8-through-0.5-0b1-optimizer-miscompilation-of-msg-value-k-in-ternary-branches","tags":["third-party-advisory"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":4.31},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":[">= 0.3.8, <= 0.5.0b1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-21T20:11:58.758962Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-106920","exploited":false,"provenance":"source"}}