{"answers":{"affected":"3 open source packages ship an affected version, including github.com/ulikunitz/xz.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58058 exists.","fix":"Upgrade github.com/ulikunitz/xz to 0.5.15 or later.","what":"CVE-2025-58058 is a medium-severity denial of service vulnerability in ulikunitz xz, published on 28 Aug 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-58058 and fix it if it is affected.\n\nWhat it is: CVE-2025-58058 is a medium-severity denial of service vulnerability in ulikunitz xz, published on 28 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58058 exists.\n\nAffected packages and fixed versions:\n- github.com/ulikunitz/xz (Go): affected all versions; fixed in 0.5.15\n- github.com/ulikunitz/xz (Go): affected all versions; fixed in 0.5.15\n- github.com/ulikunitz/xz (Go): affected all versions; fixed in 0.5.15\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-58058/ (Markdown: https://insights.sbomify.com/CVE-2025-58058/index.md)","id":"CVE-2025-58058","markdown":"https://insights.sbomify.com/CVE-2025-58058/index.md","name":"CVE-2025-58058","record":{"aliases":["AZL-66713","AZL-66716","AZL-66720","AZL-66723","AZL-66725","AZL-66728","AZL-66731","AZL-66735","AZL-66741","AZL-66744","AZL-66747","AZL-66750","AZL-66753","AZL-66759","AZL-66762","CLEANSTART-2026-CV85257","CLEANSTART-2026-UK11362","DEBIAN-CVE-2025-58058","GHSA-jc7w-c686-c4v9","GO-2025-3922","MINI-25m5-597x-42cp","MINI-27x9-386c-9fx4","MINI-2hxp-px8v-3f44","MINI-2rjq-464j-rpq2","MINI-37qr-c383-w4px","MINI-44hh-6vj2-rjpf","MINI-4wg6-qcgh-h7hv","MINI-59cc-8g88-j84r","MINI-5rpx-h4gq-846q","MINI-66h2-qmff-p2qf","MINI-66j6-8xc5-mph2","MINI-698g-w7qp-6r65","MINI-6v7c-rcj5-96v6","MINI-6vc4-vrw7-mgr9","MINI-7839-mg7g-ph45","MINI-7cjq-rj25-69g7","MINI-7r5q-rvwc-9v6f","MINI-8823-vm3v-x256","MINI-92w4-m4gv-chw8","MINI-93rw-p4h2-9vrh","MINI-9gxr-xf5r-jpf3","MINI-9qqx-rcr4-wmh3","MINI-f3g2-9v68-pgcf","MINI-f57v-q6hx-wwgp","MINI-f6h7-r3xg-5jr5","MINI-hgpw-4pmg-4v4f","MINI-hr8m-q6xr-2wj7","MINI-j4wm-mr96-9xrv","MINI-m4rq-gh8p-22g5","MINI-m8qr-h74g-9xpj","MINI-mpp4-2gcv-9cpj","MINI-mvrf-6m8c-g9c5","MINI-r57r-2h8w-r2p4","MINI-rhr5-vw3m-897v","MINI-v5pr-jcc5-8h54","MINI-wpgp-w94w-v4rx","MINI-xcj5-ppmq-mvpw","MINI-xrxv-qjjg-g582","SUSE-SU-2025:03448-1","UBUNTU-CVE-2025-58058","openSUSE-SU-2025:15503-1","openSUSE-SU-2025:15509-1","openSUSE-SU-2025:15515-1","openSUSE-SU-2025:15537-1","openSUSE-SU-2025:15542-1","openSUSE-SU-2025:20031-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go xz library","requires_auth":"none","summary":"An attacker can cause excessive memory consumption and potential denial of service by providing corrupted LZMA archives to the Go xz library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"xz is a pure golang package for reading and writing xz-compressed files. Prior to version 0.5.14, it is possible to put data in front of an LZMA-encoded byte stream without detecting the situation while reading the header. This can lead to increased memory consumption because the current implementation allocates the full decoding buffer directly after reading the header. The LZMA header doesn't include a magic number or has a checksum to detect such an issue according to the specification. Note that the code recognizes the issue later while reading the stream, but at this time the memory allocation has already been done. This issue has been patched in version 0.5.14.","ecosystems":["Go","SUSE:Linux Enterprise Module for HPC 15 SP6","SUSE:Linux Enterprise Module for HPC 15 SP7","openSUSE:Leap 15.6","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"github.com/ulikunitz/xz leaks memory when decoding a corrupted multiple LZMA archives","id":"CVE-2025-58058","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":12,"n_references":2,"next":{"headline":"Valtimo scripting engine can be used to gain access to sensitive data or resources","id":"CVE-2025-58059"},"packages":[{"ecosystem":"Go","fixed":["0.5.15"],"introduced":["0"],"last_affected":[],"package":"github.com/ulikunitz/xz","purl":null,"source":"GHSA-jc7w-c686-c4v9"},{"ecosystem":"Go","fixed":["0.5.15"],"introduced":["0"],"last_affected":[],"package":"github.com/ulikunitz/xz","purl":"pkg:golang/github.com/ulikunitz/xz","source":"GHSA-jc7w-c686-c4v9"},{"ecosystem":"Go","fixed":["0.5.15"],"introduced":["0"],"last_affected":[],"package":"github.com/ulikunitz/xz","purl":"pkg:golang/github.com/ulikunitz/xz","source":"GO-2025-3922"},{"ecosystem":"SUSE:Linux Enterprise Module for HPC 15 SP6","fixed":["4.6.4-150500.6.37.1"],"introduced":["0"],"last_affected":[],"package":"warewulf4","purl":"pkg:rpm/suse/warewulf4\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20HPC%2015%20SP6","source":"SUSE-SU-2025:03448-1"},{"ecosystem":"SUSE:Linux Enterprise Module for HPC 15 SP7","fixed":["4.6.4-150500.6.37.1"],"introduced":["0"],"last_affected":[],"package":"warewulf4","purl":"pkg:rpm/suse/warewulf4\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20HPC%2015%20SP7","source":"SUSE-SU-2025:03448-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["4.6.4-150500.6.37.1"],"introduced":["0"],"last_affected":[],"package":"warewulf4","purl":"pkg:rpm/opensuse/warewulf4\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:03448-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["4.6.4-bp160.1.1"],"introduced":["0"],"last_affected":[],"package":"warewulf4","purl":"pkg:rpm/opensuse/warewulf4\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2025:20031-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.9.2-1.1"],"introduced":["0"],"last_affected":[],"package":"regclient","purl":"pkg:rpm/opensuse/regclient\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15515-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.17-2.1"],"introduced":["0"],"last_affected":[],"package":"sbctl","purl":"pkg:rpm/opensuse/sbctl\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15509-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.86.5-1.1"],"introduced":["0"],"last_affected":[],"package":"tailscale","purl":"pkg:rpm/opensuse/tailscale\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15503-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.66.0-1.1"],"introduced":["0"],"last_affected":[],"package":"trivy","purl":"pkg:rpm/opensuse/trivy\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15542-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.6.4-1.1"],"introduced":["0"],"last_affected":[],"package":"warewulf4","purl":"pkg:rpm/opensuse/warewulf4\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15537-1"}],"prev":{"headline":"Netty's BrotliDecoder is vulnerable to DoS via zip bomb style attack","id":"CVE-2025-58057"},"products":["xz"],"published":"2025-08-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-29","vendors":["ulikunitz"]},"summary":"An attacker can cause excessive memory consumption and potential denial of service by providing corrupted LZMA archives to the Go xz library.","url":"https://insights.sbomify.com/CVE-2025-58058/"}