Skip to content
CVE PROGRAM SOURCE RECORD8.3 High

CVE-2021-48018

Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

vyperlang vyper

Default version status: unaffected

  • 0.2.13 to < 0.2.15affected
  • 0.2.15unaffected
pkg:pypi/vyper

References