chainguard-dev/malcontent · Security

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

GHSA ID
GHSA-923j-vrcg-hxwh
CVE ID
CVE-2026-24846
Severity
medium
Published
Updated
CVSS
5.5 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
CVSS v3
5.5 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Description

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.

CWEs

References