Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-31115 on Ubuntu — xz-utils

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

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.

Distribution advisory

This page covers CVE-2025-31115 as tracked by Ubuntu, for the package xz-utils. The fix is available in version 5.6.1+really5.4.5-1ubuntu0.2; earlier versions remain affected.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: 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

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Attack requirements: None — no deployment-specific condition has to hold.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

UBUNTU-CVE-2025-31115 is classified as CWE-366: Race Condition within a Thread. If two threads of execution use a resource simultaneously, there exists the possibility that resources may be used while invalid, in turn making the state of execution undefined.

Affected software

UBUNTU-CVE-2025-31115 is recorded against 1 package.

  • xz-utils (fixed in 5.6.1+really5.4.5-1ubuntu0.2)

Timeline and source

Published on 3 April 2025 and last revised on 22 April 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

ubuntu.com (Report)
www.cve.org (Report)
ubuntu.com (Advisory)

Other advisories for this package

xz-utils has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-366: Race Condition within a Thread) in other software:

CVE-2025-31115 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector 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
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2025-04-03
Updated 2026-08-20
Modified 2026-04-22
Fix URL N/A

Affected Packages

Software From version Fixed in
xz-utils 5.6.1+really5.4.5-1ubuntu0.2

Similar Threats

Free Vulnerability Check

Is your site affected by UBUNTU-CVE-2025-31115?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against UBUNTU-CVE-2025-31115 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesUbuntuUbuntu 2025