CVE Tools

CVE-2025-31115

XZ has a heap-use-after-free bug in threaded .xz decoder

Published: Apr 3, 2025Updated: May 12, 2026 Sources: CVE List NVD BDU csafCWE-366

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.

No summary for this CVE yet.

CVSS Vector Breakdown

AV:NAC:LC:NI:NA:H
Exploitability
AV:NAccess Vector
Network
AC:LAccess Complexity
Low
Impact
C:NConfidentiality
None
I:NIntegrity
None
A:HAvailability
H

Weaknesses

Affected Products

Exploitability

Official Patch Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

3 techniques
Impact
Initial Access
Privilege Escalation
View detailed technique mapping

References

and 27 more references View all →

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2025-31115 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows