PT-2026-56968 · Npm · Decompress
CVE-2026-39243
·
Published
2026-07-09
·
Updated
2026-07-13
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
decompress versions prior to 4.2.2
Description
An issue exists during archive extraction where arbitrary hardlink creation is possible. When processing hardlink entries (type === 'link'), the
x.linkname field from the archive is passed directly to the fs.link() function without validation. An attacker can craft an archive containing a hardlink entry with an absolute path to any file on the same filesystem. This creates a hardlink within the extraction directory that shares the same inode (a unique identifier for a file on a filesystem) as the target file, allowing the original file's content to be read or overwritten. Hardlinks are restricted to files on the same filesystem and cannot target directories.Recommendations
Update decompress to version 4.2.2 or later.
Exploit
Fix
Link Following
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Decompress