CVE-2025-31115

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

HIGH
8.7
CVSS Score
Published: April 3, 2025 at 04:57 PM UTC
Updated: October 15, 2026 at 01:06 AM UTC
4 products affected across 2 vendorsSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSiplus S7-1500 CPU 1518-4 Pn /dp MFP FirmwareSIMATIC S7-1500 CPU 1518F 4 Pn /dp MFP Firmware

Using xz by tukaani-project?

Get instant alerts when new vulnerabilities affect xz - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.7
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.8.1
Affected range stops below 5.8.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-366CWE-416CWE-476CWE-826

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card