# CVE-2021-29482: GO-2020-0016 - Infinite loop in github.com/ulikunitz/xz

Source: https://junglewise.ai/threats/cve-2021-29482-github-com-ulikunitz-xz-fixes-readuvarint-denial-of-service-dos  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

CVE-2021-29482 · Severity: low · CVSS 3.1 · Published 2021-04-14

Infinite loop 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-2021-29482 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-29482 being exploited in the wild.

**How severe is CVE-2021-29482?** Low severity, with a CVSS score of 3.1, published 14 April 2021.

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

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

**Am I affected by CVE-2021-29482?** 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.8 or later

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


## Affected products

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

## Identifiers

- CVE-2021-29482
- GHSA-25xm-hr59-7c27
- GO-2020-0016

## Related threats

- [GO-2025-3922 - Memory leaks when decoding a corrupted multiple LZMA archives in github.com/ulikunitz/xz](https://junglewise.ai/threats/cve-2025-58058-github-com-ulikunitz-xz-leaks-memory-when-decoding-a-corrupted)
- [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)
