{"id":"CVE-2026-114117","revision":"ae356ae435ed41eeb17113905b92f07d","records":[{"revision":"ae356ae435ed41eeb17113905b92f07d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-114117","aliases":[],"title":"Vyper 0.3.8 through 0.5.0b1 Optimizer Miscompilation of msg.value | K in Ternary Branches","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.","state":0,"publishedAt":"2026-10-21T00:37:14.741+00:00","modifiedAt":"2026-10-21T20:12:04.759+00:00","affected":[{"ecosystem":"Vendor product","name":"vyper","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"vyperlang\",\n                    \"product\": \"vyper\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:pypi/vyper\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0.3.8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"python\",\n                            \"lessThanOrEqual\": \"0.5.0b1\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.2,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"severity":"MEDIUM"}],"references":["https://github.com/vyperlang/vyper/security/advisories/GHSA-6j9c-gvcw-74fj","https://www.vulncheck.com/advisories/vyper-0.3.8-through-0.5-0b1-optimizer-miscompilation-of-msg-value-k-in-ternary-branches"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-114117","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-114117","identifiers":["CVE-2026-114117"]},"retained":false,"historicalAffected":[]}],"coverage":[]}