CVE-2026-11940CWE-22CWE-59path-traversal

CVE-2026-11940

published June 23, 2026

CVSS
7.8
EPSS
1%
Percentile
54.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
7.8 · NONE
CVSS v4.0
Not supplied
EPSS
0.00750 · 54.4th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-59 · Improper Link Resolution Before File Access ('Link Following')
Published
2026-06-23T21:16Z
References (10)
EPSS history
Timeline
  • 23 JUN 16:04Z
    tarfile extraction filter bypass allows escaping the destination directory
    cvelistv5