All reports
Medium

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

Affected versions

Version ranges need review.

Affected versions
>= 1.8.0, < 1.20.3
Fixed version
1.20.3
Affected versions
>=1.8.0 <1.20.3
Fixed version
1.20.3

Exploitation

CVE-2026-24846

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-21

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.

Links

Credits

  • 1seal
  • egibs
  • antitree
  • stevebeattie
  • eslerm