p PatchFirst

CVE-2021-48018

CVE-2021-48018 · Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.3 · High · EPSS 0.3% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • vyper

    Versions
    • ≥ 0.2.13, < 0.2.15: Affected (python)
    • 0.2.15: Not affected (python)

    Update to 0.2.15

  • vyper PyPI

    Versions
    • 0.2.13
    • 0.2.14
    Affected ranges
    • ECOSYSTEM: ≥ 0.2.13, < 0.2.15

    Update to 0.2.15

Original sources

Check your server →