Skip to content
Fencer Vulns
medium 5.3

CVE-2025-58058 json

github.com/ulikunitz/xz leaks memory when decoding a corrupted multiple LZMA archives

published 2025-08-28 14 mo ago modified 2026-09-26 44 d ago also EUVD-2025-26149 , GHSA-jc7w-c686-c4v9 , GO-2025-3922

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 37%
public exploits
0
none known

Summary

xz is a pure golang package for reading and writing xz-compressed files. Prior to version 0.5.14, it is possible to put data in front of an LZMA-encoded byte stream without detecting the situation while reading the header. This can lead to increased memory consumption because the current implementation allocates the full decoding buffer directly after reading the header. The LZMA header doesn't include a magic number or has a checksum to detect such an issue according to the specification. Note that the code recognizes the issue later while reading the stream, but at this time the memory allocation has already been done. This issue has been patched in version 0.5.14.

Patch / fix

  • go github.com/ulikunitz/xz 0.5.15
  • ulikunitz xz 0.5.14
  • golang-github-ulikunitz-xz Debian 14 0.5.15-1

debian advisories DEBIAN-CVE-2025-58058

  • containerized-data-importer SLE Module for Containers 15 SP7 1.64.0-150700.9.14.1
  • rekor SLE Module for Basesystem 15 SP7, openSUSE Leap 15.6 1.4.3-150400.4.28.1
  • alloy SLES for SAP applications 16.0, SLES 16.0 1.11.3-160000.1.1
  • alloy SLE Module for Basesystem 15 SP7 1.11.3-150700.15.9.1
  • warewulf4 SLE Module for HPC 15 SP7, SLE Module for HPC 15 SP6, openSUSE Leap 15.6 4.6.4-150500.6.37.1
  • govulncheck-vulndb SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 0.0.20250918T182144-150000.1.107.1

suse advisories SUSE-SU-2026:4209-1SUSE-SU-2026:0383-1SUSE-SU-2025:21137-1SUSE-SU-2025:4121-1SUSE-SU-2025:03448-1SUSE-SU-2025:03289-1

  • containerized-data-importer1.65 openSUSE Leap 16.0 1.65.0-160000.3.1
  • containerized-data-importer1.66 openSUSE Tumbleweed 1.66.0-1.1
  • govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
  • containerized-data-importer1.65 openSUSE Tumbleweed 1.65.0-2.1
  • velociraptor openSUSE Tumbleweed 0.7.0.4.git185.a5708584-2.1
  • warewulf4 openSUSE Leap 16.0 4.7.0-bp160.1.1
  • tailscale openSUSE Leap 16.0 1.94.1-bp160.1.1
  • sbctl openSUSE Leap 16.0 0.18-bp160.1.1

opensuse advisories openSUSE-SU-2026:21824-1openSUSE-SU-2026:11514-1openSUSE-SU-2026:21483-1openSUSE-SU-2026:11305-1openSUSE-SU-2026:11126-1openSUSE-SU-2026:21151-1

  • containerized-data-importer CBL-Mariner 2.0 1.55.0-25
  • cri-o CBL-Mariner 2.0 1.22.3-16
  • buildah Azure Linux 3.0 1.41.4-2
  • podman Azure Linux 3.0 5.6.1-2
  • jx CBL-Mariner 2.0 3.2.236-23
  • packer CBL-Mariner 2.0 1.9.5-15
  • skopeo CBL-Mariner 2.0 1.14.2-12
  • containerized-data-importer Azure Linux 3.0 1.57.0-16

azure linux advisories AZL-66720AZL-66723AZL-66725AZL-66731AZL-66735AZL-66741

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-58058 updated cvss 5.3

