GitHub Advisoryadvisory · Go

GHSA-7qw8-847f-pggm Improper Locking in github.com/containers/storage

MEDIUM Published 2021-05-10 Modified 2023-02-14 Official page ↗
Aliases
CVE-2021-20291
Ecosystem
Go
Packages
github.com/containers/storage
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weaknesses
CWE-400, CWE-667
Reviewed
2021-05-04

Affected packages

• Go github.com/containers/storage: < 1.28.1 → fixed in 1.28.1

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

Related

Alias · CVE (1)

  • CVE-2021-20291 A deadlock vulnerability was found in 'github.com/containers/storage' in versions before 1.28.1. vulnerability

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-667 Improper Locking weakness

References