ADVISORIES

Vulnerability

CVE-2021-29482

xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.

5 advisories report this vulnerability, across 4 ecosystems.

High severity All Go 2Debian 1Red Hat 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2021-29482

    xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The…

    CVE-2021-29482 Debian Updated 23 October 2026
  • GHSA-25xm-hr59-7c27

    github.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)

    High CVE-2021-29482 Go Updated 8 July 2026
  • GO-2020-0016

    Infinite loop in github.com/ulikunitz/xz

    CVE-2021-29482 Go Updated 20 May 2024
  • RHSA-2022:1276

    Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.0.9 security update

    CVE-2020-28851CVE-2020-28852CVE-2021-29482CVE-2021-29923 Red Hat Updated 23 November 2026
  • UBUNTU-CVE-2021-29482

    xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The…

    CVE-2021-29482 Ubuntu Updated 20 May 2026

References