Advisory

GHSA-7f92-rr6w-cq64

Also known as: CVE-2021-48018

Summary

Storage corruption due to variables overwritten by re-entrancy locks

Details

Background
When attempting to use the v0.2.14 release, @pandadefi discovered an issue using the @nonreentrant decorator.

Impact
Reentrancy protection storage slots get allocated to the same slots as storage variables, leading to the corruption of storage variables when using the @nonreentrant decorator.

Patches
This issue was fixed in v0.2.15 in #2391, #2379

Workarounds
Don't use the @nonreentrant decorator in these versions.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-05 16:57 UTC
Modified
2026-10-24 02:56 UTC

Affected packages and fixes

vyper

PyPI · All systems

Affected

  • introduced 0.2.13, fixed 0.2.15 (ecosystem)

Fixed versions

0.2.15

Fix

  • Fixed version 0.2.15
    pip install --upgrade vyper==0.2.15

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences