Advisory

GHSA-923j-vrcg-hxwh

Also known as: CVE-2026-24846, GO-2026-4391

Summary

malcontent vulnerable to symlink Path Traversal via handleSymlink argument confusion in archive extraction

Details

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:

Acknowledgements

Thank you to Oleh Konko from 1seal for discovering and reporting this issue.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-01-29 22:05 UTC
Modified
2026-02-03 03:03 UTC

Affected packages and fixes

github.com/chainguard-dev/malcontent

Go · All systems

Affected

  • introduced 1.8.0, fixed 1.20.3 (semver)

Fixed versions

1.20.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences