{"id":"CVE-2024-25621","aliases":["CVE-2024-25621","GHSA-pwhc-rpq9-4c8w","GO-2025-4100"],"related":["CGA-xqcg-j7rr-43xj"],"kind":"vulnerability","state":"published","title":"containerd affected by a local privilege escalation via wide permissions on CRI directory","summary":"containerd is an open-source container runtime. Versions 0.1.0 through 1.7.28, 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 have an overly broad default permission vulnerability. Directory paths `/var/lib/containerd`, `/run/containerd/io.containerd.grpc.v1.cri` and `/run/containerd/io.containerd.sandbox.controller.v1.shim` were all created with incorrect permissions. This issue is fixed in versions 1.7.29, 2.0.7, 2.1.5 and 2.2.0. Workarounds include updating system administrator permissions so the host can manually chmod the directories to not have group or world accessible permissions, or to run containerd in rootless mode.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"containerd is an open-source container runtime. Versions 0.1.0 through 1.7.28, 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 have an overly broad default permission vulnerability. Directory paths `/var/lib/containerd`, `/run/containerd/io.containerd.grpc.v1.cri` and `/run/containerd/io.containerd.sandbox.controller.v1.shim` were all created with incorrect permissions. This issue is fixed in versions 1.7.29, 2.0.7, 2.1.5 and 2.2.0. Workarounds include updating system administrator permissions so the host can manually chmod the directories to not have group or world accessible permissions, or to run containerd in rootless mode.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn overly broad default permission vulnerability was found in containerd.\n\n- `/var/lib/containerd` was created with the permission bits 0o711, while it should be created with 0o700\n  - Allowed local users on the host to potentially access the metadata store and the content store\n- `/run/containerd/io.containerd.grpc.v1.cri` was created with 0o755, while it should be created with 0o700\n  - Allowed local users on the host to potentially access the contents of Kubernetes local volumes. The contents of volumes might include setuid binaries, which could allow a local user on the host to elevate privileges on the host.\n- `/run/containerd/io.containerd.sandbox.controller.v1.shim` was created with 0o711, while it should be created with 0o700\n\nThe directory paths may differ depending on the daemon configuration.\nWhen the `temp` directory path is specified in the daemon configuration, that directory was also created with 0o711, while it should be created with 0o700.\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.\nThese updates automatically change the permissions of the existing directories.\n\n> [!NOTE]\n>\n> `/run/containerd` and `/run/containerd/io.containerd.runtime.v2.task` are still created with 0o711.\n> This is an expected behavior for supporting userns-remapped containers.\n\n### Workarounds\n\nThe system administrator on the host can manually chmod the directories to not \nhave group or world accessible permisisons:\n\n```\nchmod 700 /var/lib/containerd\nchmod 700 /run/containerd/io.containerd.grpc.v1.cri\nchmod 700 /run/containerd/io.containerd.sandbox.controller.v1.shim\n```\n\nAn alternative mitigation would be to run containerd in [rootless mode](https://github.com/containerd/containerd/blob/main/docs/rootless.md).\n\n### Credits\n\nThe containerd project would like to thank David Leadbeater 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\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)","format":"markdown","source":"ghsa"},{"lang":"en","text":"containerd affected by a local privilege escalation via wide permissions on CRI directory in github.com/containerd/containerd","format":"markdown","source":"go"},{"lang":"es","text":"containerd es un tiempo de ejecución de contenedores de código abierto. Las versiones 0.1.0 hasta 1.7.28, 2.0.0-beta.0 hasta 2.0.6, 2.1.0-beta.0 hasta 2.1.4 y 2.2.0-beta.0 hasta 2.2.0-rc.1 tienen una vulnerabilidad de permisos predeterminados excesivamente amplia. Las rutas de directorio ’/var/lib/containerd’, ’/run/containerd/io.containerd.grpc.v1.cri’ y ’/run/containerd/io.containerd.sandbox.controller.v1.shim’ fueron creadas todas con permisos incorrectos. Este problema está solucionado en las versiones 1.7.29, 2.0.7, 2.1.5 y 2.2.0. Las soluciones provisionales incluyen actualizar los permisos del administrador del sistema para que el host pueda cambiar manualmente los permisos de los directorios para que no tengan permisos accesibles para el grupo o para todos, o ejecutar containerd en modo sin root.","source":"nvd"}],"published":"2025-11-06T15:12:08.000Z","modified":"2026-11-08T20:10:00.187Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-279"],"affected":[{"ranges":[{"version":"< 1.7.29","status":"affected"},{"version":">= 2.0.0-beta.0, < 2.0.7","status":"affected"},{"version":">= 2.1.0-beta.0, < 2.1.5","status":"affected"},{"version":">= 2.2.0-beta.0, < 2.2.0","status":"affected"}],"vendor":"containerd","product":"containerd","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.29"}],"ecosystem":"Go","package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.7"}],"ecosystem":"Go","package":"github.com/containerd/containerd/v2","purl":"pkg:golang/github.com/containerd/containerd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.1.0-beta.0","status":"affected","fixed":"2.1.5"}],"ecosystem":"Go","package":"github.com/containerd/containerd/v2","purl":"pkg:golang/github.com/containerd/containerd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.2.0-beta.0","status":"affected","fixed":"2.2.0"}],"ecosystem":"Go","package":"github.com/containerd/containerd/v2","purl":"pkg:golang/github.com/containerd/containerd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.29"}],"ecosystem":"Go","package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.7"},{"type":"semver","introduced":"2.1.0-beta.0","status":"affected","fixed":"2.1.5"},{"type":"semver","introduced":"2.2.0-beta.0","status":"affected","fixed":"2.2.0"}],"ecosystem":"Go","package":"github.com/containerd/containerd/v2","purl":"pkg:golang/github.com/containerd/containerd/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"1.7.29"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.7"},{"status":"affected","introduced":"2.1.0","fixed":"2.1.5"},{"status":"affected","version":"2.2.0"},{"status":"affected","version":"2.2.0"},{"status":"affected","version":"2.2.0"},{"status":"affected","version":"2.2.0"},{"status":"affected","version":"2.2.0"}],"vendor":"linuxfoundation","product":"containerd","cpe":"cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/containerd/containerd/security/advisories/GHSA-pwhc-rpq9-4c8w","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containerd/containerd/commit/7c59e8e9e970d38061a77b586b23655c352bfec5","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containerd/containerd/blob/main/docs/rootless.md","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25621","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/containerd/containerd","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-11-06T19:34:44.710Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-25621","url":"https://www.cve.org/CVERecord?id=CVE-2024-25621","licence":"CVE Terms of Use","modified":"2025-11-06T19:35:13.415Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pwhc-rpq9-4c8w","url":"https://github.com/advisories/GHSA-pwhc-rpq9-4c8w","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:58.430Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4100","url":"https://pkg.go.dev/vuln/GO-2025-4100","licence":"CC-BY-4.0","modified":"2026-02-04T02:51:07.565Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-25621","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25621","licence":"Public domain","modified":"2026-11-08T20:10:00.187Z"}],"updatedAt":"2026-11-25T22:58:52.906Z","epss":{"score":0.00172,"percentile":0.06918,"date":"2026-12-01T12:00:22.000Z"}}