CVE-2026-114583

tar filter allows writing outside destination via empty-named symlink

State
Published
Severity
6.9 Medium
Published
Oct 22, 2026
Updated
Oct 27, 2026
Reserved
Oct 21, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NPSF

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.11.18Affected
  • 3.12.0 to before 3.12.16Affected
  • 3.13.0 to before 3.13.18Affected
  • 3.14.0 to before 3.14.10Affected
  • 3.15.0 to before 3.15.2Affected
  • 3.16.0a1 to before 3.16.0Affected

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.