Skip to content
OpenAdvisories
High · 7.5 CVE-2021-29482 EUVD-2021-0896GHSA-25xm-hr59-7c27GO-2020-0016

denial of service in github.com/ulikunitz/xz

Published Apr 28, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
ulikunitz xz < 0.5.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-github-ulikunitz-xz 0.5.6-2 —
Debian 13 golang-github-ulikunitz-xz 0.5.6-2 —
Debian 12 golang-github-ulikunitz-xz 0.5.6-2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS golang-github-ulikunitz-xz No fix yet —
Ubuntu 25.10 golang-github-ulikunitz-xz No fix yet —
Ubuntu 24.04 LTS golang-github-ulikunitz-xz No fix yet —
Ubuntu 22.04 LTS golang-github-ulikunitz-xz No fix yet —
Ubuntu 20.04 LTS golang-github-ulikunitz-xz No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Service Mesh 2 kiali v1.24.7.redhat1-1.el8 RHSA-2022:1276
Red Hat Service Mesh 2 servicemesh +6 2.0.9-3.el8 RHSA-2022:1276
Red Hat Service Mesh 2 servicemesh-prometheus 2.14.0-16.el8.1 RHSA-2022:1276

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ulikunitz/xz < 0.5.8 0.5.8 GHSA-25xm-hr59-7c27

Advisories 2

References