Buffer overflow in Vyperlang Vyper
CVE-2021-48018
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.
Vulnerability class: Buffer Overflow
Published .
CVSS v3 metric
CVSS v3 base score 7.4 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/vyperlang/vyper/security/advisories/GHSA-7f92-rr6w-cq64 (vendor-advisory)
- www.vulncheck.com/advisories/vyper-0.2.13-before-0.2.15-storage-corruption-via-… (third-party-advisory)
Frequently asked questions
- What is CVE-2021-48018?
- CVE-2021-48018 is a high-severity vulnerability in Vyperlang Vyper, classified under Out-of-bounds Write. CVSS score: 7.4/10. Published 2026-10-21.
- How severe is CVE-2021-48018?
- High severity. CVSS v3 base score is 7.4 out of 10.