How to fix CVE-2024-3094 – Step-by-Step Guide
CVE-2024-3094, known as the XZ Utils Backdoor, is a critical supply chain vulnerability. It affects XZ Utils versions 5.6.0 and 5.6.1, posing a severe security risk. This backdoor allowed unauthorized remote access on compromised systems.
What is XZ Utils Backdoor – Supply Chain Attack?
This vulnerability involves a sophisticated supply chain attack where malicious code was injected into XZ Utils versions 5.6.0 and 5.6.1. The backdoor specifically targets liblzma, a component of XZ Utils. When present on systems using systemd-linked sshd, it enables unauthorized remote SSH access, bypassing authentication.
Impact and Risks for your Infrastructure
The primary impact is unauthorized remote access to affected systems running XZ Utils 5.6.0 or 5.6.1 with systemd-linked sshd. This could lead to complete system compromise and data exfiltration. While discovered early, unpatched systems face a critical risk of full control by attackers.
Step-by-Step Mitigation Guide
Immediately identify and downgrade XZ Utils to version 5.4.6 or upgrade to 5.6.2 or later. Verify the installed XZ Utils version using your package manager. Ensure no compromised versions (5.6.0, 5.6.1) remain on your systems to eliminate the backdoor.
- 1Downgrade XZ Utils to 5.4.6 or upgrade to 5.6.2+ immediately.
- 2Verify installed version: xz --version
- 3Audit system for indicators of compromise (IoC): check sshd binary hash.
- 4Rotate all SSH keys on affected systems.
- 5Implement software supply chain checks (SBOM, Sigstore, Trivy).
- 6Review and harden your CI/CD pipeline dependency management.