CVE-2025-58058ulikunitz xz
Medium 5.3 No auth needed
Follow: this CVE · ulikunitz · ulikunitz xz We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Aug 28, 2025
- Updated
- Sep 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
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
- Apply the vendor's security update for xz.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/ulikunitz/xz |
< 0.5.15 |
0.5.15 |
go get github.com/ulikunitz/xz@v0.5.15 |
| Go | github.com/ulikunitz/xz |
< 0.5.15 |
0.5.15 |
go get github.com/ulikunitz/xz@v0.5.15 |
Per OSV / GitHub Advisories (GHSA-jc7w-c686-c4v9, GO-2025-3922). Check the version in your lockfile before upgrading.
Affected products
- ulikunitz · xz
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- cri-o-1.36.7-1.1 on GA media · SUSE · openSUSE-SU-2026:12626-1 · Nov 20, 2026 Critical
- Security update for containerized-data-importer · SUSE · SUSE-SU-2026:4209-1 · Sep 16, 2026 Critical
- Security update for containerized-data-importer1.65 · SUSE · openSUSE-SU-2026:21824-1 · Sep 9, 2026 Critical
Also: SUSE (+9)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.