Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/chainguard-dev/malcontent
  4. ›
  5. CVE-2026-24846

CVE-2026-24846: malcontent vulnerable to symlink Path Traversal via handleSymlink argument confusion in archive extraction

January 29, 2026 (updated January 31, 2026)

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.

References

  • github.com/advisories/GHSA-923j-vrcg-hxwh
  • github.com/chainguard-dev/malcontent
  • github.com/chainguard-dev/malcontent/commit/259fca5abc004f3ab238895463ef280a87f30e96
  • github.com/chainguard-dev/malcontent/commit/a7dd8a5328ddbaf235568437813efa7591e00017
  • github.com/chainguard-dev/malcontent/security/advisories/GHSA-923j-vrcg-hxwh
  • nvd.nist.gov/vuln/detail/CVE-2026-24846

Code Behaviors & Features

Detect and mitigate CVE-2026-24846 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.8.0 before 1.20.3

Fixed versions

  • 1.20.3

Solution

Upgrade to version 1.20.3 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-683: Function Call With Incorrect Order of Arguments

Source file

go/github.com/chainguard-dev/malcontent/CVE-2026-24846.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:36:00 +0000.