Vyper data corruption in nested array ternary expressions
vyperlang vyper
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| vyperlang vyper |
| No fix yet |
Original description
Vyper 0.3.8 through 0.5.0b1 contains a compiler miscompilation vulnerability in parse_IfExp that reads nested arrays with narrower inner bounds using the wider result type's memory layout. When a ternary selects the narrower array, inner arrays after the first are read at wrong offsets, causing contracts to silently store corrupted values or revert.
From the CVE record · VulnCheck