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

- Severity: High 8.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-21T00:37:14.741Z
- Modified: 2026-10-22T17:00:33.203Z
- Weaknesses: CWE-682
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- vyperlang vyper: from 0.3.8 up to 0.5.0b1

## Every score

- VulnCheck: CVSS:4.0 8.2 High `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`
- VulnCheck: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-6j9c-gvcw-74fj> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/vyper-0.3.8-through-0.5-0b1-optimizer-miscompilation-of-msg-value-k-in-ternary-branches> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-114117](https://www.cve.org/CVERecord?id=CVE-2026-114117), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-114117](https://nvd.nist.gov/vuln/detail/CVE-2026-114117), Public domain, modified 2026-10-22

---

Page: https://cve.day/CVE-2026-114117 · Whole record: https://cve.day/CVE-2026-114117.json · Rebuilt by cve.day 2026-11-25T22:59:46.553Z
