CVE-2025-31115

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-31115
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-31115.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-31115
Aliases
Downstream
Related
Published
2025-04-03T16:57:05Z
Modified
2025-10-20T20:31:09.084393Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
XZ has a heap-use-after-free bug in threaded .xz decoder
Details

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 lzmastreamdecoder_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.

Database specific
{
    "cwe_ids": [
        "CWE-366",
        "CWE-416",
        "CWE-476",
        "CWE-826"
    ]
}
References

Affected packages

Git / github.com/tukaani-project/xz

Affected ranges

Type
GIT
Repo
https://github.com/tukaani-project/xz
Events

Affected versions

v5.*

v5.3.3alpha
v5.3.4alpha
v5.3.5beta
v5.4.0
v5.5.0alpha
v5.5.1alpha
v5.5.2beta
v5.7.0alpha
v5.7.1alpha
v5.7.2beta
v5.8.0