Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/vyperlang/vyper/security/advisories/GHSA-7f92-rr6w-cq64
- https://www.vulncheck.com/advisories/vyper-0.2.13-before-0.2.15-storage-corrupti
FAQ
What is CVE-2021-48018?
CVE-2021-48018 is a vulnerability with a CVSS score of 7.4 (HIGH). 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 t...
How severe is CVE-2021-48018?
CVE-2021-48018 has been rated HIGH with a CVSS base score of 7.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-48018?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.