Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| vyperlang / vyper | affected 0.3.8 through 0.5.0b1 |
CWE
CWE-843
References
- https://github.com/vyperlang/vyper/security/advisories/GHSA-cw3h-xwxq-8cx2
- https://github.com/vyperlang/vyper/commit/1fb7dfe2
- https://www.vulncheck.com/advisories/vyper-0.3.8-through-0.5-0b1-memory-misread-via-ternary-nested-array-selection
ADP enrichment
No English description supplied.
No references supplied.