CVE-2021-20291
Denial of service via deadlock in github.com/containers/storage
Description
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).
How to fix CVE-2021-20291
To remediate CVE-2021-20291, upgrade the affected package to a fixed version below.
- —no fix listed
- —upgrade to 1.28.1 or later
- —upgrade to 1.28.1 or later
Is CVE-2021-20291 being exploited?
Low — EPSS is 1.0%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0
- from 0, < 1.28.1
- from 0, < 1.28.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |