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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/ulikunitz/xz | < 0.5.8 | 0.5.8 | GHSA-25xm-hr59-7c27 |
Advisories 2
- RHSA-2022:1276 Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.0.9 security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- WID-SEC-2022-0970 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 21, 2024