Record · 2024

xz Utils backdoor (CVE-2024-3094)

Over more than two years a contributor persona, Jia Tan, earned the trust of the volunteer maintainer of the xz Utils compression library, which sits underneath the SSH server on several Linux distributions, and in February and March 2024 shipped two releases carrying a backdoorresearch!rsc 2024tukaani.org 2024. Andres Freund found it by accident while chasing slow SSH logins, reported it privately on 28 March 2024, and disclosed it the next dayoss-security mailing lis… 2024research!rsc 2024.

  1. EventThe Jia Tan persona sends a first, innocuous patch to xz-devel. research!rsc 2024
  2. EventFirst evidence that Jia Tan has direct commit access. research!rsc 2024
  3. EventJia Tan builds a first release (5.4.2). research!rsc 2024
  4. IntroducedBackdoored release 5.6.0 published. research!rsc 2024
  5. IntroducedBackdoored release 5.6.1 published. research!rsc 2024
  6. DiscoveredAndres Freund identifies the backdoor while investigating ssh CPU use and valgrind errors. research!rsc 2024oss-security mailing lis… 2024
  7. ReportedPrivate report to Debian and the distros@openwall list; Red Hat assigns CVE-2024-3094. research!rsc 2024
  8. EmbargoOne-day embargo; CERT/CC and CISA coordinate in parallel. oss-security mailing lis… 2024
  9. PatchedDebian rolls back to a 5.4.5-based package before public disclosure. research!rsc 2024
  10. DisclosedPublic disclosure on oss-security. oss-security mailing lis… 2024
  11. AnnouncedCISA alert advises downgrading to an uncompromised version. Cybersecurity and Infras… 2024
  12. AnnouncedRed Hat warns Fedora Rawhide and Fedora 40 beta users; RHEL unaffected. Red Hat blog 2024research!rsc 2024
  13. MitigatedDebian halts builds to rebuild its build machines. research!rsc 2024
  14. PatchedClean upstream XZ Utils releases. tukaani.org 2024

What it did

The backdoor reached development and pre-release channels such as Debian unstable and testing, Fedora Rawhide and Fedora 40 beta, while no RHEL version was affectedRed Hat blog 2024research!rsc 2024. NVD scored it CVSS 10.0NIST 2024.

What it teaches

Trust can be built patiently: the campaign ran 848 days (2.3 years) from first patch to backdoored release, and was caught 33 days after release by one engineer's curiosityresearch!rsc 2024oss-security mailing lis… 2024. The one-day distros embargo was contested in public, between letting distributions ship fixes first and letting everyone react at onceoss-security mailing lis… 2024oss-security mailing lis… 2024.