Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-58058 EUVD-2025-26149GHSA-jc7w-c686-c4v9GO-2025-3922

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

Published Aug 28, 2025 · Updated Aug 29, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
ulikunitz xz < 0.5.14 —

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.15-1 —
Debian 13 golang-github-ulikunitz-xz No fix yet —
Debian 12 golang-github-ulikunitz-xz No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-ulikunitz-xz No fix yet —
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 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS golang-github-ulikunitz-xz No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 alloy 1.11.3-150700.15.9.1 SUSE-SU-2025:4121-1
SLES 15 SP7 containerized-data-importer 1.64.0-150700.9.14.1 SUSE-SU-2026:4209-1
SLES 15 SP7 rekor 1.4.3-150400.4.28.1 SUSE-SU-2026:0383-1
SLES 15 SP7 warewulf4 4.6.4-150500.6.37.1 SUSE-SU-2025:03448-1
SLES 15 SP6 govulncheck-vulndb 0.0.20250918T182144-150000.1.107.1 SUSE-SU-2025:03289-1
SLES 15 SP6 warewulf4 4.6.4-150500.6.37.1 SUSE-SU-2025:03448-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 alloy 1.11.3-160000.1.1 SUSE-SU-2025:21137-1
SLES 16.0 alloy 1.11.3-160000.1.1 SUSE-SU-2025:21137-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed alloy 1.11.2-2.1 openSUSE-SU-2025:15631-1
openSUSE Tumbleweed containerized-data-importer1.65 1.65.0-2.1 openSUSE-SU-2026:11305-1
openSUSE Tumbleweed containerized-data-importer1.66 1.66.0-1.1 openSUSE-SU-2026:11514-1
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250917T170349-1.1 openSUSE-SU-2025:15564-1
openSUSE Tumbleweed hauler 1.3.1-1.1 openSUSE-SU-2025:15722-1
openSUSE Tumbleweed regclient 0.9.2-1.1 openSUSE-SU-2025:15515-1
openSUSE Tumbleweed rekor 1.4.1-1.1 openSUSE-SU-2025:15508-1
openSUSE Tumbleweed sbctl 0.17-2.1 openSUSE-SU-2025:15509-1
openSUSE Tumbleweed tailscale 1.86.5-1.1 openSUSE-SU-2025:15503-1
openSUSE Tumbleweed trivy 0.66.0-1.1 openSUSE-SU-2025:15542-1
openSUSE Tumbleweed velociraptor 0.7.0.4.git185.a5708584-2.1 openSUSE-SU-2026:11126-1
openSUSE Tumbleweed warewulf4 4.6.4-1.1 openSUSE-SU-2025:15537-1
openSUSE Leap 16.0 alloy 1.11.3-160000.1.1 openSUSE-SU-2025:20073-1
openSUSE Leap 16.0 containerized-data-importer1.65 1.65.0-160000.3.1 openSUSE-SU-2026:21824-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 16.0 hauler 1.3.1-bp160.1.1 openSUSE-SU-2025:20160-1
openSUSE Leap 16.0 sbctl 0.18-bp160.1.1 openSUSE-SU-2026:20105-1
openSUSE Leap 16.0 tailscale 1.94.1-bp160.1.1 openSUSE-SU-2026:20192-1
openSUSE Leap 16.0 warewulf4 4.6.4-bp160.1.1 openSUSE-SU-2026:21151-1, openSUSE-SU-2025:20031-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20250918T182144-150000.1.107.1 SUSE-SU-2025:03289-1
openSUSE Leap 15.6 rekor 1.4.3-150400.4.28.1 SUSE-SU-2026:0383-1
openSUSE Leap 15.6 warewulf4 4.6.4-150500.6.37.1 SUSE-SU-2025:03448-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 buildah 1.41.4-2 —
Azure Linux 3 containerized-data-importer 1.57.0-16 —
Azure Linux 3 cri-o No fix yet —
Azure Linux 3 jx 3.10.182-3 —
Azure Linux 3 packer 1.9.5-10 —
Azure Linux 3 podman 5.6.1-2 —
Azure Linux 3 skopeo 1.14.4-6 —
Azure Linux 2 (CBL-Mariner) containerized-data-importer 1.55.0-25 —
Azure Linux 2 (CBL-Mariner) cri-o 1.22.3-16 —
Azure Linux 2 (CBL-Mariner) jx 3.2.236-23 —
Azure Linux 2 (CBL-Mariner) packer 1.9.5-15 —
Azure Linux 2 (CBL-Mariner) podman +1 No fix yet —
Azure Linux 2 (CBL-Mariner) skopeo 1.14.2-12 —
Azure Linux 2 (CBL-Mariner) terraform 1.3.2-27 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling envoy-gateway +2 1.5.0-r3 —
Wolfi rolling filebrowser +1 2.42.5-r1 —
Wolfi rolling gitleaks 8.28.0-r2 —
Wolfi rolling gitness 3.3.0-r23 —
Wolfi rolling gptscript 0.9.5-r15 —
Wolfi rolling grafana-alloy 1.10.2-r3 —
Wolfi rolling guac +4 1.0.0-r5 —
Wolfi rolling k9s 0.50.9-r8 —
Wolfi rolling kubescape-operator 0.2.103-r1 —
Wolfi rolling nsc 2.11.1-r1 —
Wolfi rolling nuclei 3.4.10-r1 —
Wolfi rolling opentofu-1.9 1.9.3-r4 —
Wolfi rolling podman +1 5.6.0-r1 —
Wolfi rolling rancher-fleet +4 0.13.1-r1 —
Wolfi rolling steampipe 2.1.0-r6 —
Wolfi rolling terraform +2 1.5.7-r32 —
Wolfi rolling terragrunt +1 0.86.2-r1 —
Wolfi rolling tflint +1 0.58.1-r5 —
Wolfi rolling trivy 0.65.0-r5 —
Wolfi rolling trivy-operator 0.28.0-r3 —
Wolfi rolling trufflehog 3.90.5-r1 —
Wolfi rolling undock 0.10.0-r4 —
Wolfi rolling vcluster +2 0.27.0-r1 —
Wolfi rolling xeol +1 0.10.8-r13 —
Wolfi rolling zarf 0.61.0-r1 —
Wolfi rolling zot 2.1.7-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ulikunitz/xz < 0.5.15 0.5.15 GHSA-jc7w-c686-c4v9

Advisories 26

References