golang-github-ulikunitz-xz — security advisory
xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.
- Products
- golang-github-ulikunitz-xz
- Affected versions
- Not specified
- Fixed versions
- 0.5.6-2
- CVEs
- CVE-2021-29482
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:21 UTC · Revision 1
Source evidence
xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.
osv:DEBIAN-CVE-2021-29482
golang-github-ulikunitz-xz
Fixed versions: 0.5.6-2
golang-github-ulikunitz-xz
Fixed versions: 0.5.6-2
golang-github-ulikunitz-xz
Fixed versions: 0.5.6-2
Complete source record
{
"id": "4d61e77ad8be90563cb649248cfb0700313841192351d28dd66a65868c4d2626",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-29482",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-29482",
"summary": "xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.",
"evidence": "osv:DEBIAN-CVE-2021-29482",
"products": [
{
"name": {
"value": "golang-github-ulikunitz-xz",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.5.6-2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "golang-github-ulikunitz-xz",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.5.6-2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "golang-github-ulikunitz-xz",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.5.6-2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-29482",
"aliases": [
"DEBIAN-CVE-2021-29482"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.5.6-2"
}
]
}
],
"package": {
"name": "golang-github-ulikunitz-xz",
"purl": "pkg:deb/debian/golang-github-ulikunitz-xz?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-29482.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.5.6-2"
}
]
}
],
"package": {
"name": "golang-github-ulikunitz-xz",
"purl": "pkg:deb/debian/golang-github-ulikunitz-xz?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-29482.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.5.6-2"
}
]
}
],
"package": {
"name": "golang-github-ulikunitz-xz",
"purl": "pkg:deb/debian/golang-github-ulikunitz-xz?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-29482.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:12.878961430Z",
"provider": "osv",
"upstream": [
"CVE-2021-29482"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-29482"
]
},
"related_cves": [
{
"value": "CVE-2021-29482",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 420842,
"published_at": "2021-04-28T19:15:08.587+00:00"
}