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

- Severity: High 8.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2021-08-05T16:57:42.000Z
- Modified: 2026-10-24T02:56:11.846Z
- Also known as: GHSA-7f92-rr6w-cq64
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- vyperlang vyper: from 0.2.13 before 0.2.15 (not affected: 0.2.15)
- vyper (PyPI): from 0.2.13 before 0.2.15

## Every score

- VulnCheck: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: rating High

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-7f92-rr6w-cq64> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/vyper-0.2.13-before-0.2.15-storage-corruption-via-nonreentrant-decorator> (third-party-advisory)
- <https://github.com/vyperlang/vyper/pull/2379> (web)
- <https://github.com/vyperlang/vyper/pull/2391> (web)

## Sources

- CVE List: [CVE-2021-48018](https://www.cve.org/CVERecord?id=CVE-2021-48018), CVE Terms of Use, modified 2026-10-23
- GitHub Advisory Database: [GHSA-7f92-rr6w-cq64](https://github.com/advisories/GHSA-7f92-rr6w-cq64), CC-BY-4.0, modified 2026-10-24
- NVD: [CVE-2021-48018](https://nvd.nist.gov/vuln/detail/CVE-2021-48018), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2021-48018 · Whole record: https://cve.day/CVE-2021-48018.json · Rebuilt by cve.day 2026-11-25T22:58:09.124Z
