PT-2026-5354 · Unknown · Malcontent
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
malcontent versions 1.8.0 through 1.20.2
Description
malcontent may allow for the creation of symlinks outside the intended extraction directory when scanning specially crafted tar or deb archives. This occurs because the
handleSymlink function received arguments in the incorrect order, leading to the symlink target being used as the symlink location. Additionally, symlink targets were not validated to ensure they remained within the extraction directory.Recommendations
Update to version 1.20.3 or later to benefit from the fixes that swap the
handleSymlink function arguments, validate the symlink location, and validate that symlink targets resolve within the extraction directory.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Malcontent