CVE catalog

CVE-2021-20291

golang-github-containers-storage: CVE-2021-20291

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.59% · Oct 25, 2026

A deadlock vulnerability was found in 'github.com/containers/storage' in versions before 1.28.1. When a container image is processed, each layer is unpacked using `tar`. If one of those layers is not a valid `tar` archive this causes an error leading to an unexpected situation where the code indefinitely waits for the tar unpacked stream, which never finishes. An attacker could use this vulnerability to craft a malicious image, which when downloaded and stored by an application using containers/storage, would then cause a deadlock leading to a Denial of Service (DoS).

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-github-containers-storagesid1.64.0-1fixed
Debiangolang-github-containers-storageforky1.64.0-1fixed
Debiangolang-github-containers-storagetrixie1.57.2+ds1-1fixed
Debiangolang-github-containers-storagebookworm1.43.0+ds1-8fixed
Ubuntugolang-github-containers-storage20.041.13.2+dfsg1-2vulnerable
Ubuntugolang-github-containers-storage20.041.13.2+dfsg1-3vulnerable
Ubuntugolang-github-containers-storage20.041.13.5+dfsg1-1vulnerable
Ubuntugolang-github-containers-storage20.041.15.1+dfsg1-1vulnerable
Ubuntugolang-github-containers-storage20.041.15.2+dfsg1-1vulnerable
Ubuntugolang-github-containers-storage20.041.15.3+dfsg1-1vulnerable
Ubuntugolang-github-containers-storage20.041.15.5+dfsg1-1vulnerable
Ubuntugolang-github-containers-storage20.041.15.7+dfsg1-1vulnerable
Ubuntugolang-github-containers-storage20.041.15.8+dfsg1-1vulnerable
Ubuntugolang-github-containers-storage20.041.15.8+dfsg1-1ubuntu1vulnerable
Ubuntugolang-github-containers-storage20.041.15.8+dfsg1-1ubuntu2vulnerable
Ubuntugolang-github-containers-storage20.041.15.8+dfsg1-1ubuntu2.1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-containers-storagesourcesid1.34.1+ds1-1not yet assignedNot reported[988942]
Debiangolang-github-containers-storagesourceforky1.34.1+ds1-1not yet assignedNot reported[988942]
Debiangolang-github-containers-storagesourcetrixie1.34.1+ds1-1not yet assignedNot reported[988942]
Debiangolang-github-containers-storagesourcebookworm1.34.1+ds1-1not yet assignedNot reported[988942]

[Debian bug #988942]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-github-containers-storage]

    Details (4)
    • 1.43.0+ds1-8+b2 · amd64 · bookworm

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · bookworm; dsa · golang-github-containers-storage · debian · 12

    • 1.43.0+ds1-8+b2 · arm64 · bookworm

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · bookworm; dsa · golang-github-containers-storage · debian · 12

    • 1.48.1+ds1-2~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · bookworm; dsa · golang-github-containers-storage · debian · 12

    • 1.48.1+ds1-2~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · bookworm; dsa · golang-github-containers-storage · debian · 12

  • Source package: [golang-github-containers-storage]

    Details (4)
    • 1.43.0+ds1-8 · all · bookworm

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · bookworm; dsa · golang-github-containers-storage · debian · 12

    • 1.43.0+ds1-8 · all · bookworm

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · bookworm; dsa · golang-github-containers-storage · debian · 12

    • 1.48.1+ds1-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · bookworm; dsa · golang-github-containers-storage · debian · 12

    • 1.48.1+ds1-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · bookworm; dsa · golang-github-containers-storage · debian · 12

[Debian 13 (Trixie)]

  • Source package: [golang-github-containers-storage]

    Details (2)
    • 1.57.2+ds1-1+b2 · amd64 · trixie

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · 13

    • 1.57.2+ds1-1+b2 · arm64 · trixie

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · 13

  • Source package: [golang-github-containers-storage]

    Details (2)
    • 1.57.2+ds1-1 · all · trixie

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · 13

    • 1.57.2+ds1-1 · all · trixie

      Fixed · Fixed: 1.34.1+ds1-1

      dsa · golang-github-containers-storage · debian · 13

Observed:

References