همهٔ گزارش‌ها
زیاد

Storage corruption due to variables overwritten by re-entrancy locks

متن اصلی

نسخه‌های متأثر

PyPIvyper
نسخه‌های متأثر
>= 0.2.13, < 0.2.15
نسخهٔ اصلاح‌شده
0.2.15

بهره‌برداری

CVE-2021-48018

احتمال بهره‌برداری در ۳۰ روز آینده: 0.39%

FIRST EPSS · ۱۴۰۵/۰۸/۲۸

شرح آسیب‌پذیری

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.

پیوندها

گزارش‌دهندگان

  • pandadefi
  • charles-cooper
  • iamdefinitelyahuman