CVE Catalog

CVE-2021-48018

HighCVSS 7.4
Published: Translated: NVD NIST

Summary

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.

Risk Assessment

Contract state corruption can lead to unexpected behavior and potential financial losses. This may undermine trust in smart contracts written in Vyper.

Recommendation

Update Vyper to version 0.2.15 or later. Re-audit existing contracts for @nonreentrant usage and storage variables.

Other vulnerabilities in Vyper

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS