Use After Free Affecting xz_utils package, versions [5.4.0,)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-XZUTILS-13057329
  • published26 Sept 2025
  • disclosed2 Apr 2025
  • creditHarri K. Koskinen

Introduced: 2 Apr 2025

CVE-2025-31115  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade xz_utils to version or higher.

Overview

Affected versions of this package are vulnerable to Use After Free when processing multiple threads in the worker_decoder() function in stream_decoder_mt.c. An attacker can cause the input buffer to be freed while a worker-specific thread is still writing to it, triggering a crash.

Note: The lzma_stream_decoder, including its use by xz --decompress --threads=1 and xzdec commands, is not affected.

CVSS Base Scores

version 4.0
version 3.1