{
  "id": "CVE-2026-11972",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-11972",
  "published_at": "2026-06-23T22:02:45.434Z",
  "title": "tarfile opened in streaming mode mishandles EOF",
  "vendor": "Python Software Foundation",
  "product": "CPython",
  "cvss": {
    "score": 8.2,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-252",
  "cvss_by_source": {
    "cna": 8.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Python Software Foundation",
        "product": "CPython",
        "ranges": [
          "\u003c 3.10.21",
          "\u003e= 3.11.0, \u003c 3.11.16",
          "\u003e= 3.12.0, \u003c 3.12.14",
          "\u003e= 3.13.0, \u003c 3.13.15",
          "\u003e= 3.14.0, \u003c 3.14.7",
          "\u003e= 3.15.0a1, \u003c 3.15.0b4"
        ],
        "fixed_in": [
          "3.10.21",
          "3.11.16",
          "3.12.14",
          "3.13.15",
          "3.14.7",
          "3.15.0b4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CPython to 3.10.21 or 3.11.16 or 3.12.14 or 3.13.15 or 3.14.7 or 3.15.0b4 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/pull/151982"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/AXPSKKTSRKXTTJULW3XSIC74WZNAAPPB/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/3f031d431f80668e14f3bc066bbf4369cd9281b9"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/4ce6bf7c8aa7725828a38981c306f214c1f29365"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/7f0dc59c9a70f8f3b4da33d7c4a2ba552a7acc21"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/e86666c9dd256d52d0fbef6feb1ea4a51768fdec"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/eb63c0f94dfcbea7fda8eab6213818e134d67192"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/f50bf13566189c8d0ce5a814f33eff3d89951896"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
