Vulnerability · Published Mar 29, 2024 · Assigned by redhat

CVE-2024-3094Xz: malicious code in distributed source

Critical 10.0

In plain English

A critical-severity security flaw in xz. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 90.9% (higher than 99.8% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)90.9%top 0.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

Malicious code was discovered in the upstream tarballs of xz, starting with version 5.6.0. Through a series of complex obfuscations, the liblzma build process extracts a prebuilt object file from a disguised test file existing in the source code, which is then used to modify specific functions in the liblzma code. This results in a modified liblzma library that can be used by any software linked against this library, intercepting and modifying the data interaction with this library.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20xz5.6.1-r2ALPINE-CVE-2024-3094
Alpine:v3.21xz5.6.1-r2ALPINE-CVE-2024-3094
Alpine:v3.22xz5.6.1-r2ALPINE-CVE-2024-3094
Alpine:v3.23xz5.6.1-r2ALPINE-CVE-2024-3094
Alpine:v3.24xz5.6.1-r2ALPINE-CVE-2024-3094
Debian:13xz-utils5.6.1+really5.4.5-1DEBIAN-CVE-2024-3094
Debian:14xz-utils5.6.1+really5.4.5-1DEBIAN-CVE-2024-3094
Ubuntu:22.04:LTSxz-utils5.2.5-2ubuntu1UBUNTU-CVE-2024-3094
Ubuntu:24.04:LTSxz-utils5.4.5-0.3UBUNTU-CVE-2024-3094

Affected products (as reported)

Weakness: CWE-506 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

References