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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | xz | 5.6.1-r2 | ALPINE-CVE-2024-3094 |
| Alpine:v3.21 | xz | 5.6.1-r2 | ALPINE-CVE-2024-3094 |
| Alpine:v3.22 | xz | 5.6.1-r2 | ALPINE-CVE-2024-3094 |
| Alpine:v3.23 | xz | 5.6.1-r2 | ALPINE-CVE-2024-3094 |
| Alpine:v3.24 | xz | 5.6.1-r2 | ALPINE-CVE-2024-3094 |
| Debian:13 | xz-utils | 5.6.1+really5.4.5-1 | DEBIAN-CVE-2024-3094 |
| Debian:14 | xz-utils | 5.6.1+really5.4.5-1 | DEBIAN-CVE-2024-3094 |
| Ubuntu:22.04:LTS | xz-utils | 5.2.5-2ubuntu1 | UBUNTU-CVE-2024-3094 |
| Ubuntu:24.04:LTS | xz-utils | 5.4.5-0.3 | UBUNTU-CVE-2024-3094 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xz | 5.6.05.6.1 | |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | see references |
Weakness: CWE-506 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://access.redhat.com/security/cve/CVE-2024-3094 vdb-entry, x_refsource_REDHAT
- RHBZ#2272210 issue-tracking, x_refsource_REDHAT
- https://www.openwall.com/lists/oss-security/2024/03/29/4
- https://www.redhat.com/en/blog/urgent-security-alert-fedora-41-and-rawhide-users
- https://www.binarly.io/blog/persistent-risk-xz-utils-backdoor-still-lurking-in-docker-images
- https://ariadne.space/2024/04/02/the-xz-utils-backdoor-is-a-symptom-of-a-larger-problem/ x_transferred
- https://arstechnica.com/security/2024/03/backdoor-found-in-widely-used-linux-utility-breaks-encrypted-ssh-connections/ x_transferred
- https://aws.amazon.com/security/security-bulletins/AWS-2024-002/ x_transferred
- https://blog.netbsd.org/tnf/entry/statement_on_backdoor_in_xz x_transferred
- https://boehs.org/node/everything-i-know-about-the-xz-backdoor x_transferred
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068024 x_transferred
- https://bugs.gentoo.org/928134 x_transferred
- https://bugzilla.suse.com/show_bug.cgi?id=1222124 x_transferred
- https://discourse.nixos.org/t/cve-2024-3094-malicious-code-in-xz-5-6-0-and-5-6-1-tarballs/42405 x_transferred
- https://gist.github.com/thesamesam/223949d5a074ebc3dce9ee78baad9e27 x_transferred
- https://github.com/advisories/GHSA-rxwq-x6h5-x525 x_transferred
- https://github.com/amlweems/xzbot x_transferred
- https://github.com/karcherm/xz-malware x_transferred
- https://gynvael.coldwind.pl/?lang=en&id=782 x_transferred
- https://lists.debian.org/debian-security-announce/2024/msg00057.html x_transferred
- https://lists.freebsd.org/archives/freebsd-security/2024-March/000248.html x_transferred
- https://lwn.net/Articles/967180/ x_transferred
- https://news.ycombinator.com/item?id=39865810 x_transferred
- https://news.ycombinator.com/item?id=39877267 x_transferred
- https://news.ycombinator.com/item?id=39895344 x_transferred
- https://openssf.org/blog/2024/03/30/xz-backdoor-cve-2024-3094/ x_transferred
- https://research.swtch.com/xz-script x_transferred
- https://research.swtch.com/xz-timeline x_transferred
- https://security-tracker.debian.org/tracker/CVE-2024-3094 x_transferred
- https://security.alpinelinux.org/vuln/CVE-2024-3094 x_transferred
- https://security.archlinux.org/CVE-2024-3094 x_transferred
- https://security.netapp.com/advisory/ntap-20240402-0001/ x_transferred
- https://tukaani.org/xz-backdoor/ x_transferred
- https://twitter.com/LetsDefendIO/status/1774804387417751958 x_transferred
- https://twitter.com/debian/status/1774219194638409898 x_transferred
- https://twitter.com/infosecb/status/1774595540233167206 x_transferred
- https://twitter.com/infosecb/status/1774597228864139400 x_transferred
- https://ubuntu.com/security/CVE-2024-3094 x_transferred
- https://www.cisa.gov/news-events/alerts/2024/03/29/reported-supply-chain-compromise-affecting-xz-utils-data-compression-library-cve-2024-3094 x_transferred
- https://www.darkreading.com/vulnerabilities-threats/are-you-affected-by-the-backdoor-in-xz-utils x_transferred