CVE-2025-64329: containerd CRI server: Host memory exhaustion through Attach goroutine leak

Published Nov 6, 2025
·
Updated

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:

Report a new vulnerability

Other sources

containerd CRI server: Host memory exhaustion through Attach goroutine leak

Microsoft

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.

NVD

Affected Software

18 affected componentsFixes available
go/github.com/containerd/containerd/v2>=2.2.0-beta.0<2.2.0
2.2.0
go/github.com/containerd/containerd/v2>=2.1.0-beta.0<2.1.5
2.1.5
go/github.com/containerd/containerd/v2<2.0.7
2.0.7
go/github.com/containerd/containerd<1.7.29
1.7.29
Microsoft cbl2 moby-containerd 1.6.26-12
Microsoft cbl2 moby-containerd-cc 1.7.7-12
Microsoft azl3 moby-containerd-cc 1.7.7-9
Microsoft azl3 containerd2 2.0.0-14
Microsoft azl3 containerd2 2.0.0-16
linuxfoundation Containerd<1.7.29
linuxfoundation Containerd>=2.0.0<2.0.7
linuxfoundation Containerd>=2.1.0<2.1.5
linuxfoundation Containerd=2.2.0-beta0
linuxfoundation Containerd=2.2.0-beta1
linuxfoundation Containerd=2.2.0-beta2
linuxfoundation Containerd=2.2.0-rc0
linuxfoundation Containerd=2.2.0-rc1
IBM Netezza Software<=11.3.0.3-IF2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/containerd/containerd/v2 to a version that resolves this vulnerability.

    Fixed in 2.2.0
  2. Upgrade

    Upgrade go/github.com/containerd/containerd/v2 to a version that resolves this vulnerability.

    Fixed in 2.1.5
  3. Upgrade

    Upgrade go/github.com/containerd/containerd/v2 to a version that resolves this vulnerability.

    Fixed in 2.0.7
  4. Upgrade

    Upgrade go/github.com/containerd/containerd to a version that resolves this vulnerability.

    Fixed in 1.7.29
  5. Upgrade

    Upgrade containerd to a version that resolves this vulnerability.

    Fixed in 1.7.29
  6. Upgrade

    Upgrade containerd to a version that resolves this vulnerability.

    Fixed in 2.0.7
  7. Upgrade

    Upgrade containerd to a version that resolves this vulnerability.

    Fixed in 2.1.5
  8. Upgrade

    Upgrade containerd to a version that resolves this vulnerability.

    Fixed in 2.2.0
  9. Compensating control

    Set up a Kubernetes admission controller to control access to the `pods/attach` resources to mitigate repetitive `CRI Attach` (e.g., `kubectl attach`) causing host memory exhaustion via goroutine leaks.

Event History

Nov 6, 2025
Advisory Published
via GitHub·11:32 PM
Data Sourced
via GitHub·11:32 PM
DescriptionWeaknessAffected Software
Nov 7, 2025
CVE Published
via MITRE·04:15 AM
Data Sourced
via MITRE·04:15 AM
DescriptionWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
RemedyAffected Software
Nov 8, 2025
Data Sourced
via Microsoft·01:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:01 AM
Affected Software
Updated
via Microsoft·01:01 AM
DescriptionSeverity
Aug 20, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-64329?

CVE-2025-64329 is considered a moderate severity vulnerability due to potential memory exhaustion on the host.

2

How do I fix CVE-2025-64329?

To remediate CVE-2025-64329, update containerd to version 2.2.0, 2.1.5, or 2.0.7.

3

What causes CVE-2025-64329?

CVE-2025-64329 is caused by goroutine leaks in containerd's CRI Attach implementation.

4

Who is affected by CVE-2025-64329?

Users of containerd versions prior to 2.2.0 and specific versions below 1.7.30 are affected by CVE-2025-64329.

5

Can CVE-2025-64329 be exploited remotely?

Yes, CVE-2025-64329 can be exploited remotely through repetitive calls to CRI Attach commands.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203