Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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