hsec-2025-0003
osv_haskell
Description
# Use after free in multithreaded lzma (.xz) decoder In XZ Utils 5.3.3alpha to 5.8.0, the multithreaded .xz decoder in liblzma has a bug where invalid input can at least result in a crash (CVE-2025-31115). The effects include heap use after free and writing to an address based on the null pointer plus an offset. Applications and libraries that use the `lzma_stream_decoder_mt` function are affected. The Haskell *xz-clib* library vendors and builds the C implementation. The *xz* package does not use the multithreaded decoder and is therefore unaffected.
Timeline
- Published
- unknown
- Last Modified
- unknown
CVSS Details
CVSS details not available.
Affected Products
No product information available.
References
Linked Vulnerabilities
No linked vulnerabilities found.
{
"affected": [
{
"database_specific": {
"human_link": "https://github.com/haskell/security-advisories/tree/main/advisories/published/2025/HSEC-2025-0003.md",
"osv": "https://raw.githubusercontent.com/haskell/security-advisories/refs/heads/generated/osv-export/2025/HSEC-2025-0003.json",
"source": "https://github.com/haskell/security-advisories/blob/generated/osv-export/2025/HSEC-2025-0003.json"
},
"package": {
"ecosystem": "Hackage",
"name": "xz-clib",
"purl": "pkg:hackage/xz-clib"
},
"ranges": [
{
"events": [
{
"introduced": "5.6.3"
},
{
"fixed": "5.8.1"
}
],
"type": "ECOSYSTEM"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
}
],
"versions": [
"5.6.3",
"5.6.4",
"5.8.0",
"5.8.0.1"
]
}
],
"aliases": [
"CVE-2025-31115",
"GHSA-6cc8-p5mm-29w2"
],
"database_specific": {
"home": "https://github.com/haskell/security-advisories",
"osvs": "https://raw.githubusercontent.com/haskell/security-advisories/refs/heads/generated/osv-export",
"repository": "https://github.com/haskell/security-advisories"
},
"details": "# Use after free in multithreaded lzma (.xz) decoder\n\nIn XZ Utils 5.3.3alpha to 5.8.0, the multithreaded .xz decoder in\nliblzma has a bug where invalid input can at least result in a crash\n(CVE-2025-31115). The effects include heap use after free and\nwriting to an address based on the null pointer plus an offset.\nApplications and libraries that use the `lzma_stream_decoder_mt`\nfunction are affected.\n\nThe Haskell *xz-clib* library vendors and builds the C\nimplementation. The *xz* package does not use the multithreaded\ndecoder and is therefore unaffected.\n",
"id": "HSEC-2025-0003",
"modified": "2025-11-14T18:15:45.530030Z",
"published": "2025-11-14T14:45:34Z",
"references": [
{
"type": "ARTICLE",
"url": "https://tukaani.org/xz/threaded-decoder-early-free.html"
},
{
"type": "FIX",
"url": "https://github.com/tukaani-project/xz/commit/d5a2ffe41bb77b918a8c96084885d4dbe4bf6480"
},
{
"type": "FIX",
"url": "https://github.com/hasufell/lzma-static/commit/e95fe96530568addfc83b771900025053e2c6951"
}
],
"schema_version": "1.7.5",
"summary": "Use after free in multithreaded lzma (.xz) decoder"
}