CVE-2026-7774
tarfile.data_filter path traversal bypass allows writing outside the extraction directory
- State
- Published
- Severity
- 6.9 Medium
- Published
- Jun 4, 2026
- Updated
- Aug 13, 2026
- Reserved
- May 4, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | 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 | PSF |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
CPythonPython Software Foundation |
|
References
- https://github.com/python/cpython/pull/149487patch
- https://github.com/python/cpython/issues/149486issue-tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/vendor-advisory
- https://github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2patch
- https://github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6dpatch
- https://github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117dapatch
- https://github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558patch
- https://github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbfpatch
- https://github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efcpatch
- https://github.com/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf609patch
- http://www.openwall.com/lists/oss-security/2026/06/04/9
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.