CVE-2025-58058: github.com/ulikunitz/xz leaks memory when decoding a corrupted multiple LZMA archives
Vulnerability summary
CVE-2025-58058 is a medium (CVSS 5.3) vulnerability in ulikunitz xz. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 37.6% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 20 · Related 92Timeline
- 28-08-2025PublishedVulnerability first disclosed.
- 29-08-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · GoEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.41% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard139 products
- atlantis-fips< 0.35.1-r3
- cg< 0_git20250819-r1
- chainctl< 0.2.135-r0
- cloudbeat-9.0< 9.0.8-r30
- cloudbeat-fips-8.17< 8.17.10-r32
Wolfi46 products
- envoy-gateway< 1.5.0-r3
- envoy-gateway-compat< 1.5.0-r3
- envoy-gateway-egctl< 1.5.0-r3
- filebrowser< 2.42.5-r1
- filebrowser-compat< 2.42.5-r1
Opensuse7 products
- regclient&distro=openSUSE Tumbleweed< 0.9.2-1.1
- sbctl&distro=openSUSE Tumbleweed< 0.17-2.1
- tailscale&distro=openSUSE Tumbleweed< 1.86.5-1.1
- trivy&distro=openSUSE Tumbleweed< 0.66.0-1.1
- warewulf4&distro=openSUSE Leap 15.6< 4.6.4-150500.6.37.1
Suse2 products
- warewulf4&distro=SUSE Linux Enterprise Module for HPC 15 SP6< 4.6.4-150500.6.37.1
- warewulf4&distro=SUSE Linux Enterprise Module for HPC 15 SP7< 4.6.4-150500.6.37.1
Debian1 product
- golang-github-ulikunitz-xzAll versions (No fix recorded) | < 0.5.15-1
Github.com/ulikunitz1 product
- xz< 0.5.15
Ubuntu1 product
- golang-github-ulikunitz-xzAll versions (No fix recorded)
Ulikunitz1 product
- xz< 0.5.14
8 vendors · 198 products
References
15 linksShow all 15 references
- github.com/ulikunitz/xzPACKAGE