8.7

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

Deferred
AliasesALPINE-CVE-2025-31115MGASA-2025-0131SUSE-SU-2025:1137-1
Published 03-04-2025Last modified 15-10-2026

Vulnerability summary

CVE-2025-31115 is a high (CVSS 8.7) Race Condition within a Thread vulnerability in tukaani-project xz. EPSS estimates a 0.68% chance of exploitation in the next 30 days, higher than 53.6% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.68%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 03-04-2025
    PublishedVulnerability first disclosed.
  2. 15-10-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 6 sources · 2 versions

EPSS trend

Probability

0.68%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.68% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat8 products
  • xz< 1:5.6.2-4.el10_0
  • xz-debuginfo< 1:5.6.2-4.el10_0
  • xz-debugsource< 1:5.6.2-4.el10_0
  • xz-devel< 1:5.6.2-4.el10_0
  • xz-libs< 1:5.6.2-4.el10_0
Suse3 products
  • xz&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6< 5.4.1-150600.3.3.1
  • xz&distro=SUSE Linux Micro 6.0< 5.4.3-5.1
  • xz&distro=SUSE Linux Micro 6.1< 5.4.3-slfo.1.1_2.1
Opensuse2 products
  • xz&distro=openSUSE Leap 15.6< 5.4.1-150600.3.3.1
  • xz&distro=openSUSE Tumbleweed< 5.8.1-1.1
Alpine1 product
  • xz< 5.4.3-r1 | < 5.4.5-r1 | < 5.6.2-r1 | < 5.6.3-r1 | < 5.8.1-r0
Debian1 product
  • xz-utils< 5.4.1-1 | < 5.8.1-1
Mageia1 product
  • xz< 5.4.3-1.1.mga9
Tukaani-project1 product
  • xz≥ 5.3.3alpha, < 5.8.1
Ubuntu1 product
  • xz-utils< 5.6.1+really5.4.5-1ubuntu0.2

8 vendors · 18 products

References

27 links
Show all 27 references