Xz: malicious code in distributed source
Malicious code was discovered in the upstream tarballs of xz, starting with version 5.6.0. Through a series of complex obfuscations, the liblzma build process extracts a prebuilt object file from a disguised test file existing in the source code, which is then used to modify specific functions in the liblzma code. This results in a modified liblzma library that can be used by any software linked against this library, intercepting and modifying the data interaction with this library.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-3094
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:40 UTC · Revision 1
Source evidence
Malicious code was discovered in the upstream tarballs of xz, starting with version 5.6.0. Through a series of complex obfuscations, the liblzma build process extracts a prebuilt object file from a disguised test file existing in the source code, which is then used to modify specific functions in the liblzma code. This results in a modified liblzma library that can be used by any software linked against this library, intercepting and modifying the data interaction with this library.
osv:CVE-2024-3094
Complete source record
{
"id": "91bdbefc46d4663cebd1a539f2a83909b84f9482b16e4b2c0a63b1ca97a384e3",
"url": "https://osv.dev/vulnerability/CVE-2024-3094",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Xz: malicious code in distributed source",
"summary": "Malicious code was discovered in the upstream tarballs of xz, starting with version 5.6.0. Through a series of complex obfuscations, the liblzma build process extracts a prebuilt object file from a disguised test file existing in the source code, which is then used to modify specific functions in the liblzma code. This results in a modified liblzma library that can be used by any software linked against this library, intercepting and modifying the data interaction with this library.",
"evidence": "osv:CVE-2024-3094",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2024-3094",
"aliases": [
"CVE-2024-3094",
"GHSA-rxwq-x6h5-x525"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/tukaani-project/xz",
"type": "GIT",
"events": [
{
"introduced": "2d7d862e3ffa8cec4fd3fdffcd84e984a17aa429"
},
{
"last_affected": "fd1b975b7851e081ed6e5cf63df946cd5cbdbb94"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "5.6.0"
},
{
"last_affected": "5.6.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"introduced": "5.6.1"
},
{
"last_affected": "5.6.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"cpe": "cpe:2.3:a:tukaani:xz:5.6.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.6.0"
},
{
"last_affected": "5.6.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:tukaani:xz:5.6.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.6.1"
},
{
"last_affected": "5.6.1"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"5.6.0",
"5.6.1",
"v5.6.1",
"v5.6.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3094.json"
}
}
],
"modified": "2026-10-28T02:30:52.962780903Z",
"provider": "osv",
"references": [
"https://access.redhat.com/downloads/content/package-browser/",
"https://access.redhat.com/jbossnetwork/restricted/listSoftware.html",
"https://ariadne.space/2024/04/02/the-xz-utils-backdoor-is-a-symptom-of-a-larger-problem/",
"https://arstechnica.com/security/2024/03/backdoor-found-in-widely-used-linux-utility-breaks-encrypted-ssh-connections/",
"https://aws.amazon.com/security/security-bulletins/AWS-2024-002/",
"https://boehs.org/node/everything-i-know-about-the-xz-backdoor",
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068024",
"https://bugs.gentoo.org/928134",
"https://discourse.nixos.org/t/cve-2024-3094-malicious-code-in-xz-5-6-0-and-5-6-1-tarballs/42405",
"https://gist.github.com/thesamesam/223949d5a074ebc3dce9ee78baad9e27",
"https://gynvael.coldwind.pl/?lang=en&id=782",
"https://lists.debian.org/debian-security-announce/2024/msg00057.html",
"https://lists.freebsd.org/archives/freebsd-security/2024-March/000248.html",
"https://lwn.net/Articles/967180/",
"https://news.ycombinator.com/item?id=39865810",
"https://news.ycombinator.com/item?id=39877267",
"https://news.ycombinator.com/item?id=39895344",
"https://research.swtch.com/xz-script",
"https://research.swtch.com/xz-timeline",
"https://security-tracker.debian.org/tracker/CVE-2024-3094",
"https://security.alpinelinux.org/vuln/CVE-2024-3094",
"https://security.archlinux.org/CVE-2024-3094",
"https://tukaani.org/xz-backdoor/",
"https://twitter.com/LetsDefendIO/status/1774804387417751958",
"https://twitter.com/debian/status/1774219194638409898",
"https://twitter.com/infosecb/status/1774595540233167206",
"https://twitter.com/infosecb/status/1774597228864139400",
"https://ubuntu.com/security/CVE-2024-3094",
"https://www.cisa.gov/news-events/alerts/2024/03/29/reported-supply-chain-compromise-affecting-xz-utils-data-compression-library-cve-2024-3094",
"https://www.darkreading.com/vulnerabilities-threats/are-you-affected-by-the-backdoor-in-xz-utils",
"https://www.openwall.com/lists/oss-security/2024/03/29/4",
"https://www.theregister.com/2024/03/29/malicious_backdoor_xz/",
"https://www.vicarius.io/vsociety/vulnerabilities/cve-2024-3094",
"https://xeiaso.net/notes/2024/xz-vuln/",
"https://access.redhat.com/security/cve/CVE-2024-3094",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3094.json",
"https://github.com/advisories/GHSA-rxwq-x6h5-x525",
"https://nvd.nist.gov/vuln/detail/CVE-2024-3094",
"https://security.netapp.com/advisory/ntap-20240402-0001/",
"https://bugzilla.redhat.com/show_bug.cgi?id=2272210",
"https://bugzilla.suse.com/show_bug.cgi?id=1222124",
"https://github.com/amlweems/xzbot",
"https://github.com/karcherm/xz-malware",
"https://github.com/tukaani-project/xz",
"https://blog.netbsd.org/tnf/entry/statement_on_backdoor_in_xz",
"https://openssf.org/blog/2024/03/30/xz-backdoor-cve-2024-3094/",
"https://www.binarly.io/blog/persistent-risk-xz-utils-backdoor-still-lurking-in-docker-images",
"https://www.kali.org/blog/about-the-xz-backdoor/",
"https://www.redhat.com/en/blog/urgent-security-alert-fedora-41-and-rawhide-users",
"https://www.tenable.com/blog/frequently-asked-questions-cve-2024-3094-supply-chain-backdoor-in-xz-utils"
],
"provider_metadata": {
"cwe_ids": [
"CWE-506"
],
"cna_assigner": "redhat",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3094.json"
}
},
"related_cves": [
{
"value": "CVE-2024-3094",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521870,
"published_at": "2024-03-29T16:51:12.588+00:00"
}