github.com/ulikunitz/xz: github.com/ulikunitz/xz leaks memory

  • Red Hat Assisted Installer for Red Hat OpenShift Container Platform 2 assisted-installer-rhel9, assisted-installer-controller-rhel9 Red Hat Confidential Compute Attestation osc-monitor-rhel9, osc-rhel9-operator, osc-operator-bundle, osc-must-gather-rhel9, osc-podvm-builder-rhel9, osc-podvm-payload-rhel9 Red Hat Kernel Module Management Operator for Red Hat Openshift kernel-module-management-worker-rhel9, kernel-module-management-signing-rhel9, kernel-module-management-rhel9-operator, kernel-module-management-must-gather-rhel9, kernel-module-management-hub-rhel9-operator, kernel-module-management-webhook-server-rhel9 Red Hat Logging Subsystem for Red Hat OpenShift vector-rhel9, eventrouter-rhel9, cluster-logging-rhel9-operator, log-file-metric-exporter-rhel9 Red Hat Logical Volume Manager Storage lvms-must-gather-rhel9 Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-controller-rhel8
    +31 more products
    Red Hat Migration Toolkit for Virtualization mtv-must-gather-rhel8 Red Hat Multicluster Engine for Kubernetes must-gather-rhel9, assisted-installer-rhel9, assisted-image-service-rhel9, assisted-installer-controller-rhel9, multicluster-engine/agent-service-rhel8, multicluster-engine/image-based-install-rhel9, +1 more Red Hat Network Observability Operator network-observability-cli-rhel9 Red Hat Node HealthCheck Operator node-healthcheck-must-gather-rhel9 Red Hat OpenShift API for Data Protection oadp/oadp-velero-plugin-rhel8 Red Hat OpenShift Developer Tools and Services ocp-tools-4/jenkins-rhel8, jenkins-agent-base-container, ocp-tools-4/jenkins-agent-base-rhel8 Red Hat OpenShift Lightspeed lightspeed-rag-tool-rhel9, lightspeed-service-api-rhel9 Red Hat OpenShift Pipelines pipelines-cache-rhel9 Red Hat OpenShift Serverless openshift-gitops-1/gitops-rhel8-operator, openshift-serverless-1/serverless-ingress-rhel9, openshift-serverless-1/kn-plugin-event-sender-rhel9, openshift-serverless-1/serverless-kn-operator-rhel9, openshift-serverless-1/serverless-must-gather-rhel9, openshift-serverless-1/kn-plugin-func-func-util-rhel9 Red Hat OpenShift Service Mesh 3 istio-cni-rhel9, istio-pilot-rhel9, istio-ztunnel-rhel9, istio-rhel9-operator, istio-must-gather-rhel9 Red Hat OpenShift Source-to-Image (S2I) source-to-image-rhel8 Red Hat Power monitoring for Red Hat OpenShift kepler-rhel9, power-monitoring-rhel9-operator Red Hat Advanced Cluster Management for Kubernetes 2 acm-must-gather-rhel9, submariner-rhel9-operator, submariner-operator-bundle Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-roxctl-rhel8, advanced-cluster-security/rhacs-scanner-rhel8, advanced-cluster-security/rhacs-rhel8-operator, advanced-cluster-security/rhacs-central-db-rhel8, advanced-cluster-security/rhacs-scanner-db-rhel8, +4 more Red Hat Build of Kueue kueue-rhel9-operator, kueue-must-gather-rhel9 Red Hat Developer Hub 1 rhdh-hub-rhel9, rhdh-rhel9-operator Red Hat Enterprise Linux 7 skopeo Red Hat Enterprise Linux 8 conmon, podman, skopeo, buildah, podman-tests, skopeo-tests, +12 more Red Hat Enterprise Linux 9 conmon, podman, skopeo, buildah, rhel-bootc, podman-tests, +15 more Red Hat Enterprise Linux 10 podman, skopeo, buildah, rhel-bootc, image-builder, rhel-10.0-bootc, +3 more Red Hat Enterprise Linux AI (RHEL AI) bootc-gcp-nvidia-rhel9 Red Hat OpenShift AI (RHOAI) odh-ml-pipelines-runtime-generic-rhel9 Red Hat OpenShift Container Platform 4 cri-o, conmon, podman, skopeo, podman-tests, skopeo-tests, +63 more Red Hat OpenShift Dev Spaces udi-rhel9, udi-base-rhel9, devspaces/udi-rhel8 Red Hat OpenShift GitOps dex-rhel8, argocd-rhel8, gitops-rhel8, must-gather-rhel8, argocd-agent-rhel8, argo-rollouts-rhel8, +3 more Red Hat OpenShift Virtualization 4 container-native-virtualization/virt-cdi-cloner, container-native-virtualization/virt-cdi-importer, container-native-virtualization/virt-cdi-operator, container-native-virtualization/virt-cdi-apiserver, container-native-virtualization/virt-cdi-controller, container-native-virtualization/virt-cdi-uploadproxy, +8 more Red Hat OpenStack Platform 18.0 rhoso-operators/prometheus-podman-exporter-rhel9 Red Hat Quay 3 quay/quay-builder-rhel8 Red Hat Trusted Application Pipeline rhtap-cli-rhel9, rhtap-task-runner-rhel9 Red Hat Trusted Artifact Signer rekor-cli-rhel9, rekor-server-rhel9, rekor-backfill-redis-rhel9 Red Hat Trusted Profile Analyzer rhtpa-guac-rhel9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat multicluster engine for Kubernetes 2.8 multicluster-engine/assisted-service-8-rhel8 1781539691, multicluster-engine/assisted-service-9-rhel9 1781539725
    fixed: vendor fix RHSA-2026:26257
  • Red Hat Openshift Data Foundation 4.22 odf4/cephcsi-rhel9 1782932114, odf4/odf-cli-rhel9 1783537001, odf4/mcg-core-rhel9 1783536000, odf4/odf-drbd-rhel9 1783537392, odf4/odf-console-rhel9 1783537586, odf4/devicefinder-rhel9 1782932104, +21 more
    fixed: vendor fix RHSA-2026:37387
  • Red Hat multicluster engine for Kubernetes 2.8 multicluster-engine/assisted-installer-rhel9 1781593211, multicluster-engine/assisted-image-service-rhel9 1781592435, multicluster-engine/assisted-installer-agent-rhel9 1781592447, multicluster-engine/assisted-installer-controller-rhel9 1781592399
    not affected: vulnerable code not present

1 more not affected in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
14 mo ago

Exploit prediction

0.43% chance of exploitation in the next 30 days, higher than 37% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
go github.com/ulikunitz/xz
<0.5.15
0.5.15

Affected products

  • ulikunitz xz

Classification

Weakness
  • CWE-770 Allocation of Resources Without Limits or Throttling

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.