CVE-2021-20291

containers/storage: DoS via malicious image

Published Apr 1, 2021 CVSS 3.1 · 6.5 Medium EPSS 1.6% KEV · Not listed
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-1004 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).
Github GHSA Github GHSA GHSA-7qw8-847f-pggm Improper Locking in github.com/containers/storage
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 3, 2024, 5:37 PM
Reserved
Dec 17, 2020, 12:00 AM
Status
Modified
Published
Apr 1, 2021, 6:15 PM
Modified
Jun 17, 2026, 3:33 AM
Severity
Moderate
Public date
Apr 1, 2021, 12:00 AM