{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-11940","id":"CVE-2026-11940","title":"tarfile extraction filter bypass allows escaping the destination directory","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.  \nT","descriptionLong":"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.","published":"2026-06-23T16:04:17.321Z","updated":"2026-11-11T10:47:24.340566733Z","reserved":"2026-06-10T19:50:59.923Z","status":"Awaiting Analysis","rejected":false,"assigner":"PSF","metric":{"version":"4.0","score":7.8,"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","rating":"high","source":"PSF"},"metrics":[{"version":"4.0","score":7.8,"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","rating":"high","source":"PSF"},{"version":"4.0","score":7.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"python.org"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"high","products":["Python Software Foundation CPython"],"affectedProducts":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"3.10.21","status":"affected","versionType":"python"},{"version":"3.11.0","lessThan":"3.11.16","status":"affected","versionType":"python"},{"version":"3.12.0","lessThan":"3.12.14","status":"affected","versionType":"python"},{"version":"3.13.0","lessThan":"3.13.15","status":"affected","versionType":"python"},{"version":"3.14.0","lessThan":"3.14.7","status":"affected","versionType":"python"},{"version":"3.15.0a1","lessThan":"3.15.0b4","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-22","CWE-59"],"aliases":["BIT-libpython-2026-11940","BIT-python-2026-11940","BIT-python-min-2026-11940","PSF-2026-30"],"references":[{"url":"https://github.com/python/cpython/pull/151559","tags":["patch","fix","web"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/LD6QIISNQFQYOIEPJNEUIPV7S3V76FZH/","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/python/cpython/issues/151558","tags":["issue-tracking","report"]},{"url":"https://github.com/python/cpython/commit/27dd970bf6b17ebca7c8ed486a40ab043ed7af8f","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/672825e2f36a57e173959b0d9d409d4560dab8df","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/771d12dda5140313db0ac550292987975651bbde","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/79c06bd5c6afa3c440d50faf7ee1b147c8832b4c","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/be13e86f6b9788a6f4d0419dffef72cbae5865c9","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/e5fdbd8d5aa923bd9111b112ea73bd6ec7c47877","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/0f852b3f07dd8e71e40326a51c02afbf16a42cc5","tags":["patch","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/11xxx/CVE-2026-11940.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-11940","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.0075,"epssPercentile":0.55685,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-11940","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-11940","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-11940","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-11940","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["python"],"critical":[],"attention":null}