{"id":"CVE-2026-7774","published":"2026-06-04T14:21:23Z","modified":"2026-08-13T00:26:58Z","title":"tarfile.data_filter path traversal bypass allows writing outside the extraction directory","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"tarfile.data_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect later archive members outside the intended extraction directory. This allowed a malicious tar archive to cause tarfile.extractall() to write files outside the destination directory, subject to the permissions of the extracting process.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00598,"percentile":0.4959,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/python/cpython/pull/149487","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/149486","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efc","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf609","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/04/9","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":9.92},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.10.21",">= 3.11.0, < 3.11.16",">= 3.12.0, < 3.12.14",">= 3.13.0, < 3.13.14",">= 3.14.0, < 3.14.6",">= 3.15.0a1, < 3.15.0b2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-04T17:27:23.917872Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-34282","exploited":false,"provenance":"source"}}