CVE-2021-29482

denial of service in github.com/ulikunitz/xz

HIGH
7.5
CVSS Score
Published: April 28, 2021 at 06:15 PM UTC
Updated: June 17, 2026 at 03:47 AM UTC
2 products affected across 2 vendorsXzProject Xz

Using xz by ulikunitz?

Get instant alerts when new vulnerabilities affect xz - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.5.8
Affected range stops below 0.5.8, so it looks safe — our inference, not a vendor statement
v < 0.5.8
Affected range stops below 0.5.8, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-835

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card