Skip to main content
EPSS 0.7%top 51%

CVE-2025-31115: CWE-366: Race Condition within a Thread in tukaani-project xz

0
High
Published: 04/03/2025 (04/03/2025, 16:57:05 UTC)
Source: CVE Database V5
Vendor/Project: tukaani-project
Product: xz

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 v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
tukaani-project/xz
pkg:github/tukaani-project/xz
Affected versions
<5.8

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 11:16:49 UTC

Technical Analysis

CVE-2025-31115 is a race condition vulnerability in the multithreaded .xz decoder component (liblzma) of XZ Utils versions 5.3.3alpha through 5.8.0. When processing invalid input, the decoder may crash due to heap use after free and writing to memory addresses derived from null pointers plus offsets. This affects any application or library utilizing the lzma_stream_decoder_mt function. The issue has been addressed and fixed in version 5.8.1, with patches committed to the v5.4, v5.6, v5.8, and master branches of the xz Git repository. No new releases will be made from older stable branches, but standalone patches are available for all affected versions.

Potential Impact

The vulnerability can cause application crashes and memory corruption (heap use after free and null pointer dereference) when decoding invalid .xz input in a multithreaded context. This can lead to denial of service or potentially other undefined behaviors in affected applications. There are no known exploits in the wild at this time.

Mitigation Recommendations

A fix is available in XZ Utils version 5.8.1. Users and developers should upgrade to version 5.8.1 or later. For those unable to upgrade, standalone patches have been provided for all affected releases and should be applied. No vendor advisory indicates that no action is required or that the issue is already mitigated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-03-26T15:04:52.624Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a031edecbff5d8610deb8b5

Added to database: 05/12/2026, 12:36:46 UTC

Last enriched: 07/15/2026, 11:16:49 UTC

Last updated: 09/10/2026, 19:36:50 UTC

Views: 99

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses