{
  "id": "CVE-2026-11940",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-11940",
  "published_at": "2026-06-23T16:04:17.321Z",
  "title": "tarfile extraction filter bypass allows escaping the destination directory",
  "vendor": "Python Software Foundation",
  "product": "CPython",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/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": "tarfile.extractall() with the 'data' or 'tar'\n filter could be bypassed by a crafted archive where a hardlink \nreferences a symlink stored at a deeper name than the hardlink itself.  \nThe extraction fallback validated the symlink at it's archived location \nbut recreated it at the hardlink's shallower\npath, letting a relative\n target the filter judged contained escape the destination directory.  \nThis allowed a malicious tar archive to create a symlink pointing \noutside the destination, enabling out-of-destination file reads or \nwrites. This was an incomplete fix of CVE-2025-4330.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 7.8
  },
  "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/151559"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/LD6QIISNQFQYOIEPJNEUIPV7S3V76FZH/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/27dd970bf6b17ebca7c8ed486a40ab043ed7af8f"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/672825e2f36a57e173959b0d9d409d4560dab8df"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/771d12dda5140313db0ac550292987975651bbde"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/79c06bd5c6afa3c440d50faf7ee1b147c8832b4c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/be13e86f6b9788a6f4d0419dffef72cbae5865c9"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/e5fdbd8d5aa923bd9111b112ea73bd6ec7c47877"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
