{ "schema_version": "1.5.0", "id": "PSF-2026-30", "published": "2026-06-23T16:04:17.321Z", "modified": "2026-06-23T17:57:32.525Z", "aliases": [ "CVE-2026-11940" ], "details": "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.", "affected": [ { "ranges": [ { "type": "GIT", "repo": "https://github.com/python/cpython", "events": [ { "introduced": "0" }, { "fixed": "27dd970bf6b17ebca7c8ed486a40ab043ed7af8f" }, { "fixed": "672825e2f36a57e173959b0d9d409d4560dab8df" }, { "fixed": "771d12dda5140313db0ac550292987975651bbde" }, { "fixed": "79c06bd5c6afa3c440d50faf7ee1b147c8832b4c" } ] } ] } ], "references": [ { "type": "WEB", "url": "https://github.com/python/cpython/pull/151559" }, { "type": "ADVISORY", "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/LD6QIISNQFQYOIEPJNEUIPV7S3V76FZH/" }, { "type": "REPORT", "url": "https://github.com/python/cpython/issues/151558" }, { "type": "FIX", "url": "https://github.com/python/cpython/commit/27dd970bf6b17ebca7c8ed486a40ab043ed7af8f" }, { "type": "FIX", "url": "https://github.com/python/cpython/commit/672825e2f36a57e173959b0d9d409d4560dab8df" }, { "type": "FIX", "url": "https://github.com/python/cpython/commit/771d12dda5140313db0ac550292987975651bbde" }, { "type": "FIX", "url": "https://github.com/python/cpython/commit/79c06bd5c6afa3c440d50faf7ee1b147c8832b4c" } ], "database_specific": { "cwe_ids": [] } }