CVE-2021-20291
Improper Locking in github.com/containers/storage
Also known as GHSA-7qw8-847f-pggm, GO-2021-0100
Mitigation
- Upgrade github.com/containers/storage to 1.28.1 or later.
Who should check
- Projects that depend on Go package github.com/containers/storage (< 1.28.1)
- Anyone running containers/storage containers/storage 1.28.1
Vulnerability facts
- Affected
- github.com/containers/storage < 1.28.1
- Fixed in
- 1.28.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.59% chance of exploitation in 30 days (percentile 76, 2026-11-26)
- CWE
- CWE-667
- Modified
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).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/containers/storage | < 1.28.1 | 1.28.1 | osv |
| containers/storage | containers/storage 1.28.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-20291. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-20291.md Affected: github.com/containers/storage < 1.28.1 Fixed in: 1.28.1 Steps: 1. Search this machine and project for github.com/containers/storage (Go), containers/storage: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5D7XL7FL24TWFMGQ3K2S72EOUSLZMKL/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNMB7O2UIXE34PGSCSOULGHPX5LIJBMM/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WX24EITRXVHDM5M223BVTJA2ODF2FSHI/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SPYOHNG2Q7DCAQZMGYLMENLKALGDLG3X/
- https://nvd.nist.gov/vuln/detail/CVE-2021-20291
Patches
Exploits and PoCs
Other
- https://github.com/containers/storage
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R5D7XL7FL24TWFMGQ3K2S72EOUSLZMKL
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SPYOHNG2Q7DCAQZMGYLMENLKALGDLG3X
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WX24EITRXVHDM5M223BVTJA2ODF2FSHI
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNMB7O2UIXE34PGSCSOULGHPX5LIJBMM
- https://pkg.go.dev/vuln/GO-2021-0100
- https://unit42.paloaltonetworks.com/cve-2021-20291
FAQ
Is CVE-2021-20291 being exploited?
There is no confirmed exploitation: CVE-2021-20291 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.59% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-20291?
Medium: CVSS 6.5 (v3.1, scored by NVD). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2021-20291?
github.com/containers/storage < 1.28.1.
Is there a fix for CVE-2021-20291?
Yes. Fixed in 1.28.1. Upgrade github.com/containers/storage to 1.28.1 or later.
How do I check if I'm affected by CVE-2021-20291?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.