CVE-2021-48018

Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator

State
Published
Severity
8.3 High
Published
Oct 21, 2026
Updated
Oct 23, 2026
Reserved
Oct 20, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.3 HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.17.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:HVulnCheck

Weaknesses

Affected Products

ProductVersions
vypervyperlang
  • 0.2.13 to before 0.2.15Affected
  • 0.2.15Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.