CVE-2025-64329: containerd CRI server Host Memory Exhaustion Through Attach Vulnerability
MODERATECVE-2025-64329 is a MODERATE host memory exhaustion through attach vulnerability (CWE-401: Missing Release of Memory after Effective Lifetime) affecting containerd CRI server libraries in the Go ecosystem. The issue involves host memory exhaustion through attach goroutine leak. Remediation is available by upgrading affected packages to version 1.7.29, 2.0.7, 2.1.5, 2.2.0.
CVE-2025-64329 at a Glance
How to Fix CVE-2025-64329
To remediate this vulnerability, upgrade all affected containerd CRI server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/containerd/containerd to 1.7.29
Upgrade github.com/containerd/containerd/v2 to 2.0.7
Upgrade github.com/containerd/containerd/v2 to 2.1.5
Upgrade github.com/containerd/containerd/v2 to 2.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/containerd/containerd
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-64329, inspect your project dependencies for containerd CRI server:
inspect dependencies for github.com/containerd/containerd
Analyze the terminal output to locate any version of containerd CRI server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.29), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-401: Missing Release of Memory after Effective Lifetime, where the product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. In containerd CRI server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-64329 Affected containerd CRI server Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/containerd/containerd
|
Go |
< 1.7.29
|
1.7.29
|
|
github.com/containerd/containerd/v2
|
Go |
< 2.0.7
|
2.0.7
|
|
github.com/containerd/containerd/v2
|
Go |
≥ 2.1.0-beta.0
< 2.1.5
|
2.1.5
|
|
github.com/containerd/containerd/v2
|
Go |
≥ 2.2.0-beta.0
< 2.2.0
|
2.2.0
|
References
Frequently Asked Questions
What is CVE-2025-64329?
Which containerd CRI server versions are affected?
What version fixes CVE-2025-64329?
Is github.com/containerd/containerd affected?
Is github.com/containerd/containerd/v2 affected?
What CWE is associated with CVE-2025-64329?
How can I check Go dependencies for CVE-2025-64329?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m6hq-p25p-ffr2",
"modified" : "2025-11-07T16:42:55Z",
"published" : "2025-11-06T23:32:23Z",
"aliases" : [ "CVE-2025-64329" ],
"summary" : "containerd CRI server: Host memory exhaustion through Attach goroutine leak",
"details" : "### Impact\n\nA bug was found in containerd's CRI Attach implementation where a user can exhaust memory on the host due to goroutine leaks. \n\nRepetitive calls of CRI Attach (e.g., [`kubectl attach`](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_attach/)) could increase the memory usage of containerd.\n\n### Patches\n\nThis bug has been fixed in the following containerd versions:\n\n* 2.2.0\n* 2.1.5\n* 2.0.7\n* 1.7.29\n\nUsers should update to these versions to resolve the issue.\n\n### Workarounds\n\nSet up an admission controller to control accesses to `pods/attach` resources.\ne.g., [Validating Admission Policy](https://kubernetes.io/docs/reference/access-authn-authz/validating-admission-policy/).\n\n### Credits\n\nThe containerd project would like to thank @Wheat2018 for responsibly disclosing this issue in accordance with the [containerd security policy](https://github.com/containerd/project/blob/main/SECURITY.md).\n\n### References\n\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-64329\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [containerd](https://github.com/containerd/containerd/issues/new/choose)\n* Email us at [security@containerd.io](mailto:security@containerd.io)\n\nTo report a security issue in containerd:\n\n* [Report a new vulnerability](https://github.com/containerd/containerd/security/advisories/new)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containerd/containerd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.7.29"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containerd/containerd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containerd/containerd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0-beta.0"
}, {
"fixed" : "2.1.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containerd/containerd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0-beta.0"
}, {
"fixed" : "2.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/containerd/containerd/security/advisories/GHSA-m6hq-p25p-ffr2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64329"
}, {
"type" : "WEB",
"url" : "https://github.com/containerd/containerd/commit/083b53cd6f19b5de7717b0ce92c11bdf95e612df"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/containerd/containerd"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-401" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-06T23:32:23Z",
"nvd_published_at" : "2025-11-07T05:16:08Z"
}
}