# CVE-2025-31115: XZ has a heap-use-after-free bug in threaded .xz decoder

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 5.8.1 (CNA); fix release not confirmed
- Status: published
- Published: 2025-04-03 · Modified: 2026-10-15
- Aliases: ALPINE-CVE-2025-31115, MGASA-2025-0131, SUSE-SU-2025:1137-1, SUSE-SU-2025:20553-1, SUSE-SU-2025:20590-1, RHSA-2025:7524, UBUNTU-CVE-2025-31115, USN-7414-1, DEBIAN-CVE-2025-31115, DSA-5895-1, openSUSE-SU-2025:14984-1
- Record: https://cvemate.com/vulnerability/CVE-2025-31115 · JSON: https://cvemate.com/vulnerability/CVE-2025-31115/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.675%, percentile 53.601%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine xz (Alpine Linux): \< 5.4.3-r1 \| \< 5.4.5-r1 \| \< 5.6.2-r1 \| \< 5.6.3-r1 \| \< 5.8.1-r0
- debian xz-utils (Debian): \< 5.4.1-1 \| \< 5.8.1-1
- ubuntu xz-utils (Ubuntu): \< 5.6.1+really5.4.5-1ubuntu0.2
- mageia xz (Mageia): \< 5.4.3-1.1.mga9
- opensuse xz&distro=openSUSE Leap 15.6 (openSUSE): \< 5.4.1-150600.3.3.1
- opensuse xz&distro=openSUSE Tumbleweed (openSUSE): \< 5.8.1-1.1
- redhat xz (Red Hat): \< 1:5.6.2-4.el10\_0
- redhat xz-debuginfo (Red Hat): \< 1:5.6.2-4.el10\_0
- redhat xz-debugsource (Red Hat): \< 1:5.6.2-4.el10\_0
- redhat xz-devel (Red Hat): \< 1:5.6.2-4.el10\_0
- redhat xz-libs (Red Hat): \< 1:5.6.2-4.el10\_0
- redhat xz-libs-debuginfo (Red Hat): \< 1:5.6.2-4.el10\_0
- redhat xz-lzma-compat (Red Hat): \< 1:5.6.2-4.el10\_0
- redhat xz-lzma-compat-debuginfo (Red Hat): \< 1:5.6.2-4.el10\_0
- suse xz&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6 (SUSE Linux Enterprise): \< 5.4.1-150600.3.3.1
- suse xz&distro=SUSE Linux Micro 6.0 (SUSE Linux Enterprise): \< 5.4.3-5.1
- suse xz&distro=SUSE Linux Micro 6.1 (SUSE Linux Enterprise): \< 5.4.3-slfo.1.1\_2.1
- tukaani-project xz: ≥ 5.3.3alpha, \< 5.8.1

## References (first 20 of 27)

- <https://github.com/tukaani-project/xz/security/advisories/GHSA-6cc8-p5mm-29w2>
- <https://github.com/tukaani-project/xz/commit/d5a2ffe41bb77b918a8c96084885d4dbe4bf6480>
- <https://tukaani.org/xz/xz-cve-2025-31115.patch>
- <http://www.openwall.com/lists/oss-security/2025/04/03/1>
- <http://www.openwall.com/lists/oss-security/2025/04/03/2>
- <http://www.openwall.com/lists/oss-security/2025/04/03/3>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://security.alpinelinux.org/vuln/CVE-2025-31115>
- <https://advisories.mageia.org/MGASA-2025-0131.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34164>
- <https://www.openwall.com/lists/oss-security/2025/04/03/1>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20251137-1/>
- <https://bugzilla.suse.com/1240414>
- <https://www.suse.com/security/cve/CVE-2025-31115>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202520553-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202520590-1/>
- <https://access.redhat.com/errata/RHSA-2025:7524>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2357249>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_7524.json>

---

Data as of 2026-12-05T10:25:34.971Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
