PT-2026-56969 · Unknown · Decompress
CVE-2026-39245
·
Published
2026-07-09
·
Updated
2026-07-13
CVSS v3.1
6.2
Medium
| Vector | AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
decompress versions prior to 4.2.2
Description
An improper path containment check allows directory traversal and arbitrary file write. The
safeMakeDir() function and the extraction path validation use String.indexOf() to verify if the resolved path is within the output directory. This check is flawed because it does not enforce a path separator boundary, allowing paths that start with the same characters as the output directory but are actually adjacent to it to pass the validation. When combined with unvalidated symlink creation, an attacker can write arbitrary files to directories adjacent to the extraction target.Recommendations
Update to version 4.2.2 or later.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Decompress