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

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-01-29T21:12:18.991Z
- Modified: 2026-06-17T10:23:41.710Z
- Also known as: GHSA-923j-vrcg-hxwh, GO-2026-4391
- Weaknesses: CWE-22, CWE-683
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- chainguard-dev malcontent: >= 1.8.0, < 1.20.3
- github.com/chainguard-dev/malcontent (Go): from 1.8.0 before 1.20.3
- chainguard malcontent: from 1.8.0 before 1.20.3

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/chainguard-dev/malcontent/security/advisories/GHSA-923j-vrcg-hxwh> (advisory, vendor-advisory, web)
- <https://github.com/chainguard-dev/malcontent/commit/259fca5abc004f3ab238895463ef280a87f30e96> (fix, patch, web)
- <https://github.com/chainguard-dev/malcontent/commit/a7dd8a5328ddbaf235568437813efa7591e00017> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-24846> (advisory)
- <https://github.com/chainguard-dev/malcontent> (package)

## Sources

- CVE List: [CVE-2026-24846](https://www.cve.org/CVERecord?id=CVE-2026-24846), CVE Terms of Use, modified 2026-01-29
- GitHub Advisory Database: [GHSA-923j-vrcg-hxwh](https://github.com/advisories/GHSA-923j-vrcg-hxwh), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2026-4391](https://pkg.go.dev/vuln/GO-2026-4391), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2026-24846](https://nvd.nist.gov/vuln/detail/CVE-2026-24846), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-24846 · Whole record: https://cve.day/CVE-2026-24846.json · Rebuilt by cve.day 2026-11-25T22:59:13.305Z
