DEBIAN-CVE-2025-58058
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.
DEBIAN-CVE-2025-58058
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2025-58058
golang-github-ulikunitz-xz
Source reference: /affected/0/package/name
- Affected versions
- 0.5.12-1
Source reference:
/affected/0/versions0.5.15-1Source reference:
/affected/0/versions0.5.6-2Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
golang-github-ulikunitz-xz
Source reference: /affected/1/package/name
- Affected versions
- 0.5.12-1
Source reference:
/affected/1/versions0.5.15-1Source reference:
/affected/1/versions0.5.6-2Source reference:
/affected/1/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
golang-github-ulikunitz-xz
Source reference: /affected/2/package/name
- Affected versions
- 0.5.12-1
Source reference:
/affected/2/versions0.5.6-2Source reference:
/affected/2/versions - Fixed versions
- 0.5.15-1
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-ulikunitz-xz",
"purl": "pkg:deb/debian/golang-github-ulikunitz-xz?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"0.5.12-1",
"0.5.15-1",
"0.5.6-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-58058.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-ulikunitz-xz",
"purl": "pkg:deb/debian/golang-github-ulikunitz-xz?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"0.5.12-1",
"0.5.15-1",
"0.5.6-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-58058.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.5.15-1"
}
]
}
],
"package": {
"name": "golang-github-ulikunitz-xz",
"purl": "pkg:deb/debian/golang-github-ulikunitz-xz?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"0.5.12-1",
"0.5.6-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-58058.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #18756 · Revision 1
- Added to Heist Feed
- Publisher date