CVE-2025-58058
CVE-2025-58058 · github.com/ulikunitz/xz leaks memory when decoding a corrupted multiple LZMA archives
CVSS 5.3 · Medium · EPSS 0.5% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- xzNo fix published
- golang-github-ulikunitz-xz Debian 12No fix published
- golang-github-ulikunitz-xz Debian 13No fix published
- golang-github-ulikunitz-xz Debian 14Update to 0.5.15-1
- and 6 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-ulikunitz-xz"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2026:12626-1 · openSUSE Tumbleweed ·
- SUSE-SU-2026:4209-1 · SUSE Linux Enterprise Module for Containers 15 SP7 ·
- openSUSE-SU-2026:21824-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11514-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21483-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11305-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:11126-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21151-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:20192-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:0383-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Basesystem 15 SP7 ·
- openSUSE-SU-2026:20105-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2025:20160-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2025:20073-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2025:21137-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- SUSE-SU-2025:4121-1 · SUSE Linux Enterprise Module for Basesystem 15 SP7 ·
- openSUSE-SU-2025:15722-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:20031-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2025:15631-1 · openSUSE Tumbleweed ·
- SUSE-SU-2025:03448-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for HPC 15 SP6, SUSE Linux Enterprise Module for HPC 15 SP7 ·
- SUSE-SU-2025:03289-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Package Hub 15 SP6 ·
- openSUSE-SU-2025:15564-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15542-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15537-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15515-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15508-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15509-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:15503-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
xz
- Versions
- < 0.5.14: Affected
No fix published
golang-github-ulikunitz-xz Debian 12
- Versions
- 0.5.12-1
- 0.5.15-1
- 0.5.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-ulikunitz-xz Debian 13
- Versions
- 0.5.12-1
- 0.5.15-1
- 0.5.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-ulikunitz-xz Debian 14
- Versions
- 0.5.12-1
- 0.5.6-2
- Affected ranges
- ECOSYSTEM: < 0.5.15-1
Update to 0.5.15-1
golang-github-ulikunitz-xz Ubuntu 20.04 LTS
- Versions
- 0.5.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-ulikunitz-xz Ubuntu 22.04 LTS
- Versions
- 0.5.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-ulikunitz-xz Ubuntu 24.04 LTS
- Versions
- 0.5.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-ulikunitz-xz Ubuntu 25.10
- Versions
- 0.5.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-ulikunitz-xz Ubuntu 26.10
- Versions
- 0.5.15-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-ulikunitz-xz Ubuntu 26.04 LTS
- Versions
- 0.5.6-2
- 0.5.15-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published