6.9medium
containerd CRI server: Host memory exhaustion through Attach goroutine leak
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m6hq-p25p-ffr2GO-2025-4108
Description
containerd is an open-source container runtime. Versions 1.7.28 and below, 2.0.0-beta.0 through 2.0.6, 2.1.0-beta.0 through 2.1.4, and 2.2.0-beta.0 through 2.2.0-rc.1 contain a bug in the CRI Attach implementation where a user can exhaust memory on the host due to goroutine leaks. This issue is fixed in versions 1.7.29, 2.0.7, 2.1.5 and 2.2.0. To workaround this vulnerability, users can set up an admission controller to control accesses to pods/attach resources.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| containerd containerd | < 1.7.29, < 2.0.7, >= 2.1.0-beta.0, < 2.1.5, >= 2.2.0-beta.0, < 2.2.0 | CVE List |
| github.com/containerd/containerd (Go) | before 1.7.29 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/containerd/containerd/v2 (Go) | before 2.0.7, from 2.1.0-beta.0 before 2.1.5, from 2.2.0-beta.0 before 2.2.0 | GitHub Advisory Database, Go Vulnerability Database |
| linuxfoundation containerd | before 1.7.29, from 2.0.0 before 2.0.7, from 2.1.0 before 2.1.5, 2.2.0 | NVD |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
containerd is an open-source container runtime. Versions 1.7.28 and below, 2.0.0-beta.0 through 2.0.6, 2.1.0-beta.0 through 2.1.4, and 2.2.0-beta.0 through 2.2.0-rc.1 contain a bug in the CRI Attach implementation where a user can exhaust memory on the host due to goroutine leaks. This issue is fixed in versions 1.7.29, 2.0.7, 2.1.5 and 2.2.0. To workaround this vulnerability, users can set up an admission controller to control accesses to pods/attach resources.
GitHub Advisory Database
Impact
A bug was found in containerd's CRI Attach implementation where a user can exhaust memory on the host due to goroutine leaks.
Repetitive calls of CRI Attach (e.g., kubectl attach) could increase the memory usage of containerd.
Patches
This bug has been fixed in the following containerd versions:
- 2.2.0
- 2.1.5
- 2.0.7
- 1.7.29
Users should update to these versions to resolve the issue.
Workarounds
Set up an admission controller to control accesses to pods/attach resources.
e.g., Validating Admission Policy.
Credits
The containerd project would like to thank @Wheat2018 for responsibly disclosing this issue in accordance with the containerd security policy.
References
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-64329
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:
Go Vulnerability Database
containerd CRI server: Host memory exhaustion through Attach goroutine leak in github.com/containerd/containerd
NVD (es)
containerd es un tiempo de ejecución de contenedores de código abierto. Las versiones 1.7.28 e inferiores, 2.0.0-beta.0 hasta 2.0.6, 2.1.0-beta.0 hasta 2.1.4, y 2.2.0-beta.0 hasta 2.2.0-rc.1 contienen un error en la implementación de CRI Attach donde un usuario puede agotar la memoria en el host debido a fugas de goroutines. Este problema está solucionado en las versiones 1.7.29, 2.0.7, 2.1.5 y 2.2.0. Como solución alternativa a esta vulnerabilidad, los usuarios pueden configurar un controlador de admisión para controlar los accesos a los recursos pods/attach.
References
| https://github.com/containerd/containerd/security/advisories/GHSA-m6hq-p25p-ffr2 | advisory, patch, vendor-advisory, web | |
| https://github.com/containerd/containerd/commit/083b53cd6f19b5de7717b0ce92c11bdf95e612df | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-64329 | advisory | |
| https://github.com/containerd/containerd | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-64329 changed 2025-11-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m6hq-p25p-ffr2 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4108 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2025-64329 changed 2026-06-17 | Public domain |