{"id":"CVE-2021-48018","aliases":["CVE-2021-48018","GHSA-7f92-rr6w-cq64"],"related":[],"kind":"vulnerability","state":"published","title":"Vyper 0.2.13 before 0.2.15 Storage Corruption via @nonreentrant Decorator","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Background\nWhen attempting to use the v0.2.14 release, @pandadefi discovered an issue using the `@nonreentrant` decorator.\n\n### Impact\nReentrancy protection storage slots get allocated to the same slots as storage variables, leading to the corruption of storage variables when using the `@nonreentrant` decorator.\n\n### Patches\nThis issue was fixed in v0.2.15 in #2391, #2379\n\n### Workarounds\nDon't use the `@nonreentrant` decorator in these versions.","format":"markdown","source":"ghsa"}],"published":"2021-08-05T16:57:42.000Z","modified":"2026-10-24T02:56:11.846Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.3,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"python","introduced":"0.2.13","fixed":"0.2.15","status":"affected"},{"type":"python","version":"0.2.15","status":"unaffected"}],"vendor":"vyperlang","product":"vyper","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.2.13","status":"affected","fixed":"0.2.15"}],"ecosystem":"PyPI","package":"vyper","purl":"pkg:pypi/vyper","source":"ghsa"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-7f92-rr6w-cq64","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/vyper-0.2.13-before-0.2.15-storage-corruption-via-nonreentrant-decorator","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vyperlang/vyper/pull/2379","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vyperlang/vyper/pull/2391","tags":["web"],"sources":["ghsa"]}],"credits":["pandadefi","charles-cooper","iamdefinitelyahuman"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-23T14:57:03.783Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-48018","url":"https://www.cve.org/CVERecord?id=CVE-2021-48018","licence":"CVE Terms of Use","modified":"2026-10-23T14:57:15.214Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7f92-rr6w-cq64","url":"https://github.com/advisories/GHSA-7f92-rr6w-cq64","licence":"CC-BY-4.0","modified":"2026-10-24T02:56:11.846Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-48018","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-48018","licence":"Public domain","modified":"2026-10-23T15:17:20.357Z"}],"updatedAt":"2026-11-25T22:58:09.124Z","epss":{"score":0.00391,"percentile":0.35398,"date":"2026-12-01T12:00:22.000Z"}}