CVE-2025-47291: containerd CRI plugin Incorrect Cgroup Hierarchy Assignment For Vulnerability
MODERATECVE-2025-47291 is a MODERATE incorrect cgroup hierarchy assignment for vulnerability (CWE-266: Incorrect Privilege Assignment) affecting containerd CRI plugin libraries in the Go ecosystem. The issue involves incorrect cgroup hierarchy assignment for containers running in usernamespaced kubernetes pods.. Remediation is available by upgrading affected packages to version 2.0.5.
CVE-2025-47291 at a Glance
How to Fix CVE-2025-47291
To remediate this vulnerability, upgrade all affected containerd CRI plugin 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/v2 to 2.0.5
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/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-47291, inspect your project dependencies for containerd CRI plugin:
inspect dependencies for github.com/containerd/containerd/v2
Analyze the terminal output to locate any version of containerd CRI plugin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.5), 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-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In containerd CRI plugin, 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-47291 Affected containerd CRI plugin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/containerd/containerd/v2
|
Go |
≥ 2.0.1
< 2.0.5
|
2.0.5
|
References
Frequently Asked Questions
What is CVE-2025-47291?
Which containerd CRI plugin versions are affected?
What version fixes CVE-2025-47291?
Is github.com/containerd/containerd/v2 affected?
What CWE is associated with CVE-2025-47291?
How can I check Go dependencies for CVE-2025-47291?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cxfp-7pvr-95ff",
"modified" : "2025-05-28T19:45:21Z",
"published" : "2025-05-21T18:01:48Z",
"aliases" : [ "CVE-2025-47291" ],
"summary" : "containerd CRI plugin: Incorrect cgroup hierarchy assignment for containers running in usernamespaced Kubernetes pods.",
"details" : "# Impact\n\nA bug was found in the containerd's CRI implementation where containerd doesn't put usernamespaced containers under the Kubernetes' cgroup hierarchy, therefore some Kubernetes limits are not honored. This may cause a denial of service of the Kubernetes node.\n\n# Patches\n\nThis bug has been fixed in containerd 2.0.5+ and 2.1.0+. Users should update to these versions to resolve the issue.\n\n# Workarounds\n\nDisable usernamespaced pods in Kubernetes temporarily.\n\n# Credits\n\nThe containerd project would like to thank Rodrigo Campos Catelin and Piotr Rogowski for responsibly disclosing this issue in accordance with the [containerd security policy](https://github.com/containerd/project/blob/main/SECURITY.md).\n\n# For more information\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\n\nTo report a security issue in containerd:\n* [Report a new vulnerability](https://github.com/containerd/containerd/security/advisories/new)\n* Email us at [security@containerd.io](mailto:security@containerd.io)",
"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/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containerd/containerd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.1"
}, {
"fixed" : "2.0.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.0.4"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/containerd/containerd/security/advisories/GHSA-cxfp-7pvr-95ff"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-47291"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/containerd/containerd"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3701"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-266" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-21T18:01:48Z",
"nvd_published_at" : "2025-05-21T18:15:52Z"
}
}