CVE-2021-20291

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-20291
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-20291.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-20291
Aliases
Downstream
Related
Published
2021-04-01T18:15:12Z
Modified
2025-09-19T11:04:04.650781Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Git / github.com/containers/storage

Affected ranges

Type
GIT
Repo
https://github.com/containers/storage
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

V1.*

V1.2

v0.*

v0.21.1

Other

v1

v1.*

v1.1
v1.10
v1.11
v1.12.0
v1.12.1
v1.12.10
v1.12.11
v1.12.12
v1.12.13
v1.12.14
v1.12.15
v1.12.2
v1.12.3
v1.12.4
v1.12.5
v1.12.6
v1.12.7
v1.12.8
v1.12.9
v1.13.0
v1.13.1
v1.13.2
v1.13.3
v1.13.4
v1.13.5
v1.14.0
v1.15.0
v1.15.1
v1.15.2
v1.15.3
v1.15.4
v1.15.5
v1.15.6
v1.15.7
v1.15.8
v1.16.0
v1.16.1
v1.16.2
v1.16.3
v1.16.4
v1.16.5
v1.16.6
v1.17.0
v1.18.0
v1.18.1
v1.18.2
v1.19.0
v1.19.1
v1.19.2
v1.2
v1.20.1
v1.20.2
v1.21.0
v1.21.1
v1.21.2
v1.22.0
v1.23.0
v1.23.1
v1.23.2
v1.23.3
v1.23.4
v1.23.5
v1.23.6
v1.23.7
v1.23.8
v1.23.9
v1.24.0
v1.24.1
v1.24.2
v1.24.3
v1.24.5
v1.25.0
v1.26.0
v1.27.0
v1.28.0
v1.3
v1.4
v1.5
v1.6
v1.7
v1.8
v1.9