Advisory

GHSA-7qw8-847f-pggm

Also known as: CVE-2021-20291, GO-2021-0100

Summary

Improper Locking in github.com/containers/storage

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-10 19:35 UTC
Modified
2023-11-08 04:04 UTC

Affected packages and fixes

github.com/containers/storage

Go · All systems

Affected

  • introduced 0, fixed 1.28.1 (semver)

Fixed versions

1.28.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences