Skip to content

CVE-2026-24846 malcontent's archive extraction could write outside extraction directory

MediumCVSS 5.0 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

malcontent discovers supply-chain compromises through. context, differential analysis, and YARA. Starting in version 1.8.0 and prior to version 1.20.3, malcontent could be made to create symlinks outside the intended extraction directory when scanning a specially crafted tar or deb archive. The handleSymlink function received arguments in the wrong order, causing the symlink target to be used as the symlink location. Additionally, symlink targets were not validated to ensure they resolved within the extraction directory. Version 1.20.3 introduces fixes that swap handleSymlink arguments, validate symlink location, and validate symlink targets that resolve within an extraction directory.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
Chainguard malcontent >= 1.8.0, < 1.20.3 1.20.3 Fixed
chainguard-dev malcontent(Go) >= 1.8.0, < 1.20.3 1.20.3 Fixed
chainguard-dev malcontent = >= 1.8.0, < 1.20.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
chainguard-dev malcontent = >= 1.8.0, < 1.20.3 No fix listed
chainguard-dev malcontent(Go) >= 1.8.0, < 1.20.3 1.20.3
Chainguard malcontent >= 1.8.0, < 1.20.3 1.20.3

References