Skip to content
Heist/ feed
Back to feed
High

Vyper before 0.3.0 Memory Corruption via Internal Function Calls in Arrays

Type: advisorySources: Official CVE List

Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls are performed inside arrays. Contracts placing internal calls in nested array elements, external call arguments, struct literals, or raw_log topics can have memory corrupted, producing incorrect contract behavior.

Products
vyper
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-48020
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 14:53 UTC · Revision 2

Source evidence

Vyper before 0.3.0 Memory Corruption via Internal Function Calls in Arrays

core-cve · Original source

Published 21 Oct 2026, 00:36 UTC

Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls are performed inside arrays. Contracts placing internal calls in nested array elements, external call arguments, struct literals, or raw_log topics can have memory corrupted, producing incorrect contract behavior.

cve:CVE-2021-48020

vyper

Fixed versions: Not specified

Complete source record
{
  "id": "4145c91f19d1f08a361a0335c56989865e8be84caa46f54ac3d6c8eaf125d4e0",
  "url": "https://www.cve.org/CVERecord?id=CVE-2021-48020",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Vyper before 0.3.0 Memory Corruption via Internal Function Calls in Arrays",
    "summary": "Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls are performed inside arrays. Contracts placing internal calls in nested array elements, external call arguments, struct literals, or raw_log topics can have memory corrupted, producing incorrect contract behavior.",
    "evidence": "cve:CVE-2021-48020",
    "products": [
      {
        "name": {
          "value": "vyper",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-48020",
      "aliases": [
        "CVE-2021-48020"
      ],
      "metrics": [
        {
          "format": "CVSS",
          "cvssV4_0": {
            "Safety": "NOT_DEFINED",
            "version": "4.0",
            "Recovery": "NOT_DEFINED",
            "baseScore": 8.3,
            "Automatable": "NOT_DEFINED",
            "attackVector": "NETWORK",
            "baseSeverity": "HIGH",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
            "exploitMaturity": "NOT_DEFINED",
            "providerUrgency": "NOT_DEFINED",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "privilegesRequired": "NONE",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "HIGH",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "LOW",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "NONE",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          }
        },
        {
          "format": "CVSS",
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 6.5,
            "attackVector": "NETWORK",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L",
            "integrityImpact": "HIGH",
            "userInteraction": "NONE",
            "attackComplexity": "HIGH",
            "availabilityImpact": "LOW",
            "privilegesRequired": "NONE",
            "confidentialityImpact": "NONE"
          }
        }
      ],
      "affected": [
        {
          "vendor": "vyperlang",
          "product": "vyper",
          "versions": [
            {
              "status": "affected",
              "version": "0.1.0b4",
              "lessThan": "0.3.0",
              "versionType": "python"
            },
            {
              "status": "unaffected",
              "version": "0.3.0",
              "versionType": "python"
            }
          ],
          "packageURL": "pkg:pypi/vyper",
          "defaultStatus": "unaffected"
        }
      ],
      "modified": "2026-10-28T15:11:17.839Z",
      "provider": "cve",
      "references": [
        "https://github.com/vyperlang/vyper/security/advisories/GHSA-22wc-c9wj-6q2v",
        "https://www.vulncheck.com/advisories/vyper-before-0.3.0-memory-corruption-via-internal-function-calls-in-arrays"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2021-48020",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-28T15:05:10.406638Z"
                  }
                }
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-28T15:11:17.839Z"
            }
          }
        ],
        "cna": {
          "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
          "shortName": "VulnCheck",
          "dateUpdated": "2026-10-21T00:36:19.625Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-48020",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 454315,
  "published_at": "2026-10-21T00:36:19.625+00:00"
}