CVE-2026-24846: malcontent vulnerable to symlink Path Traversal via handleSymlink argument confusion in archive extraction
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. Fixes: - Swap handleSymlink arguments;
Published Jan 29, 2026 · Updated Jan 31, 2026
Affected packages
github.com/chainguard-dev/malcontent
- Ecosystem
- Go
- Affected
- >= 1.8.0, < 1.20.3
- Fixed in
- 1.20.3
- Check
go list -m github.com/chainguard-dev/malcontent
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Fixes:
- Swap handleSymlink arguments; validate symlink location
- Validate symlink targets resolve within extraction directory
Acknowledgements
Thank you to Oleh Konko from 1seal for discovering and reporting this issue.
Credited to 1seal, egibs, antitree, stevebeattie, eslerm.
References
- https://github.com/chainguard-dev/malcontent/security/advisories/GHSA-923j-vrcg-hxwh
- https://github.com/chainguard-dev/malcontent/commit/259fca5abc004f3ab238895463ef280a87f30e96
- https://github.com/chainguard-dev/malcontent/commit/a7dd8a5328ddbaf235568437813efa7591e00017
- https://nvd.nist.gov/vuln/detail/CVE-2026-24846
- https://github.com/advisories/GHSA-923j-vrcg-hxwh
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-54p8-x2m9-c593
malcontent: Error-path cleanup gap can leak scanners and fds and degrade availability
medium5.3Mar 2, 2026CVE-2026-28407
malcontent: Nested archive extraction failure can drop content from scan inputs
medium6.9Feb 28, 2026CVE-2026-24845
malcontent OCI image pull credential exfiltration via malicious registry token realm
medium6.5Jan 29, 2026
