Skip to content

CVE-2026-39243 decompress allows arbitrary hardlink creation during archive extraction

MediumCVSS 5.5 EPSS 0.30%
Published
Updated
Exploit status
No public exploit known

Description

decompress before 4.2.2 allows arbitrary hardlink creation during archive extraction, enabling file read disclosure and file corruption. When processing hardlink entries (type === 'link'), the x.linkname field from the archive is passed directly to fs.link() without validation (index.js line 113). An attacker can craft an archive with a hardlink entry whose linkname is an absolute path to any file on the same filesystem. This creates a hardlink inside the extraction directory that shares the same inode as the target file, enabling both reading and overwriting the original file's content. Hardlinks are limited to files on the same filesystem and cannot target directories.

Affected products

ProductAffected versionsFixed in
redhat/dotnet8-0-main(Red Hat:hummingbird:1) < 8.0.128-1.1.hum1 8.0.128-1.1.hum1
redhat/rhacm2/volsync-operator-bundle(Red Hat:acm:2) All versions No fix listed
redhat/rhacm2/volsync-rhel9(Red Hat:acm:2) All versions No fix listed
redhat/decompress(Red Hat:build_keycloak:) All versions No fix listed
npm decompress(npm) <= 4.2.1 No fix listed
decompress project decompress <= 4.2.1 No fix listed

References