Improper Locking Affecting golang-github-containers-storage package, versions <1.34.1+ds1-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.59% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN14-GOLANGGITHUBCONTAINERSSTORAGE-11744587
  • published10 Aug 2025
  • disclosed1 Apr 2021

Introduced: 1 Apr 2021

CVE-2021-20291  (opens in a new tab)
CWE-667  (opens in a new tab)

How to fix?

Upgrade Debian:14 golang-github-containers-storage to version 1.34.1+ds1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-github-containers-storage package and not the golang-github-containers-storage package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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).

CVSS Base Scores

version 3.1