Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE-2026-23949
Summary
There is a Zip Slip path traversal vulnerability in the jaraco.context package version 5.2.0 through 6.0.2 affecting setuptools as well, in "jaraco.context.tarball()" function. The vulnerability may allow attackers to extract files outside the intended extraction directory when malicious tar archives are processed. The strip_first_component filter splits the path on the first / and extracts the second component, while allowing ../ sequences. Paths like "dummy_dir/../../etc/passwd" become "../../etc/passwd".This suffers from a nested tarball attack as well with multi-level tar files such as "dummy_dir/inner.tar.gz", where the "inner.tar.gz" includes a traversal "dummy_dir/../../config/.env" that also gets translated to "../../config/.env".
- LOW
- NETWORK
- NONE
- CHANGED
- NONE
- NONE
- HIGH
- NONE
CWE-22 - Path Traversal
Path traversal (or directory traversal), is a vulnerability that allows malicious users to traverse the server's root directory, gaining access to arbitrary files and folders such as application code & data, back-end credentials, and sensitive operating system files. In the worst-case scenario, an attacker could potentially execute arbitrary files on the server, resulting in a denial of service attack. Such an exploit may severely impact the integrity, confidentiality, and availability of an application.
References
Advisory Timeline
- Published