CVE catalog

CVE-2021-29482

golang-github-ulikunitz-xz affected and fixed versions

[CVE catalog]

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.

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.44% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixiegolang-github-ulikunitz-xz0.5.6-2FixedDistribution-reported fixed boundary[CVE-2021-29482]
Debiansidgolang-github-ulikunitz-xz0.5.15-1Fixed[CVE-2021-29482]
Debiansidgolang-github-ulikunitz-xz0.5.6-2FixedDistribution-reported fixed boundary[CVE-2021-29482]
Debianforkygolang-github-ulikunitz-xz0.5.15-1Fixed[CVE-2021-29482]
Debianforkygolang-github-ulikunitz-xz0.5.6-2FixedDistribution-reported fixed boundary[CVE-2021-29482]
Debianbookwormgolang-github-ulikunitz-xz0.5.6-2FixedDistribution-reported fixed boundary[CVE-2021-29482]

Showing 6 fix observations. All 12 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
Debianbookwormgolang-github-ulikunitz-xz0.5.6-2FixedDistribution-reported fixed boundary[CVE-2021-29482]
Debianforkygolang-github-ulikunitz-xz0.5.15-1Fixed[CVE-2021-29482]
Debianforkygolang-github-ulikunitz-xz0.5.6-2FixedDistribution-reported fixed boundary[CVE-2021-29482]
Debiansidgolang-github-ulikunitz-xz0.5.15-1Fixed[CVE-2021-29482]
Debiansidgolang-github-ulikunitz-xz0.5.6-2FixedDistribution-reported fixed boundary[CVE-2021-29482]
Debiantrixiegolang-github-ulikunitz-xz0.5.6-2FixedDistribution-reported fixed boundary[CVE-2021-29482]
Ubuntu20.04golang-github-ulikunitz-xz0.5.6-1UnknownSource applicability is not established[UBUNTU-CVE-2021-29482]
Ubuntu22.04golang-github-ulikunitz-xz0.5.6-2UnknownSource applicability is not established[UBUNTU-CVE-2021-29482]
Ubuntu24.04golang-github-ulikunitz-xz0.5.6-2UnknownSource applicability is not established[UBUNTU-CVE-2021-29482]
Ubuntu25.10golang-github-ulikunitz-xz0.5.6-2UnknownSource applicability is not established[UBUNTU-CVE-2021-29482]
Ubuntu26.04golang-github-ulikunitz-xz0.5.15-1UnknownSource applicability is not established[UBUNTU-CVE-2021-29482]
Ubuntu26.04golang-github-ulikunitz-xz0.5.6-2UnknownSource applicability is not established[UBUNTU-CVE-2021-29482]
Original provider fields
{
  "package_releases": [
    {
      "name": "golang-github-ulikunitz-xz",
      "status": "fixed",
      "release": "sid",
      "version": "0.5.15-1"
    },
    {
      "name": "golang-github-ulikunitz-xz",
      "status": "fixed",
      "release": "forky",
      "version": "0.5.15-1"
    },
    {
      "name": "golang-github-ulikunitz-xz",
      "status": "fixed",
      "release": "trixie",
      "version": "0.5.6-2"
    },
    {
      "name": "golang-github-ulikunitz-xz",
      "status": "fixed",
      "release": "bookworm",
      "version": "0.5.6-2"
    }
  ],
  "fixed_versions": [
    {
      "bug": 988243,
      "name": "golang-github-ulikunitz-xz",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "0.5.6-2"
    },
    {
      "bug": 988243,
      "name": "golang-github-ulikunitz-xz",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "0.5.6-2"
    },
    {
      "bug": 988243,
      "name": "golang-github-ulikunitz-xz",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "0.5.6-2"
    },
    {
      "bug": 988243,
      "name": "golang-github-ulikunitz-xz",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "0.5.6-2"
    }
  ],
  "distribution_packages": [
    {
      "name": "golang-github-ulikunitz-xz",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "20.04",
      "versions": [
        "0.5.6-1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-29482",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-29482",
      "provider_updated_at": "2026-05-20T16:04:55.169325267Z",
      "applicability_unknown": true
    },
    {
      "name": "golang-github-ulikunitz-xz",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [
        "0.5.6-2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-29482",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-29482",
      "provider_updated_at": "2026-05-20T16:04:55.169325267Z",
      "applicability_unknown": true
    },
    {
      "name": "golang-github-ulikunitz-xz",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "24.04",
      "versions": [
        "0.5.6-2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-29482",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-29482",
      "provider_updated_at": "2026-05-20T16:04:55.169325267Z",
      "applicability_unknown": true
    },
    {
      "name": "golang-github-ulikunitz-xz",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "25.10",
      "versions": [
        "0.5.6-2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-29482",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-29482",
      "provider_updated_at": "2026-05-20T16:04:55.169325267Z",
      "applicability_unknown": true
    },
    {
      "name": "golang-github-ulikunitz-xz",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "26.04",
      "versions": [
        "0.5.6-2",
        "0.5.15-1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-29482",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-29482",
      "provider_updated_at": "2026-05-20T16:04:55.169325267Z",
      "applicability_unknown": true
    }
  ]
}

[Debian bug #988243]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • Source package: [golang-github-ulikunitz-xz]

    Details (2)
    • 0.5.6-2 · all · bookworm

      Fixed · Fixed: 0.5.6-2

      dsa · golang-github-ulikunitz-xz · debian · bookworm; dsa · golang-github-ulikunitz-xz · debian · 12

    • 0.5.6-2 · all · bookworm

      Fixed · Fixed: 0.5.6-2

      dsa · golang-github-ulikunitz-xz · debian · bookworm; dsa · golang-github-ulikunitz-xz · debian · 12

[Debian 13 (Trixie)]

  • Source package: [golang-github-ulikunitz-xz]

    Details (2)
    • 0.5.6-2 · all · trixie

      Fixed · Fixed: 0.5.6-2

      dsa · golang-github-ulikunitz-xz · debian · 13

    • 0.5.6-2 · all · trixie

      Fixed · Fixed: 0.5.6-2

      dsa · golang-github-ulikunitz-xz · debian · 13

Observed:

References