CVE-2021-48018 Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator
HighCVSS 8.3
EPSS 0.39%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Vyper from 0.2.13 before 0.2.15 allocates storage slots for @nonreentrant reentrancy locks at the same locations as contract storage variables. When a function using @nonreentrant is called, setting the lock overwrites the overlapping storage variable, corrupting contract state and breaking the contract's intended logic.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi vyper | >= 0.2.13, < 0.2.15 | 0.2.15 | Fixed |
| pypi vyper(PyPI) | = 0.2.13; = 0.2.14; >= 0.2.13, < 0.2.15 | 0.2.15 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi vyper(PyPI) | >= 0.2.13, < 0.2.15 | 0.2.15 |
| pypi vyper(PyPI) | = 0.2.13 | No fix listed |
| pypi vyper(PyPI) | = 0.2.14 | No fix listed |
| pypi vyper | >= 0.2.13, < 0.2.15 | 0.2.15 |
References
- GitHub Security Advisory (GHSA-7f92-rr6w-cq64) vendor-advisory
- github.com patch
- github.com patch
- github.com
- VulnCheck Advisory: Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator third-party-advisory
- ENISA EUVD EUVD-2021-34888 third-party-advisory