Skip to main content
VulnerabilityPublished Updated

CVE-2025-58058: Golang github ulikunitz xz · Prior to version 0.5.14, it is possible to put data in front of an

Affects golang-github-ulikunitz-xzSource GCVE Database

0
Compare
Authoritative record:CVE-2025-58058· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium · fixed in 0.5.14 : update golang-github-ulikunitz-xz when convenient.

Data as of 24 Nov 2026, 20:10 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.5.14
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10golang-github-ulikunitz-xzpkg:deb/ubuntu/golang-github-ulikunitz-xz?arch=source&distro=stonkingOther threatsAffected
  • =0.5.15-1
Fixed in–
Ubuntu 26.04 LTSgolang-github-ulikunitz-xzpkg:deb/ubuntu/golang-github-ulikunitz-xz?arch=source&distro=resoluteOther threatsAffected
  • =0.5.6-2
  • =0.5.15-1
Fixed in–
Ubuntu 25.10golang-github-ulikunitz-xzpkg:deb/ubuntu/golang-github-ulikunitz-xz?arch=source&distro=questingOther threatsAffected
  • =0.5.6-2
Fixed in–
Ubuntu 24.04 LTSgolang-github-ulikunitz-xzpkg:deb/ubuntu/golang-github-ulikunitz-xz?arch=source&distro=nobleOther threatsAffected
  • =0.5.6-2
Fixed in–
Ubuntu 22.04 LTSgolang-github-ulikunitz-xzpkg:deb/ubuntu/golang-github-ulikunitz-xz?arch=source&distro=jammyOther threatsAffected
  • =0.5.6-2
Fixed in–
Ubuntu 20.04 LTSgolang-github-ulikunitz-xzpkg:deb/ubuntu/golang-github-ulikunitz-xz?arch=source&distro=focalOther threatsAffected
  • =0.5.6-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…