Logo
vulnerabilityCVE-2026-11940
Name
CVE-2026-11940
Source
NVD ( link)Debian ( link)
Description
tarfile.extractall() with the 'data' or 'tar' filter could be bypassed by a crafted archive where a hardlink references a symlink stored at a deeper name than the hardlink itself.  The extraction fallback validated the symlink at it's archived location but recreated it at the hardlink's shallower path, letting a relative target the filter judged contained escape the destination directory.  This allowed a malicious tar archive to create a symlink pointing outside the destination, enabling out-of-destination file reads or writes. This was an incomplete fix of CVE-2025-4330.
Published Date
Updated Date
Workaround
-
Advisories

Analysis#


Affected Component
Analysis
python3
Exploitable

Vulnerability Ratings#


7.8
CVSSv4
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
3.12.14
Exploitable
buildroot
master
3.14.7
Exploitable
openwrt
master
3.14.5-r2
Exploitable
openwrt
openwrt-25.12
3.13.9-r3
Exploitable
yocto
kirkstone
3.10.20
Exploitable
yocto
scarthgap
3.12.13
Patched

Resolved with patches#


python3 (yocto:scarthgap)

#
Title
Author
Resolve
1
gh-151558: Fix symlink escape via `tarfile`
Stan Ulbrych <stan@python.org>
CVE-2026-11940