CVE-2021-29482
denial of service in github.com/ulikunitz/xz
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
denial of service in github.com/ulikunitz/xz
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.
- Record
CVE-2021-29482- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
EUVDEUVD-2021-0896
7.5
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.
- Record
EUVD-2021-0896- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-25xm-hr59-7c27
7.5
github.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)
Impact
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.
Patches
The problem has been fixed in release v0.5.8.
Workarounds
Limit the size of the compressed file input to a reasonable size for your use case.
References
The standard library had recently the same issue and got the CVE-2020-16845 allocated.
For more information
If you have any questions or comments about this advisory:
- Open an issue in xz.
- Record
GHSA-25xm-hr59-7c27- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2021-29482- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-835
- Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2021-29482- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-29482
7.5
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.
- Record
DEBIAN-CVE-2021-29482- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-25xm-hr59-7c27
7.5
github.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)
Impact
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.
Patches
The problem has been fixed in release v0.5.8.
Workarounds
Limit the size of the compressed file input to a reasonable size for your use case.
References
The standard library had recently the same issue and got the CVE-2020-16845 allocated.
For more information
If you have any questions or comments about this advisory:
- Open an issue in xz.
- Record
GHSA-25xm-hr59-7c27- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
OSVRHSA-2022:1276
9.4
Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.0.9 security update
- Record
RHSA-2022:1276- CVSS 3.1
- 9.4 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-29482
7.5
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.
- Record
UBUNTU-CVE-2021-29482- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGO-2020-0016 No score
Infinite loop in github.com/ulikunitz/xz
An attacker can construct a series of bytes such that calling Reader.Read on the bytes could cause an infinite loop. If parsing user supplied input, this may be used as a denial of service vector.
- Record
GO-2020-0016- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/ulikunitz/xzGo |
before 0.5.8 | 0.5.8 |
golang-github-ulikunitz-xzDebian:12 |
before 0.5.6-2 | 0.5.6-2 |
golang-github-ulikunitz-xzDebian:13 |
before 0.5.6-2 | 0.5.6-2 |
golang-github-ulikunitz-xzDebian:14 |
before 0.5.6-2 | 0.5.6-2 |
servicemeshRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:2.0.9-3.el8 | 0:2.0.9-3.el8 |
servicemesh-istioctlRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:2.0.9-3.el8 | 0:2.0.9-3.el8 |
servicemesh-mixcRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:2.0.9-3.el8 | 0:2.0.9-3.el8 |
servicemesh-mixsRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:2.0.9-3.el8 | 0:2.0.9-3.el8 |
servicemesh-pilot-agentRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:2.0.9-3.el8 | 0:2.0.9-3.el8 |
servicemesh-pilot-discoveryRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:2.0.9-3.el8 | 0:2.0.9-3.el8 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
kialiRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:v1.24.7.redhat1-1.el8 | 0:v1.24.7.redhat1-1.el8 |
servicemesh-prometheusRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:2.14.0-16.el8.1 | 0:2.14.0-16.el8.1 |
servicemesh-proxyRed Hat:service_mesh:2.0::el8 From an advisory covering 16 CVEs |
before 0:2.0.9-3.el8 | 0:2.0.9-3.el8 |
golang-github-ulikunitz-xzUbuntu:20.04:LTS |
All versions, plus listed versions 0.5.6-1 |
None known |
golang-github-ulikunitz-xzUbuntu:22.04:LTS |
All versions, plus listed versions 0.5.6-2 |
None known |
golang-github-ulikunitz-xzUbuntu:24.04:LTS |
All versions, plus listed versions 0.5.6-2 |
None known |
golang-github-ulikunitz-xzUbuntu:25.10 |
All versions, plus listed versions 0.5.6-2 |
None known |
golang-github-ulikunitz-xzUbuntu:26.04:LTS |
All versions, plus listed versions 0.5.6-20.5.15-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-29482 is a high vulnerability (CVSS 7.5) in Tukaani-project Xz, published April 14, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.44%, the 73rd percentile. Fixed in github.com/ulikunitz/xz 0.5.8.
References
github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27
github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b
nvd.nist.gov/vuln/detail/CVE-2021-29482
github.com/ulikunitz/xz/issues/35
pkg.go.dev/vuln/GO-2020-0016
github.com/advisories/GHSA-25xm-hr59-7c27
Show 80 moreShow less
security-tracker.debian.org/tracker/CVE-2021-29482
access.redhat.com/errata/RHSA-2022:1276
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1913333
bugzilla.redhat.com/show_bug.cgi?id=1913338
bugzilla.redhat.com/show_bug.cgi?id=1921650
bugzilla.redhat.com/show_bug.cgi?id=1954368
bugzilla.redhat.com/show_bug.cgi?id=1992006
bugzilla.redhat.com/show_bug.cgi?id=1995656
bugzilla.redhat.com/show_bug.cgi?id=1999784
bugzilla.redhat.com/show_bug.cgi?id=2030787
bugzilla.redhat.com/show_bug.cgi?id=2050744
bugzilla.redhat.com/show_bug.cgi?id=2050746
bugzilla.redhat.com/show_bug.cgi?id=2050748
bugzilla.redhat.com/show_bug.cgi?id=2050753
bugzilla.redhat.com/show_bug.cgi?id=2050757
bugzilla.redhat.com/show_bug.cgi?id=2050758
bugzilla.redhat.com/show_bug.cgi?id=2057277
bugzilla.redhat.com/show_bug.cgi?id=2061638
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_1276.json
access.redhat.com/security/cve/CVE-2020-28851
cve.org/CVERecord?id=CVE-2020-28851
nvd.nist.gov/vuln/detail/CVE-2020-28851
access.redhat.com/security/cve/CVE-2020-28852
cve.org/CVERecord?id=CVE-2020-28852
nvd.nist.gov/vuln/detail/CVE-2020-28852
access.redhat.com/security/cve/CVE-2021-3121
cve.org/CVERecord?id=CVE-2021-3121
nvd.nist.gov/vuln/detail/CVE-2021-3121
access.redhat.com/security/cve/CVE-2021-3749
cve.org/CVERecord?id=CVE-2021-3749
nvd.nist.gov/vuln/detail/CVE-2021-3749
github.com/axios/axios/commit/5b457116e31db0e88fede6c428e969e87f290929
huntr.dev/bounties/1e8f07fc-c384-4ff9-8498-0690de2e8c31
access.redhat.com/security/cve/CVE-2021-29482
cve.org/CVERecord?id=CVE-2021-29482
access.redhat.com/security/cve/CVE-2021-29923
cve.org/CVERecord?id=CVE-2021-29923
nvd.nist.gov/vuln/detail/CVE-2021-29923
sick.codes/sick-2021-016
access.redhat.com/security/cve/CVE-2021-36221
cve.org/CVERecord?id=CVE-2021-36221
nvd.nist.gov/vuln/detail/CVE-2021-36221
groups.google.com/g/golang-announce/c/uHACNfXAZqk
access.redhat.com/security/cve/CVE-2021-43565
cve.org/CVERecord?id=CVE-2021-43565
nvd.nist.gov/vuln/detail/CVE-2021-43565
access.redhat.com/security/cve/CVE-2021-43824
cve.org/CVERecord?id=CVE-2021-43824
nvd.nist.gov/vuln/detail/CVE-2021-43824
github.com/envoyproxy/envoy/security/advisories/GHSA-vj5m-rch8-5r2p
access.redhat.com/security/cve/CVE-2021-43825
cve.org/CVERecord?id=CVE-2021-43825
nvd.nist.gov/vuln/detail/CVE-2021-43825
github.com/envoyproxy/envoy/security/advisories/GHSA-h69p-g6xg-mhhh
access.redhat.com/security/cve/CVE-2021-43826
cve.org/CVERecord?id=CVE-2021-43826
nvd.nist.gov/vuln/detail/CVE-2021-43826
github.com/envoyproxy/envoy/security/advisories/GHSA-cmx3-fvgf-83mf
access.redhat.com/security/cve/CVE-2022-21654
cve.org/CVERecord?id=CVE-2022-21654
nvd.nist.gov/vuln/detail/CVE-2022-21654
github.com/envoyproxy/envoy/security/advisories/GHSA-5j4x-g36v-m283
access.redhat.com/security/cve/CVE-2022-21655
cve.org/CVERecord?id=CVE-2022-21655
nvd.nist.gov/vuln/detail/CVE-2022-21655
github.com/envoyproxy/envoy/security/advisories/GHSA-7r5p-7fmh-jxpg
access.redhat.com/security/cve/CVE-2022-23606
cve.org/CVERecord?id=CVE-2022-23606
nvd.nist.gov/vuln/detail/CVE-2022-23606
github.com/envoyproxy/envoy/security/advisories/GHSA-9vp2-4cp7-vvxf
access.redhat.com/security/cve/CVE-2022-23635
cve.org/CVERecord?id=CVE-2022-23635
nvd.nist.gov/vuln/detail/CVE-2022-23635
istio.io/latest/news/security/istio-security-2022-003
access.redhat.com/security/cve/CVE-2022-24726
cve.org/CVERecord?id=CVE-2022-24726
nvd.nist.gov/vuln/detail/CVE-2022-24726
istio.io/latest/news/security/istio-security-2022-004
ubuntu.com/security/CVE-2021-29482