malcontent's archive extraction could write outside extraction directory
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/chainguard-dev/malcontentGo | >= 1.8.0, < 1.20.3 | 1.20.3 |
Affected products
3- Range: v1.10.0, v1.10.1, v1.10.2, …
- ghsa-coords2 versionspkg:golang/github.com/chainguard-dev/malcontentpkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6
>= 1.8.0, < 1.20.3+ 1 more
- (no CPE)range: >= 1.8.0, < 1.20.3
- (no CPE)range: < 0.0.20260205T172317-150000.1.146.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-923j-vrcg-hxwhghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-24846ghsaADVISORY
- github.com/chainguard-dev/malcontent/commit/259fca5abc004f3ab238895463ef280a87f30e96ghsax_refsource_MISCWEB
- github.com/chainguard-dev/malcontent/commit/a7dd8a5328ddbaf235568437813efa7591e00017ghsax_refsource_MISCWEB
- github.com/chainguard-dev/malcontent/security/advisories/GHSA-923j-vrcg-hxwhghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.