# CVE-2025-58058: github.com/ulikunitz/xz leaks memory when decoding a corrupted multiple LZMA archives

CVE-2025-58058 is fixed in 10 products on 1 platform, first by DEBIAN-CVE-2025-58058, released August 28, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-58058
- Priority: Routine
- CVSS: 5.3 (medium)
- EPSS: 0.0043
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 28, 2025
- Weakness: Allocation of Resources Without Limits or Throttling
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-58058

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | alloy opensuse-leap 16.0 | 1.11.3-160000.1.1 | [OPENSUSE-SU-2025:20073-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2025-20073-1.md) | Nov 20, 2025 |
| Linux | alloy sles 15.7 | 1.11.3-150700.15.9.1 | [SUSE-SU-2025:4121-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-4121-1.md) | Nov 17, 2025 |
| Linux | alloy sles 16.0 | 1.11.3-160000.1.1 | [SUSE-SU-2025:21137-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-21137-1.md) | Nov 20, 2025 |
| Linux | containerized-data-importer sles 15.7 | 1.64.0-150700.9.14.1 | [SUSE-SU-2026:4209-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4209-1.md) | Sep 16, 2026 |
| Linux | containerized-data-importer1.65 opensuse-leap 16.0 | 1.65.0-160000.3.1 | [OPENSUSE-SU-2026:21824-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21824-1.md) | Sep 9, 2026 |
| Linux | golang-github-ulikunitz-xz Debian 14 | 0.5.15-1 | [DEBIAN-CVE-2025-58058](https://patchblox.com/security/data/fix/linux/debian-cve-2025-58058.md) | Aug 28, 2025 |
| Linux | govulncheck-vulndb opensuse-leap 15.6 | 0.0.20250918T182144-150000.1.107.1 | [SUSE-SU-2025:03289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03289-1.md) | Sep 22, 2025 |
| Linux | govulncheck-vulndb opensuse-leap 16.0 | 0.0.20260723T184607-160000.1.1 | [OPENSUSE-SU-2026:21483-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21483-1.md) | Jul 30, 2026 |
| Linux | govulncheck-vulndb sles 15.6 | 0.0.20250918T182144-150000.1.107.1 | [SUSE-SU-2025:03289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03289-1.md) | Sep 22, 2025 |
| Linux | hauler opensuse-leap 16.0 | 1.3.1-bp160.1.1 | [OPENSUSE-SU-2025:20160-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2025-20160-1.md) | Dec 12, 2025 |
| Linux | rekor opensuse-leap 15.6 | 1.4.3-150400.4.28.1 | [SUSE-SU-2026:0383-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0383-1.md) | Feb 4, 2026 |
| Linux | rekor sles 15.7 | 1.4.3-150400.4.28.1 | [SUSE-SU-2026:0383-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0383-1.md) | Feb 4, 2026 |
| Linux | sbctl opensuse-leap 16.0 | 0.18-bp160.1.1 | [OPENSUSE-SU-2026:20105-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20105-1.md) | Jan 23, 2026 |
| Linux | tailscale opensuse-leap 16.0 | 1.94.1-bp160.1.1 | [OPENSUSE-SU-2026:20192-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20192-1.md) | Feb 10, 2026 |
| Linux | warewulf4 opensuse-leap 15.6 | 4.6.4-150500.6.37.1 | [SUSE-SU-2025:03448-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03448-1.md) | Oct 2, 2025 |
| Linux | warewulf4 opensuse-leap 16.0 | 4.7.0-bp160.1.1 | [OPENSUSE-SU-2026:21151-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21151-1.md) | Jun 23, 2026 |
| Linux | warewulf4 sles 15.6 | 4.6.4-150500.6.37.1 | [SUSE-SU-2025:03448-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03448-1.md) | Oct 2, 2025 |
| Linux | warewulf4 sles 15.7 | 4.6.4-150500.6.37.1 | [SUSE-SU-2025:03448-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03448-1.md) | Oct 2, 2025 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
