Live threats

All CVEs / Xz Project

CVE-2021-29482Xz Project Xz

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
Apr 28, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Xz.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/ulikunitz/xz < 0.5.8 0.5.8 go get github.com/ulikunitz/xz@v0.5.8
Go github.com/ulikunitz/xz < 0.5.8 0.5.8 go get github.com/ulikunitz/xz@v0.5.8

Per OSV / GitHub Advisories (GHSA-25xm-hr59-7c27, GO-2020-0016). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
xz_projectxz< 0.5.8

Official sources

References

Links published by the sources. Open them with care.