xz is a compression and decompression library focusing on the xz format completely written in Go. The…
Historical advisory recorded 24 Oct 2026 18:17:21 UTC. Read the latest advisory.
nvd · CVE-2021-29482
Publishedxz 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2021-29482
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-835
Original publisher date fields
published: 2021-04-28T19:15:08.587
lastModified: 2026-06-17T03:47:44.000
1 source CPE criteria · context only
- cpe:2.3:a:xz_project:xz:*:*:*:*:*:go:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON