UBUNTU-CVE-2025-58058

Source
https://ubuntu.com/security/CVE-2025-58058
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58058.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2025-58058
Upstream
Published
2025-08-29T00:00:00Z
Modified
2025-09-01T06:46:05.010492Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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

Affected packages

Ubuntu:Pro:20.04:LTS / golang-github-ulikunitz-xz

Package

Name
golang-github-ulikunitz-xz
Purl
pkg:deb/ubuntu/golang-github-ulikunitz-xz@0.5.6-1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.5.6-1

Ubuntu:22.04:LTS / golang-github-ulikunitz-xz

Package

Name
golang-github-ulikunitz-xz
Purl
pkg:deb/ubuntu/golang-github-ulikunitz-xz@0.5.6-2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.5.6-2

Ubuntu:24.04:LTS / golang-github-ulikunitz-xz

Package

Name
golang-github-ulikunitz-xz
Purl
pkg:deb/ubuntu/golang-github-ulikunitz-xz@0.5.6-2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.5.6-2

Ubuntu:25.04 / golang-github-ulikunitz-xz

Package

Name
golang-github-ulikunitz-xz
Purl
pkg:deb/ubuntu/golang-github-ulikunitz-xz@0.5.6-2?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.5.6-2