Skip to content
Heist/ feed
Back to feed
HighFix available

Storage corruption due to variables overwritten by re-entrancy locks

Type: advisorySources: OSV

### Background When attempting to use the v0.2.14 release, @pandadefi discovered an issue using the `@nonreentrant` decorator. ### Impact Reentrancy protection storage slots get allocated to the same slots as storage variables, leading to the corruption of storage variables when using the `@nonreentrant` decorator. ### Patches This issue was fixed in v0.2.15 in #2391, #2379 ### Workarounds Don't use the `@nonreentrant` decorator in these versions.

Products
vyper
Affected versions
0.2.13, 0.2.14
Fixed versions
0.2.15
CVEs
CVE-2021-48018
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 03:39 UTC · Revision 1

Source evidence

Storage corruption due to variables overwritten by re-entrancy locks

core-osv · Original source

Published 5 Aug 2021, 16:57 UTC

### Background When attempting to use the v0.2.14 release, @pandadefi discovered an issue using the `@nonreentrant` decorator. ### Impact Reentrancy protection storage slots get allocated to the same slots as storage variables, leading to the corruption of storage variables when using the `@nonreentrant` decorator. ### Patches This issue was fixed in v0.2.15 in #2391, #2379 ### Workarounds Don't use the `@nonreentrant` decorator in these versions.

osv:GHSA-7f92-rr6w-cq64

vyper

Fixed versions: 0.2.15

Complete source record
{
  "id": "7465a7f283c728114d6b4532e251be5abf9e681461b8c15174bfb233ce5f4a9c",
  "url": "https://osv.dev/vulnerability/GHSA-7f92-rr6w-cq64",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Storage corruption due to variables overwritten by re-entrancy locks",
    "summary": "### Background When attempting to use the v0.2.14 release, @pandadefi discovered an issue using the `@nonreentrant` decorator. ### Impact Reentrancy protection storage slots get allocated to the same slots as storage variables, leading to the corruption of storage variables when using the `@nonreentrant` decorator. ### Patches This issue was fixed in v0.2.15 in #2391, #2379 ### Workarounds Don't use the `@nonreentrant` decorator in these versions.",
    "evidence": "osv:GHSA-7f92-rr6w-cq64",
    "products": [
      {
        "name": {
          "value": "vyper",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.2.15",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.2.13",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.2.14",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "GHSA-7f92-rr6w-cq64",
      "aliases": [
        "CVE-2021-48018",
        "GHSA-7f92-rr6w-cq64"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0.2.13"
                },
                {
                  "fixed": "0.2.15"
                }
              ]
            }
          ],
          "package": {
            "name": "vyper",
            "purl": "pkg:pypi/vyper",
            "ecosystem": "PyPI"
          },
          "versions": [
            "0.2.13",
            "0.2.14"
          ],
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-7f92-rr6w-cq64/GHSA-7f92-rr6w-cq64.json"
          }
        }
      ],
      "modified": "2026-10-24T02:56:11.846071959Z",
      "provider": "osv",
      "references": [
        "https://github.com/vyperlang/vyper/security/advisories/GHSA-7f92-rr6w-cq64",
        "https://github.com/vyperlang/vyper/pull/2379",
        "https://github.com/vyperlang/vyper/pull/2391"
      ],
      "provider_metadata": {
        "cwe_ids": [],
        "severity": "HIGH",
        "github_reviewed": true,
        "nvd_published_at": null,
        "github_reviewed_at": "2021-08-02T19:12:30Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-48018",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 428181,
  "published_at": "2021-08-05T16:57:42+00:00"
}