CVE-2026-107784 PUBLISHED

tarfile extraction filters accept drive-relative paths on Windows

Assigner: PSF
Reserved: 08.10.2026 Published: 23.11.2026 Updated: 23.11.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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
CVSS Score: 6.3

Product Status

Vendor Python Software Foundation
Product CPython
Versions Default: unaffected
  • affected from 0 to 3.16.0 (excl.)

References

Problem Types

  • CWE-22 CWE
  • CWE-59 Improper link resolution before file access ('link following') CWE