CVE-2025-31115 Details
Description
XZ Utils provide a general-purpose data-compression library plus command-line tools. In XZ Utils 5.3.3alpha to 5.8.0, the multithreaded .xz decoder in liblzma has a bug where invalid input can at least result in a crash. The effects include heap use after free and writing to an address based on the null pointer plus an offset. Applications and libraries that use the lzma_stream_decoder_mt function are affected. The bug has been fixed in XZ Utils 5.8.1, and the fix has been committed to the v5.4, v5.6, v5.8, and master branches in the xz Git repository. No new release packages will be made from the old stable branches, but a standalone patch is available that applies to all affected releases.
A vulnerability in XZ Utils versions 5.3.3alpha through 5.8.0 allows invalid input to the multithreaded .xz decoder in liblzma to cause a crash. This issue leads to heap use after free and writing to an address derived from a null pointer plus an offset. The vulnerability affects applications and libraries that utilize the 'lzma_stream_decoder_mt' function.
The vulnerability has been fixed in XZ Utils version 5.8.1. While no new release packages will be made from the old stable branches, a standalone patch is available that applies to all affected releases.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 3, 2025CISA-ADP
Assessed Apr 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cert-portal.siemens.com/productcert/html/ssa-082556.html | siemens-SADP | |
| http://www.openwall.com/lists/oss-security/2025/04/03/1 | CVE | Mailing ListRemedy |
| http://www.openwall.com/lists/oss-security/2025/04/03/2 | CVE | Mailing ListTechnical Description |
| http://www.openwall.com/lists/oss-security/2025/04/03/3 | CVE | Mailing ListTechnical Description |
| https://github.com/tukaani-project/xz/commit/d5a2ffe41bb77b918a8c96084885d4dbe4bf6480 | [email protected] | Source CodeVendor |
| https://github.com/tukaani-project/xz/security/advisories/GHSA-6cc8-p5mm-29w2 | [email protected] | AdvisoryRemedyVendor |
| https://tukaani.org/xz/xz-cve-2025-31115.patch | [email protected] | Broken LinkVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-366 | Race Condition within a Thread | [email protected] |
| CWE-416 | Use After Free | [email protected] |
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-826 | Premature Release of Resource During Expected Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| XZ Utils | All versions |
CPE
Remediation
| |
| liblzma | All versions |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | siemens-SADP |
| May 12, 2026 | CVE Modified | siemens-SADP |
| Apr 3, 2025 | CVE Modified | CVE |
| Apr 3, 2025 | CVE Modified | CVE |
| Apr 3, 2025 | New CVE Received | [email protected] |
Volerion