cve.bz

CVE-2021-29482 xz project xz: Infinite Loop

7.5 highEPSS 1.4%Fix available

High (7.5) in xz project xz. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/ulikunitz/xz 0.5.8.

On this page
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.

Severity

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
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-29482 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29482?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29482?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-29482 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xz_project:xzbefore 0.5.8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-25xm-hr59-7c27Gogithub.com/ulikunitz/xz<0.5.80.5.8
GO-2020-0016Gogithub.com/ulikunitz/xz<0.5.80.5.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-github-ulikunitz-xz0.5.6-2DEBIAN-CVE-2021-29482
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 2 moregolang-github-ulikunitz-xzno fix listedUBUNTU-CVE-2021-29482
Red Hatservice_mesh:2.0::el8kiali0:v1.24.7.redhat1-1.el8RHSA-2022:1276
Red Hatservice_mesh:2.0::el8servicemesh, servicemesh-mixc, servicemesh-mixs and 4 more0:2.0.9-3.el8RHSA-2022:1276
Red Hatservice_mesh:2.0::el8servicemesh-prometheus0:2.14.0-16.el8.1RHSA-2022:1276

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In OpenShift Container Platform (OCP), OpenShift ServiceMesh (OSSM) and Red Hat Advanced Cluster Management for Kubernetes (RHACM) the affected components are behind OpenShift OAuth authentication, therefore the impact is low.

In OCP before 4.7 the buildah, skopeo and podman packages include vulnerable version of github.com/ulikunitz/xz, but these OCP releases are already in the Maintenance Phase of the support, hence affected components are marked as wontfix. This may be fixed in the future.

ProductPackageStateAdvisory
OADP-1.0-RHEL-8oadp/oadp-velero-plugin-rhel8:1.0.1-5Fixed 2022-02-28RHSA-2022:0687
OpenShift Service Mesh 2.0servicemesh-0:2.0.9-3.el8Fixed 2022-04-07RHSA-2022:1276
Red Hat OpenStack Platform 16.2rhosp-rhel8-tech-preview/osp-director-operator:1.2.3-2Fixed 2022-05-11RHSA-2022:2183
RHEL-8-CNV-4.8container-native-virtualization/vm-import-operator-rhel8:v4.8.0-18Fixed 2021-07-28RHSA-2021:2920
Migration Toolkit for Containersopenshift-migration-plugin-containerAffected
Migration Toolkit for Containersrhmtc/openshift-migration-controller-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-application-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-channel-containerWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-subscriptionNot affected
Red Hat Advanced Cluster Management for Kubernetes 2multicloud-operators-subscription-releaseNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/cluster-curator-controller-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/clusterlifecycle-state-metrics-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicloud-manager-rhel8Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multiclusterhub-rhel9-operatorAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/openshift-hive-rhel8Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2search-collector-containerAffected
Red Hat OpenShift Container Platform 4buildahWill not fix
Red Hat OpenShift Container Platform 4cri-oNot affected
Red Hat OpenShift Container Platform 4openshift4/cnf-tests-rhel8Fix deferred
Red Hat OpenShift Container Platform 4openshift4/compliance-rhel8-operatorNot affected
32 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-29482.

References

Check your stackJSON