Skip to content
OpenAdvisories
Medium · 5.5 CVE-2026-24846 EUVD-2026-4947GHSA-923j-vrcg-hxwhGO-2026-4391

malcontent's archive extraction could write outside extraction directory

Published Jan 29, 2026 · Updated Jan 29, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
chainguard-dev malcontent >= 1.8.0, < 1.20.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260205T172317-150000.1.146.1 SUSE-SU-2026:0403-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/chainguard-dev/malcontent >= 1.8.0, < 1.20.3 1.20.3 GHSA-923j-vrcg-hxwh

Advisories 2

References