Introduction
On March 29, 2024, Red Hat issued an urgent security alert after malicious code was found embedded in two versions of XZ Utils, a data compression library present in nearly every Linux distribution. The code, tracked as CVE-2024-3094 and rated a maximum CVSS score of 10.0, created a backdoor in the sshd process. What made the case unusual wasn't just the backdoor itself, but how it got there: through a social engineering campaign against the project's maintainer that had been running for roughly two years.
The Backdoor Mechanism
The malicious code was hidden inside two disguised test files in the source tarball, extracted during the liblzma build process and used to modify specific functions in the compiled library. Any software linking against liblzma, which includes OpenSSH on affected systems through a build dependency involving systemd, inherited the tampered functions. The backdoor intercepted authentication in sshd and, under the right conditions, allowed a remote attacker to execute code before authentication completed.
That access wasn't open to anyone who found the backdoor. Exploitation required a specific Ed448 private key held only by the attacker, meaning the vulnerability functioned as a lock only one party held the key to, not a door left open to the internet at large.
The Social Engineering Campaign Behind It
The malicious code didn't appear from an external hack. It was committed by a maintainer account using the name Jia Tan, which had spent nearly two years contributing legitimate patches to the XZ Utils project and gradually building trust with Lasse Collin, the project's sole maintainer at the time. Multiple other accounts, widely believed to be linked to the same operation, pressured Collin over his slow response times and pushed for a co-maintainer to be added, according to research published by Akamai's security team. That pressure is what eventually led to Jia Tan receiving commit and release access.
No organization or government has formally attributed the campaign to a specific actor. Researchers have noted that a two-year investment in building trust before executing a backdoor is a hallmark of well-resourced, patient operations, but caution that this alone isn't proof of state sponsorship.
Discovery and Response
Andres Freund, a Microsoft engineer and PostgreSQL developer, found the backdoor while investigating an unrelated performance issue: SSH logins on a system he was benchmarking were taking roughly half a second longer than expected. That investigation led him to the malicious code, which he reported to the Openwall oss-security mailing list on March 29, 2024.
The compromised versions never reached stable production releases. They were caught in beta and testing channels, including Fedora Rawhide, Fedora 40 beta, and Debian's testing, unstable, and experimental branches, before wider distribution occurred. The US Cybersecurity and Infrastructure Security Agency issued its own alert the same day Red Hat's went out, recommending an immediate downgrade to XZ Utils 5.4.6 or another version predating 5.6.0, and asking anyone who found evidence of exploitation to report it directly to the agency. The European Union's CERT-EU issued a parallel advisory shortly after.
Where It Stands Now
The GitHub account associated with Jia Tan was suspended, and the XZ Utils project has since gone through a maintainer overhaul with additional oversight. The case has become a reference point in software supply chain security specifically because the entry point wasn't a technical flaw in the code; it was a slow, patient compromise of the trust an open source maintainer extends to long-term contributors. Single-maintainer open source projects, especially ones deeply embedded as build dependencies across major operating systems, remain exposed to the same pattern.
Sources
Cybersecurity and Infrastructure Security Agency, "Reported Supply Chain Compromise Affecting XZ Utils Data Compression Library, CVE-2024-3094." cisa.gov/news-events/alerts/2024/03/29/reported-supply-chain-compromise-affecting-xz-utils-data-compression-library-cve-2024-3094
CERT-EU, Security Advisory 2024-032, "Critical Vulnerability in XZ Utils." cert.europa.eu/publications/security-advisories/2024-032
Red Hat Customer Portal, official CVE-2024-3094 record. access.redhat.com/security/cve/cve-2024-3094
Akamai, "XZ Utils Backdoor — Everything You Need to Know, and What You Can Do." akamai.com/blog/security-research/critical-linux-backdoor-xz-utils-discovered-what-to-know