GO-2026-7007: containerd image-triggered daemon crash via malformed digest in subject-annotated descriptor
Impact
A bug in containerd's image manifest processing causes an unrecovered panic when a child descriptor contains the io.containerd.manifest.subject annotation and a malformed digest. Pulling or importing such an image through the transfer service (including default CRI PullImage requests) crashes the containerd daemon. In Kubernetes environments, kubelet retries failed image pulls with backoff, allowing a pod referencing an untrusted image to repeatedly crash containerd and disrupt container operations on the worker node.
Patches
This bug has been fixed in containerd 2.4.2, 2.3.7, and 2.2.10. Users should update to these versions to resolve the issue.
Workarounds
Restrict pod image references to trusted registries (for example, using a Kubernetes ValidatingAdmissionPolicy or admission webhook) and only pull or import images from trusted sources.
Credits
The containerd project would like to thank @melihgurlek, LEI WANG (@ssst0n3) and Haoyuan Zhang (@zj1ng7), and OpenSec Intelligence who independently discovered and responsibly disclosed this issue in accordance with the containerd security policy.
For more information
If you have any questions or comments about this advisory:
Open an issue in containerd Email us at security@containerd.io
To report a security issue in containerd: Report a new vulnerability Email us at security@containerd.io
Other sources
containerd image-triggered daemon crash via malformed digest in subject-annotated descriptor in github.com/containerd/containerd/v2
— OSV
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/containerd/containerd/v2to a version that resolves this vulnerability.Fixed in 2.2.10 - Upgrade
Upgrade
go/github.com/containerd/containerd/v2to a version that resolves this vulnerability.Fixed in 2.3.7 - Upgrade
Upgrade
go/github.com/containerd/containerd/v2to a version that resolves this vulnerability.Fixed in 2.4.2 - Upgrade
Upgrade
github.com/containerd/containerd/v2to a version that resolves this vulnerability.Fixed in 2.4.2 - Upgrade
Upgrade
github.com/containerd/containerd/v2to a version that resolves this vulnerability.Fixed in 2.3.7 - Upgrade
Upgrade
github.com/containerd/containerd/v2to a version that resolves this vulnerability.Fixed in 2.2.10 - Compensating control
Restrict pod image references to trusted registries, for example with a Kubernetes ValidatingAdmissionPolicy or admission webhook, and only pull or import images from trusted sources.
Event History
Frequently Asked Questions
Which environments are most exposed to repeated disruption?
Kubernetes worker nodes are particularly exposed when pods can reference untrusted images. Kubelet retries failed image pulls with backoff, so a malicious image can repeatedly crash containerd and disrupt container operations on that node.
What attacker access or interaction is required to trigger the crash?
An attacker needs a pod or image-pull path to cause containerd to pull or import an image containing a child descriptor with the subject annotation and a malformed digest. No user interaction is required; default CRI PullImage requests are included among affected transfer-service operations.
Which containerd releases contain the fix?
The issue is fixed in containerd 2.4.2, 2.3.7, and 2.2.10. Update to the applicable fixed release line.
What can be done if an update cannot be applied immediately?
Restrict pod image references to trusted registries and only pull or import images from trusted sources. In Kubernetes, this can be enforced with a ValidatingAdmissionPolicy or an admission webhook.