Loading advisory.
Loading advisory.
Incorrect Comparison in Vyper
bytestrings can have dirty bytes in them, resulting in the word-for-word comparison to give incorrect results, e.g.
Published 2022-04-04 17:35 UTC · Modified 2025-04-23 18:41 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| vyper | PyPI | < 0.3.2 git commits in https://github.com/vyperlang/vyper: < 2c73f8352635c0a433423a5b94740de1a118e508 versions 0.1.0b1, 0.1.0b10, 0.1.0b11, 0.1.0b12, 0.1.0b13, 0.1.0b14, 0.1.0b15, 0.1.0b16, 0.1.0b17, 0.1.0b2, 0.1.0b3, 0.1.0b4, 0.1.0b5, 0.1.0b6, 0.1.0b7, 0.1.0b8, 0.1.0b9, 0.2.1, 0.2.10, 0.2.11 and 15 more | 0.3.2, 2c73f8352635c0a433423a5b94740de1a118e508 | pip install --upgrade 'vyper>=0.3.2'pip install --upgrade 'vyper>=2c73f8352635c0a433423a5b94740de1a118e508' |
bytestrings can have dirty bytes in them, resulting in the word-for-word comparison to give incorrect results, e.g.
b1: Bytes[32] = b"abcdef"
b1 = slice(b1, 0, 1)
b2: Bytes[32] = b"abcdef"
t: bool = b1 == b2 # incorrectly evaluates to Trueeven without dirty nonzero bytes, because there is no comparison of the length, two bytestrings can compare to equal if one ends with "\x00".
b1: Bytes[32] = b"abc\0"
b2: Bytes[32] = b"abc"
t: bool = b1 == b2 # incorrectly evaluates to Truefixed in https://github.com/vyperlang/vyper/commit/2c73f8352635c0a433423a5b94740de1a118e508
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.010 on 2026-11-24 to 0.010 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.010 | first score | v2026.06.15 |
| 2026-11-26 | 0.010 | 0.010 | v2026.06.15 |