VDB
Sign up
HIGH

GHSA-7f92-rr6w-cq64

Storage corruption due to variables overwritten by re-entrancy locks

Quick fix

GHSA-7f92-rr6w-cq64 — vyper: upgrade to the fixed version with the command below.

pip install --upgrade 'vyper>=0.2.15'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/vyper
Introduced in: 0.2.13Fixed in: 0.2.15
Fixpip install --upgrade 'vyper>=0.2.15'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/vyper"]}'