Skip to content
6.9 Medium

CVE-2026-7774 tarfile.data_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names,…

Description

tarfile.data_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() to write files outside the destination directory, subject to the permissions of the extracting process.

Affected products and versions

Product Affected versions Fixed in
CPython 3.15 3.15.0a1 → < 3.15.0b2 3.15.0b2
CPython 3.14 3.14.0 → < 3.14.6 3.14.6
CPython 3.13 3.13.0 → < 3.13.14 3.13.14
CPython 3.12 3.12.0 → < 3.12.14 3.12.14
CPython 3.11 3.11.0 → < 3.11.16 3.11.16
CPython 3.10 earliest → < 3.10.21 3.10.21

References

Timeline

  1. Published
  2. Last modified
The 79 CVEs of CPython →
Track this CVE