{"answers":{"affected":"1 open source package ship an affected version, including xz-clib.","exploited":"There is no known exploitation of CVE-2025-31115 in the wild and no public exploit code.","fix":"Upgrade xz-clib to 5.8.1 or later.","what":"CVE-2025-31115 is a high-severity use after free vulnerability in tukaani-project xz, published on 3 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-31115 and fix it if it is affected.\n\nWhat it is: CVE-2025-31115 is a high-severity use after free vulnerability in tukaani-project xz, published on 3 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-31115 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- xz-clib (Hackage): affected from 5.6.3; fixed in 5.8.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-31115/ (Markdown: https://insights.sbomify.com/CVE-2025-31115/index.md)","id":"CVE-2025-31115","markdown":"https://insights.sbomify.com/CVE-2025-31115/index.md","name":"CVE-2025-31115","record":{"aliases":["ALPINE-CVE-2025-31115","ALSA-2025:7524","AZL-59497","BELL-CVE-2025-31115","DEBIAN-CVE-2025-31115","DSA-5895-1","ECHO-06a1-9520-94df","GHSA-6cc8-p5mm-29w2","HSEC-2025-0003","MGASA-2025-0131","OESA-2025-1430","OESA-2025-1431","RHSA-2025:7524","RLSA-2025:7524","SUSE-SU-2025:1137-1","SUSE-SU-2025:20553-1","SUSE-SU-2025:20590-1","UBUNTU-CVE-2025-31115","USN-7414-1","openSUSE-SU-2025:14984-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"XZ compression library","requires_auth":"none","summary":"A heap use-after-free bug in the XZ Utils multithreaded decoder allows attackers to cause a crash via invalid input.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-826","name":"Premature Release of Resource During Expected Lifetime"},{"id":"CWE-476","name":"NULL Pointer Dereference"},{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-366","name":"Race Condition within a Thread"}],"description":"XZ Utils provide a general-purpose data-compression library plus command-line tools. 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. 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 bug has been fixed in XZ Utils 5.8.1, and the fix has been committed to the v5.4, v5.6, v5.8, and master branches in the xz Git repository. No new release packages will be made from the old stable branches, but a standalone patch is available that applies to all affected releases.","ecosystems":["AlmaLinux:10","Hackage","Red Hat:enterprise_linux:10.0","Rocky Linux:10","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Micro 6.0","SUSE:Linux Micro 6.1","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"XZ has a heap-use-after-free bug in threaded .xz decoder","id":"CVE-2025-31115","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2025"},"n_packages":19,"n_references":3,"next":{"headline":"Mobile Security Framework (MobSF) has a SSRF Vulnerability fix bypass on assetlinks_check with DNS Rebinding","id":"CVE-2025-31116"},"packages":[{"ecosystem":"Hackage","fixed":["5.8.1"],"introduced":["5.6.3"],"last_affected":[],"package":"xz-clib","purl":"pkg:hackage/xz-clib","source":"HSEC-2025-0003"},{"ecosystem":"AlmaLinux:10","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/almalinux/xz","source":"ALSA-2025:7524"},{"ecosystem":"AlmaLinux:10","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-devel","purl":"pkg:rpm/almalinux/xz-devel","source":"ALSA-2025:7524"},{"ecosystem":"AlmaLinux:10","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-libs","purl":"pkg:rpm/almalinux/xz-libs","source":"ALSA-2025:7524"},{"ecosystem":"AlmaLinux:10","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat","purl":"pkg:rpm/almalinux/xz-lzma-compat","source":"ALSA-2025:7524"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/redhat/xz","source":"RHSA-2025:7524"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-debuginfo","purl":"pkg:rpm/redhat/xz-debuginfo","source":"RHSA-2025:7524"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-debugsource","purl":"pkg:rpm/redhat/xz-debugsource","source":"RHSA-2025:7524"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-devel","purl":"pkg:rpm/redhat/xz-devel","source":"RHSA-2025:7524"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-libs","purl":"pkg:rpm/redhat/xz-libs","source":"RHSA-2025:7524"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-libs-debuginfo","purl":"pkg:rpm/redhat/xz-libs-debuginfo","source":"RHSA-2025:7524"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat","purl":"pkg:rpm/redhat/xz-lzma-compat","source":"RHSA-2025:7524"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz-lzma-compat-debuginfo","purl":"pkg:rpm/redhat/xz-lzma-compat-debuginfo","source":"RHSA-2025:7524"},{"ecosystem":"Rocky Linux:10","fixed":["1:5.6.2-4.el10_0"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/rocky-linux/xz?distro=rocky-linux-10-0\u0026epoch=1","source":"RLSA-2025:7524"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["5.4.1-150600.3.3.1"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/suse/xz\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2025:1137-1"},{"ecosystem":"SUSE:Linux Micro 6.0","fixed":["5.4.3-5.1"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/suse/xz\u0026distro=SUSE%20Linux%20Micro%206.0","source":"SUSE-SU-2025:20553-1"},{"ecosystem":"SUSE:Linux Micro 6.1","fixed":["5.4.3-slfo.1.1_2.1"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/suse/xz\u0026distro=SUSE%20Linux%20Micro%206.1","source":"SUSE-SU-2025:20590-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["5.4.1-150600.3.3.1"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/opensuse/xz\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:1137-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.8.1-1.1"],"introduced":["0"],"last_affected":[],"package":"xz","purl":"pkg:rpm/opensuse/xz\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14984-1"}],"prev":{"headline":"Fooocus webui vulnerable to Remote Code Execution","id":"CVE-2025-31114"},"products":["xz"],"published":"2025-04-03","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"open","licence":"CC0 1.0","name":"Haskell Security Response Team","prefix":"HSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-15","vendors":["tukaani-project"]},"summary":"A heap use-after-free bug in the XZ Utils multithreaded decoder allows attackers to cause a crash via invalid input.","url":"https://insights.sbomify.com/CVE-2025-31115/"}