CVE-2024-47611
xz: XZ Utils on Microsoft Windows platform are vulnerable to argument injection
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 2, 2024
Updated · October 22, 2026
Description
XZ Utils provide a general-purpose data-compression library plus command-line tools. When built for native Windows (MinGW-w64 or MSVC), the command line tools from XZ Utils 5.6.2 and older have a command line argument injection vulnerability. If a command line contains Unicode characters (for example, filenames) that don't exist in the current legacy code page, the characters are converted to similar-looking characters with best-fit mapping. Some best-fit mappings result in ASCII characters that change the meaning of the command line, which can be exploited with malicious filenames to do argument injection or directory traversal attacks. This vulnerability is fixed in 5.6.3. Command line tools built for Cygwin or MSYS2 are unaffected. liblzma is unaffected.
Statement
This vulnerability does not affect any Red Hat products. This vulnerability relies on abusing the best-fit mapping functionality that Windows uses to convert Unicode characters to similar looking characters in legacy code pages.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
CWE-88 · Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')