CVE-2021-48018 PUBLISHED

Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator

Assigner: VulnCheck
Reserved: 20.10.2026 Published: 21.10.2026 Updated: 21.10.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.3

Product Status

Vendor vyperlang
Product vyper
Versions Default: unaffected
  • affected from 0.2.13 to 0.2.15 (excl.)
  • Version 0.2.15 is unaffected

Credits

  • pandadefi analyst
  • charles-cooper analyst
  • iamdefinitelyahuman analyst

References

Problem Types

  • Out-of-bounds Write CWE