{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3f031d431f80668e14f3bc066bbf4369cd9281b9"
            },
            {
              "fixed": "4ce6bf7c8aa7725828a38981c306f214c1f29365"
            },
            {
              "fixed": "7f0dc59c9a70f8f3b4da33d7c4a2ba552a7acc21"
            },
            {
              "fixed": "e86666c9dd256d52d0fbef6feb1ea4a51768fdec"
            },
            {
              "fixed": "eb63c0f94dfcbea7fda8eab6213818e134d67192"
            },
            {
              "fixed": "f50bf13566189c8d0ce5a814f33eff3d89951896"
            }
          ],
          "repo": "https://github.com/python/cpython",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "PSF",
    "cwe_ids": [
      "CWE-252",
      "CWE-606",
      "CWE-770"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/11xxx/CVE-2026-11972.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "3.15.0"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "When using the \"tarfile\" module with a file opened in \"streaming mode\" (mode=\"r|\") the tarfile module did not properly handle EOF, making archive parsing take exponentially longer.",
  "id": "CVE-2026-11972",
  "modified": "2026-07-08T05:38:48.584189208Z",
  "published": "2026-06-23T22:02:45.434Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/11xxx/CVE-2026-11972.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/AXPSKKTSRKXTTJULW3XSIC74WZNAAPPB/"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-11972"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/python/cpython/issues/151981"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/3f031d431f80668e14f3bc066bbf4369cd9281b9"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/4ce6bf7c8aa7725828a38981c306f214c1f29365"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/7f0dc59c9a70f8f3b4da33d7c4a2ba552a7acc21"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/e86666c9dd256d52d0fbef6feb1ea4a51768fdec"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/eb63c0f94dfcbea7fda8eab6213818e134d67192"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/f50bf13566189c8d0ce5a814f33eff3d89951896"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/pull/151982"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/python/cpython"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "tarfile opened in streaming mode mishandles EOF"
}