CVE-2025-58058github.com/ulikunitz/xz leaks memory when decoding a corrupted multiple LZMA archives
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-ulikunitz-xz | Fix pending | UBUNTU-CVE-2025-58058 | |
| Ubuntu 26.04 | golang-github-ulikunitz-xz | Under investigation | UBUNTU-CVE-2025-58058 | |
| Ubuntu 25.10 | golang-github-ulikunitz-xz | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-58058 | |
| Ubuntu 24.04 | golang-github-ulikunitz-xz | Under investigation | UBUNTU-CVE-2025-58058 | |
| Ubuntu 22.04 | golang-github-ulikunitz-xz | Under investigation | UBUNTU-CVE-2025-58058 | |
| Ubuntu 20.04 | golang-github-ulikunitz-xz | Fix pending | UBUNTU-CVE-2025-58058 | |
| Debian 14 | golang-github-ulikunitz-xz | Fixed | 0.5.15-1 | DEBIAN-CVE-2025-58058 |
| Debian 13 | golang-github-ulikunitz-xz | Fix pending | DEBIAN-CVE-2025-58058 | |
| Debian 12 | golang-github-ulikunitz-xz | Fix pending | DEBIAN-CVE-2025-58058 | |
| Red Hat Enterprise Linux 10 | buildah | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | buildah-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | image-builder | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | osbuild-composer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | osbuild-composer-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | osbuild-composer-worker | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | podman | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | podman-docker | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | podman-remote | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | podman-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | skopeo | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | skopeo-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | buildah | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | buildah-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | conmon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | image-builder | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | osbuild-composer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-dnf-json | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-worker | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | podman | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | podman-catatonit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | podman-docker | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | podman-gvproxy | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | podman-plugins | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | podman-remote | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | podman-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | skopeo | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | skopeo-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | buildah | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | buildah-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | conmon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | containers-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | osbuild-composer | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-core | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-dnf-json | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-worker | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | podman | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | podman-catatonit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | podman-docker | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | podman-gvproxy | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | podman-manpages | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | podman-plugins | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | podman-remote | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | podman-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | skopeo | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | skopeo-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | skopeo | Fix pending Fix deferred | ||
| Go library | github.com/ulikunitz/xz | Fixed | 0.5.15 | GHSA-jc7w-c686-c4v9 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ulikunitz xz: affected: < 0.5.14
References
- https://github.com/ulikunitz/xz/security/advisories/GHSA-jc7w-c686-c4v9
- https://github.com/ulikunitz/xz/commit/88ddf1d0d98d688db65de034f48960b2760d2ae2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.