CVE-2025-47290: Github.com/containerd/containerd/v2 Containerd Allows Host Filesystem Access Vulnerability

HIGH
Advisory Identifier: GHSA-cm76-qm8v-3j95
CWE-367
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-47290
GHSA Identifier GHSA-cm76-qm8v-3j95
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Affected Product Github.com/containerd/containerd/v2
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/containerd/containerd/v2 fixed: 2.1.1
Upgrade github.com/containerd/containerd/v2 to 2.1.1
Verify Direct and Transitive Dependencies

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

### Impact A 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. ### Patches This bug has been fixed in the following containerd versions: * 2.1.1 The only affected version of containerd is 2.1.0. Other versions of containerd are not affected. Users should update to this version to resolve the issue. ### Workarounds Ensure that only trusted images are used and that only trusted users have permissions to import images. ### Credits The 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). ### References https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-47290 ### For more information If you have any questions or comments about this advisory: * Open an issue in [containerd](https://github.com/containerd/containerd/issues/new/choose) * Email us at [security@containerd.io](mailto:security@containerd.io) To report a security issue in containerd: * [Report a new vulnerability](https://github.com/containerd/containerd/security/advisories/new) * Email us at [security@containerd.io](mailto:security@containerd.io)

CVE-2025-47290 Affected Github.com/containerd/containerd/v2 Versions

1 component(s)
Fixed Versions:
2.1.1
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?
CVE-2025-47290 is a security vulnerability in Github.com/containerd/containerd/v2 involving containerd allows host filesystem access on pull under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition.
Which Github.com/containerd/containerd/v2 versions are affected?
Affected versions include releases prior to 2.1.1 across affected packages: github.com/containerd/containerd/v2.
What version fixes CVE-2025-47290?
Upgrading to 2.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/containerd/containerd/v2 affected?
Yes, github.com/containerd/containerd/v2 is affected in releases prior to 2.1.1. Upgrade your dependency to 2.1.1 or later.
What CWE is associated with CVE-2025-47290?
CVE-2025-47290 is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition (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.).
How can I check Go dependencies for CVE-2025-47290?
Run the dependency tree command: 'inspect dependencies for github.com/containerd/containerd/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}