Critical Security Update for xz-utils: Addressing CVE-2025-31115

xz-utils Updated 02 Oct 2025

Summary

05/04/2025
N/A
Yes i
Unrated
Not published

DSA-5895-1: xz-utils - security update. Affects xz-utils versions < 5.4.1-1. Fixed in 5.4.1-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

xz-utils is a set of tools used for compressing and decompressing files, primarily utilizing the LZMA algorithm. It is widely used in various Linux distributions, including Debian, for efficient file storage and transfer. The package is known for its high compression ratios and speed, making it a popular choice among developers and system administrators. However, a recently identified vulnerability poses significant risks to systems utilizing this package.

Vulnerability Detail

The vulnerability identified as CVE-2025-31115 affects xz-utils, allowing attackers to exploit a flaw in the handling of compressed files. This could lead to arbitrary code execution or denial of service, compromising the integrity and availability of affected systems. The vulnerability originates from improper validation of input data, which can be manipulated by an attacker to execute malicious code.

How To Fix

Minimum fixed version

5.4.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade xz-utils

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, you can avoid using xz-utils for handling untrusted compressed files until the package is updated. Additionally, consider using alternative compression tools that do not exhibit this vulnerability.

Conclusion

The xz-utils package has a critical vulnerability (CVE-2025-31115) that requires immediate attention. Users are advised to update to version 5.4.1-1 to mitigate risks. Monitoring tools like Vulert can assist in identifying vulnerabilities in your software ecosystem.

See every vulnerability recorded for xz-utils →

Share this vulnerability

FAQ

CVE-2025-31115 is a security vulnerability in xz-utils that allows for potential arbitrary code execution through manipulated compressed files.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Failing to update xz-utils could expose your system to attacks that exploit this vulnerability, potentially leading to data loss or unauthorized access.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

If an immediate update is not possible, refrain from using xz-utils with untrusted files and consider alternative compression tools until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for xz-utils.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

5.4.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade xz-utils

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback