{"id":"CVE-2026-24846","aliases":["CVE-2026-24846","GHSA-923j-vrcg-hxwh","GO-2026-4391"],"related":[],"kind":"vulnerability","state":"published","title":"malcontent's archive extraction could write outside extraction directory","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n**Fixes:**\n- [Swap handleSymlink arguments; validate symlink location](https://github.com/chainguard-dev/malcontent/commit/a7dd8a5328ddbaf235568437813efa7591e00017)\n- [Validate symlink targets resolve within extraction directory](https://github.com/chainguard-dev/malcontent/commit/259fca5abc004f3ab238895463ef280a87f30e96)\n\n**Acknowledgements**\n\nThank you to Oleh Konko from [1seal](https://1seal.org/) for discovering and reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"en","text":"malcontent vulnerable to symlink Path Traversal via handleSymlink argument confusion in archive extraction in github.com/chainguard-dev/malcontent","format":"markdown","source":"go"},{"lang":"es","text":"malcontent descubre compromisos en la cadena de suministro a través de contexto, análisis diferencial y YARA. A partir de la versión 1.8.0 y antes de la versión 1.20.3, se podía hacer que malcontent creara enlaces simbólicos fuera del directorio de extracción previsto al escanear un archivo tar o deb especialmente diseñado. La función 'handleSymlink' recibió argumentos en el orden incorrecto, lo que provocaba que el destino del enlace simbólico se utilizara como la ubicación del enlace simbólico. Además, los destinos de los enlaces simbólicos no se validaban para asegurar que se resolvieran dentro del directorio de extracción. La versión 1.20.3 introduce correcciones que intercambian los argumentos de 'handleSymlink', validan la ubicación del enlace simbólico y validan los destinos de los enlaces simbólicos que se resuelven dentro de un directorio de extracción.","source":"nvd"}],"published":"2026-01-29T21:12:18.991Z","modified":"2026-06-17T10:23:41.710Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-683"],"affected":[{"ranges":[{"version":">= 1.8.0, < 1.20.3","status":"affected"}],"vendor":"chainguard-dev","product":"malcontent","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.20.3"}],"ecosystem":"Go","package":"github.com/chainguard-dev/malcontent","purl":"pkg:golang/github.com/chainguard-dev/malcontent","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.20.3"}],"ecosystem":"Go","package":"github.com/chainguard-dev/malcontent","purl":"pkg:golang/github.com/chainguard-dev/malcontent","source":"go"},{"ranges":[{"status":"affected","introduced":"1.8.0","fixed":"1.20.3"}],"vendor":"chainguard","product":"malcontent","cpe":"cpe:2.3:a:chainguard:malcontent:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/chainguard-dev/malcontent/security/advisories/GHSA-923j-vrcg-hxwh","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/chainguard-dev/malcontent/commit/259fca5abc004f3ab238895463ef280a87f30e96","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/chainguard-dev/malcontent/commit/a7dd8a5328ddbaf235568437813efa7591e00017","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24846","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/chainguard-dev/malcontent","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-29T21:35:11.721Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-24846","url":"https://www.cve.org/CVERecord?id=CVE-2026-24846","licence":"CVE Terms of Use","modified":"2026-01-29T21:37:29.730Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-923j-vrcg-hxwh","url":"https://github.com/advisories/GHSA-923j-vrcg-hxwh","licence":"CC-BY-4.0","modified":"2026-02-03T03:03:33.566Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4391","url":"https://pkg.go.dev/vuln/GO-2026-4391","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:55.139Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-24846","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24846","licence":"Public domain","modified":"2026-06-17T10:23:41.710Z"}],"updatedAt":"2026-11-25T22:59:13.305Z","epss":{"score":0.00187,"percentile":0.08654,"date":"2026-12-01T12:00:22.000Z"}}