Skip to content
CVE PROGRAM SOURCE RECORD6.9 Medium

CVE-2026-114583

tar filter allows writing outside destination via empty-named symlink

Description

tarfile.tar_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() with filter="tar" to write files outside the destination directory, subject to the permissions of the extracting process. This is the tarfile.tar_filter counterpart of CVE-2026-7774, which covered tarfile.data_filter.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Python Software Foundation CPython

Default version status: unaffected

  • 0 to < 3.11.18affected
  • 3.12.0 to < 3.12.16affected
  • 3.13.0 to < 3.13.18affected
  • 3.14.0 to < 3.14.10affected
  • 3.15.0 to < 3.15.2affected
  • 3.16.0a1 to < 3.16.0affected

References