PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2025-31115: 
Rocky Linux vulnerability analysis and mitigation

Overview

XZ Utils, a general-purpose data-compression library with command-line tools, was found to contain a significant vulnerability (CVE-2025-31115) affecting versions 5.3.3alpha through 5.8.0. The vulnerability exists in the multithreaded .xz decoder within liblzma, where invalid input can trigger a crash and potentially lead to more severe security implications (GitHub Advisory, NVD).

Technical details

The vulnerability specifically affects the lzma_stream_decoder_mt function in liblzma. The bug occurs when the decoder frees memory too early, resulting in heap use-after-free conditions and potential null pointer dereference issues. The technical impact includes writing to an address based on the null pointer plus an offset. The vulnerability has been assigned multiple CWE classifications including CWE-416 (Use After Free), CWE-826 (Premature Release of Resource), CWE-366 (Race Condition within a Thread), and CWE-476 (NULL Pointer Dereference). The severity is rated as High with a CVSSv4 score of 8.7 (GitHub Advisory).

Impact

The vulnerability primarily affects applications and libraries that utilize the lzma_stream_decoder_mt function. When exploited, it can cause system crashes leading to denial of service. While the crash exploitation is straightforward, achieving full process takeover is considered more challenging, particularly on 64-bit systems with PIE (Position Independent Executable) enabled. However, exploitation potential is higher on 32-bit systems, especially those without PIE (OSS Security, Security Online).

Exploitability

The vulnerability's exploitability varies depending on the system architecture and security features. According to security researchers, while triggering a crash is relatively easy, achieving full process takeover is considered highly impractical on 64-bit systems with PIE/ASLR enabled. However, exploitation is more feasible on 32-bit systems, particularly those without PIE protection ([OSS Security](http://www.openwall.com/lists/oss-security/2025/04/03/2, http://www.openwall.com/lists/oss-security/2025/04/03/3)).

Mitigation and workarounds

The vulnerability has been fixed in XZ Utils version 5.8.1. For users unable to upgrade immediately, a workaround exists by using the single-threaded decoder, which is not affected by this vulnerability. This can be achieved by using the commands 'xz --decompress --threads=1' or 'xzdec'. Additionally, standalone patches are available for all affected releases, and fixes have been committed to the v5.4, v5.6, v5.8, and master branches in the xz Git repository (GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

xz-utils: 5.4.1-1

Fixed

sid

xz-utils: 5.8.1-1

Fixed

trixie

xz-utils: 5.8.1-1

Fixed

RHEL / CentOS

Fixed

OpenShift

Not Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

xz-1:5.6.2-4.el10_0.src

Fixed

Alpine

Fixed

edge

xz: 5.8.1-r0

Fixed

v3.18

xz: 5.4.3-r1

Fixed

v3.19

xz: 5.4.5-r1

Fixed

v3.20

xz: 5.6.2-r1

Fixed

v3.21

xz: 5.6.3-r1

Fixed

v3.22

xz: 5.8.1-r0

Fixed

v3.23

xz: 5.8.1-r0

Fixed

Source: This report was generated using AI

Related Rocky Linux vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-109619CRITICAL9.2
  • PHP logoPHP
  • php8.4-dba
NoYesOct 21, 2026
CVE-2026-109618CRITICAL9.2
  • PHP logoPHP
  • rh-php71-php-common
NoYesOct 21, 2026
CVE-2026-93523HIGH7.8
  • Rocky Linux logoRocky Linux
  • xorg-x11-server-sdk
NoYesOct 07, 2026
CVE-2026-93521HIGH7.8
  • Rocky Linux logoRocky Linux
  • xorg-x11-server
NoYesOct 07, 2026
CVE-2026-111943MEDIUM6.8
  • Go logoGo
  • crossplane-provider-aws-route53-fips
NoYesOct 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management