CVE-2022-23471
containerd CRI stream server: Host memory exhaustion through terminal resize goroutine leak
Also known as GHSA-2qjp-425j-52j9, GO-2022-1147
Mitigation
- Upgrade github.com/containerd/containerd to one of 1.5.16, 1.6.12 (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/containerd/containerd (< 1.5.16)
- Anyone running containerd < 1.5.16; >= 1.6.0, < 1.6.12
Vulnerability facts
- Affected
- github.com/containerd/containerd < 1.5.16
- Fixed in
- 1.5.16, 1.6.12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/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: Low
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.20% chance of exploitation in 30 days (percentile 68, 2026-11-26)
- CWE
- CWE-400
- Modified
Description
containerd is an open source container runtime. A bug was found in containerd's CRI implementation where a user can exhaust memory on the host. In the CRI stream server, a goroutine is launched to handle terminal resize events if a TTY is requested. If the user's process fails to launch due to, for example, a faulty command, the goroutine will be stuck waiting to send without a receiver, resulting in a memory leak. Kubernetes and crictl can both be configured to use containerd's CRI implementation and the stream server is used for handling container IO. This bug has been fixed in containerd 1.6.12 and 1.5.16. Users should update to these versions to resolve the issue. Users unable to upgrade should ensure that only trusted images and commands are used and that only trusted users have permissions to execute commands in running containers.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/containerd/containerd | < 1.5.16 | 1.5.16, 1.6.12 | osv |
| containerd | < 1.5.16; >= 1.6.0, < 1.6.12 | — | 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-2022-23471. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-23471.md Affected: github.com/containerd/containerd < 1.5.16 Fixed in: 1.5.16, 1.6.12 Steps: 1. Search this machine and project for github.com/containerd/containerd (Go), containerd: 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
Patches
FAQ
Is CVE-2022-23471 being exploited?
There is no confirmed exploitation: CVE-2022-23471 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.20% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-23471?
Medium: CVSS 5.7 (v3.1, scored by CNA). Remote, 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-2022-23471?
github.com/containerd/containerd < 1.5.16.
Is there a fix for CVE-2022-23471?
Yes. Fixed in 1.5.16, 1.6.12. Upgrade github.com/containerd/containerd to one of 1.5.16, 1.6.12 (or later in the same release line).
How do I check if I'm affected by CVE-2022-23471?
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.