{"id":"CVE-2026-114117","published":"2026-10-21T01:17:38.070","lastModified":"2026-10-22T17:00:33.203","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.","cvssScore":5.9,"cvssSeverity":"MEDIUM","cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","cwes":["CWE-682"],"vendors":[],"products":[],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6j9c-gvcw-74fj","tags":[]},{"url":"https://www.vulncheck.com/advisories/vyper-0.3.8-through-0.5-0b1-optimizer-miscompilation-of-msg-value-k-in-ternary-branches","tags":[]},{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6j9c-gvcw-74fj","tags":[]}],"exploitRefs":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6j9c-gvcw-74fj","tags":[]},{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6j9c-gvcw-74fj","tags":[]}],"hasPoc":true,"ai":null}