CVE-2025-58058

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-58058
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-58058.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-58058
Aliases
Downstream
Related
Published
2025-08-28T22:15:32Z
Modified
2025-08-30T00:04:57.424019Z
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

Debian:11 / golang-github-ulikunitz-xz

Package

Name
golang-github-ulikunitz-xz
Purl
pkg:deb/debian/golang-github-ulikunitz-xz?arch=source

Affected ranges

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

Affected versions

0.*

0.5.6-2
0.5.12-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / golang-github-ulikunitz-xz

Package

Name
golang-github-ulikunitz-xz
Purl
pkg:deb/debian/golang-github-ulikunitz-xz?arch=source

Affected ranges

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

Affected versions

0.*

0.5.6-2
0.5.12-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / golang-github-ulikunitz-xz

Package

Name
golang-github-ulikunitz-xz
Purl
pkg:deb/debian/golang-github-ulikunitz-xz?arch=source

Affected ranges

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

Affected versions

0.*

0.5.6-2
0.5.12-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:14 / golang-github-ulikunitz-xz

Package

Name
golang-github-ulikunitz-xz
Purl
pkg:deb/debian/golang-github-ulikunitz-xz?arch=source

Affected ranges

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

Affected versions

0.*

0.5.6-2
0.5.12-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/ulikunitz/xz

Affected ranges

Type
GIT
Repo
https://github.com/ulikunitz/xz
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1
v0.2
v0.3
v0.3.1
v0.4
v0.4.1
v0.5
v0.5.1
v0.5.10
v0.5.11
v0.5.12
v0.5.13
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9