CVE-2021-48018
published high CVSS 4.0 · 8.3Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vyperlang | — | vyper0.2.13 to < 0.2.15 (affected · python) · 0.2.15 (unaffected · python) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.4 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vyperlang | vyper | 0.2.13 to < 0.2.15 (affected · python)0.2.15 (unaffected · python)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-787 Out-of-bounds Write
References
2- GitHub Security Advisory (GHSA-7f92-rr6w-cq64) https://github.com/vyperlang/vyper/security/advisories/GHSA-7f92-rr6w-cq64
- VulnCheck Advisory: Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator https://www.vulncheck.com/advisories/vyper-0.2.13-before-0.2.15-storage-corruption-via-nonreentrant-decorator
Provider assertions
2VulnCheck · cna
Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9810ce292e25f2b5b7983affc9d54b40a3c2dadcb6950325aca302fdf1c0d34f
- Ingested
- 23 Oct 2026, 15:00:10 UTC
- Source record
- Official CVE record