Skip to content
RCE Write-up Advanced

Unpacking CVE-2024–3094: A Critical Vulnerability in XZ Utils

The XZ Utils versions 5.6.0 and 5.6.1 contained a backdoor introduced through a supply chain compromise, where an obfuscated build script modified the liblzma Makefile to redirect an SSH authentication function to malicious code. This could allow remote unauthorised access on affected x86-64 Linux systems built with GCC and GNU ld.

infosecwriteups.com

Published on infosecwriteups.com

CVE-2024–3094 has emerged as a critical vulnerability within XZ Utils, a widely used data compression software across major Linux distributions. Announced by Red Hat Linux with a CVSS score of 10, this flaw is attributed to a sophisticated supply chain compromise targeting versions 5.6.0 and 5.6.1 of the XZ libraries​…

ElNiak, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a supply chain compromise where an obfuscated script executed during the build process modified the liblzma Makefile to redirect an SSH authentication function to backdoor code.

Impact

Systems using the affected versions could face unauthorised access, where attackers could potentially execute code remotely, though the exploit only targeted specific x86-64 Linux environments built with GCC and GNU ld.

What the attacker needed

X86-64 Linux system; GCC and GNU ld; Debian or RPM package build; XZ Utils 5.6.0 or 5.6.1

The fix

The text recommends reverting to versions of XZ Utils predating the vulnerability or applying patches provided by the respective distributions, and CISA recommends downgrading to XZ Utils 5.4.6 Stable.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

XZ Utils is a common tool for compressing files on Linux. Someone secretly added malicious code to two of its versions, and that code could let an attacker log in to affected systems without permission. The trick was hidden in the build process, so it only worked on certain Linux setups.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.