CVE-2025-47290: Github.com/containerd/containerd/v2 Containerd Allows Host Filesystem Access Vulnerability
HIGHCVE-2025-47290 is a HIGH containerd allows host filesystem access vulnerability (CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Github.com/containerd/containerd/v2 libraries in the Go ecosystem. The issue involves containerd allows host filesystem access on pull. Remediation is available by upgrading affected packages to version 2.1.1.
CVE-2025-47290 at a Glance
How to Fix CVE-2025-47290
To remediate this vulnerability, upgrade all affected Github.com/containerd/containerd/v2 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.1.1
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-47290, inspect your project dependencies for Github.com/containerd/containerd/v2:
inspect dependencies for github.com/containerd/containerd/v2
Analyze the terminal output to locate any version of Github.com/containerd/containerd/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.1), 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-367: Time-of-check Time-of-use (TOCTOU) Race Condition, where the product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. In Github.com/containerd/containerd/v2, 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-47290 Affected Github.com/containerd/containerd/v2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/containerd/containerd/v2
|
Go |
≥ 2.1.0
< 2.1.1
|
2.1.1
|
References
Frequently Asked Questions
What is CVE-2025-47290?
Which Github.com/containerd/containerd/v2 versions are affected?
What version fixes CVE-2025-47290?
Is github.com/containerd/containerd/v2 affected?
What CWE is associated with CVE-2025-47290?
How can I check Go dependencies for CVE-2025-47290?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cm76-qm8v-3j95",
"modified" : "2025-05-28T19:44:10Z",
"published" : "2025-05-21T16:53:09Z",
"aliases" : [ "CVE-2025-47290" ],
"summary" : "containerd allows host filesystem access on pull",
"details" : "### Impact\n\nA time-of-check to time-of-use (TOCTOU) vulnerability was found in containerd v2.1.0. While unpacking an image during an image pull, specially crafted container images could arbitrarily modify the host file system. \n\n### Patches\nThis bug has been fixed in the following containerd versions:\n\n* 2.1.1\n\nThe only affected version of containerd is 2.1.0. Other versions of containerd are not affected.\n\nUsers should update to this version to resolve the issue.\n\n### Workarounds\nEnsure that only trusted images are used and that only trusted users have permissions to import images.\n\n### Credits\nThe containerd project would like to thank Tõnis Tiigi for responsibly disclosing this issue in accordance with the [containerd security policy](https://github.com/containerd/project/blob/main/SECURITY.md).\n\n### References\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-47290\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](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)\n* Email us at [security@containerd.io](mailto:security@containerd.io)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/containerd/containerd/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/containerd/containerd/security/advisories/GHSA-cm76-qm8v-3j95"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-47290"
}, {
"type" : "WEB",
"url" : "https://github.com/containerd/containerd/commit/cada13298fba85493badb6fecb6ccf80e49673cc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/containerd/containerd"
}, {
"type" : "WEB",
"url" : "https://github.com/containerd/containerd/releases/tag/v2.1.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-367" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-21T16:53:09Z",
"nvd_published_at" : "2025-05-20T19:15:50Z"
}
}