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.

Advisories in Go

  • 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

References