Skip to content
RCE Write-up Advanced

Is the XZ Utils CVE-2024-3094 as bad as we fear?

A backdoor was deliberately inserted into the xz-utils compression library by a project maintainer, targeting the OpenSSH server's authentication step. An attacker with the matching private key could gain unauthorised control over a vulnerable server that exposes SSH to the internet.

intruder.io

Published on intruder.io

Over the Easter weekend (29 March - 1 April 2024) a major vulnerability within 'xz-utils' was identified, the likes of which that hasn't been seen before. Unlike other vulnerabilities, this one appears to have been deliberately added by a maintainer of the project.

The author, on intruder.io

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 trusted maintainer deliberately inserted obfuscated backdoor code into the build process, disguised as a test file, to hijack SSH authentication.

Impact

An attacker holding the specific private key could take control of servers that meet all vulnerable conditions, though the backdoor was discovered before widespread distribution.

What the attacker needed

Xz-utils version 5.6.0-5.6.1 installed; Linux distribution using systemd; Publicly accessible sshd service

The fix

The affected xz-utils versions should be downgraded and the sshd service restarted.

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.

A backdoor is a secret way into software that bypasses normal login checks. Here, someone who had earned trust in a widely used compression tool added hidden code that let them log into servers running the OpenSSH service without a valid password, but only if they held a special private key. The problem was caught before it reached most stable Linux systems.

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.