CVE-2026-107784
tarfile extraction filters accept drive-relative paths on Windows
- Severity
- medium CVSS 6.3 (v4.0)
- Affects
- CPython · Python Software Foundation
- Weakness
- CWE-22
- Published
- 23 November 2026 by PSF
- First seen on our lists
- 4 November 2026
On Windows, the tarfile "tar" and "data" extraction filters did not reject member names or link targets that have a drive but no root, such as "C:foo". When extracting to a relative destination, such a member was written to the current working directory of that drive instead of the destination, and a symbolic link with such a target pointed outside the destination. The filters now refuse these member names and link targets with AbsolutePathError and AbsoluteLinkError.
Our coverage
We have not written about this one. Know why it matters? Send a tip.
On the lists
- [oss-security] CPython [CVE-2026-107784] tarfile extraction filters accept drive-relative paths on Windows
- tarfile: Windows same-drive drive-relative symlink not caught by data filter (#161323)