tarfile extraction filters accept drive-relative paths on Windows

State
Published
Severity
6.3 Medium
Published
Nov 23, 2026
Updated
Nov 24, 2026
Reserved
Oct 8, 2026

Read the record on cve.org

Description

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.

ProductVersions
CPython Python Software Foundationbefore 3.16.0 Affected

Weaknesses

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

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.