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

Source: https://junglewise.ai/threats/cve-2025-58058-github-com-ulikunitz-xz-leaks-memory-when-decoding-a-corrupted  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-09-17  
License: CC BY 4.0 with a link back

CVE-2025-58058 · Severity: low · CVSS 3.1 · Published 2025-09-17

Memory leaks when decoding a corrupted multiple LZMA archives in github.com/ulikunitz/xz

Technologies: [github.com/ulikunitz/xz (Go)](https://junglewise.ai/threats/technologies/github-com-ulikunitz-xz). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2025-58058 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-58058 being exploited in the wild.

**How severe is CVE-2025-58058?** Low severity, with a CVSS score of 3.1, published 17 September 2025.

**Which products and versions are affected?** github.com/ulikunitz/xz (Go) SEMVER:introduced=0,fixed=0.5.15.

**Is there a fix for CVE-2025-58058?** Yes. github.com/ulikunitz/xz (Go): upgrade to 0.5.15 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-58058?** Check whether you run github.com/ulikunitz/xz (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/ulikunitz/xz (Go): upgrade to 0.5.15 or later

  ```sh
  go get github.com/ulikunitz/xz@v0.5.15
  ```


## Affected products

- github.com/ulikunitz/xz (Go) SEMVER:introduced=0,fixed=0.5.15

## Identifiers

- CVE-2025-58058
- GHSA-jc7w-c686-c4v9
- GO-2025-3922

## Related threats

- [Go encoding/binary infinite loop in ReadUvarint and ReadVarint](https://junglewise.ai/threats/cve-2020-16845-go-encoding-binary-infinite-loop-in-readuvarint-and-readvarint)
- [GO-2020-0016 - Infinite loop in github.com/ulikunitz/xz](https://junglewise.ai/threats/cve-2021-29482-github-com-ulikunitz-xz-fixes-readuvarint-denial-of-service-dos)
