CVE-2024-25621
CVE-2024-25621
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
github.com/containerd/containerd (Go): OSV reports a fixed version 1.7.29. Check the advisory for supported release branches.
Source: OSV GHSA-pwhc-rpq9-4c8wFix
github.com/containerd/containerd/v2 (Go): OSV reports a fixed version 2.0.7. Check the advisory for supported release branches.
Source: OSV GHSA-pwhc-rpq9-4c8wFix
github.com/containerd/containerd/v2 (Go): OSV reports a fixed version 2.1.5. Check the advisory for supported release branches.
Source: OSV GHSA-pwhc-rpq9-4c8wFix
github.com/containerd/containerd/v2 (Go): OSV reports a fixed version 2.2.0. Check the advisory for supported release branches.
Source: OSV GHSA-pwhc-rpq9-4c8wAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| containerd linuxfoundation |
< 1.7.29 (affected, custom) | NVD |
| containerd linuxfoundation |
≥ 2.0.0; < 2.0.7 (affected, custom) | NVD |
| containerd linuxfoundation |
≥ 2.1.0; < 2.1.5 (affected, custom) | NVD |
| containerd linuxfoundation |
2.2.0 (affected, custom) | NVD |
github.com/containerd/containerdgithub.com/containerd/containerd
Go |
≥ 0; < 1.7.29 (affected, semver); OSV events: introduced 0; fixed 1.7.29Source events (semver)
Other versions: unaffected |
OSV GHSA-pwhc-rpq9-4c8w |
github.com/containerd/containerd/v2github.com/containerd/containerd/v2
Go |
≥ 0; < 2.0.7 (affected, semver); OSV events: introduced 0; fixed 2.0.7Source events (semver)
Other versions: unaffected |
OSV GHSA-pwhc-rpq9-4c8w |
github.com/containerd/containerd/v2github.com/containerd/containerd/v2
Go |
≥ 2.1.0-beta.0; < 2.1.5 (affected, semver); OSV events: introduced 2.1.0-beta.0; fixed 2.1.5Source events (semver)
Other versions: unaffected |
OSV GHSA-pwhc-rpq9-4c8w |
github.com/containerd/containerd/v2github.com/containerd/containerd/v2
Go |
≥ 2.2.0-beta.0; < 2.2.0 (affected, semver); OSV events: introduced 2.2.0-beta.0; fixed 2.2.0Source events (semver)
Other versions: unaffected |
OSV GHSA-pwhc-rpq9-4c8w |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
NVD applicability configurations (1)
These expressions retain AND/OR operators, negation, and required environmental products. A listed product is not sufficient to establish exposure when additional conditions apply.
[
{
"negate": false,
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.7.29",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.0.7",
"versionStartIncluding": "2.0.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.1.5",
"versionStartIncluding": "2.1.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:linuxfoundation:containerd:2.2.0:beta0:*:*:*:*:*:*",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:linuxfoundation:containerd:2.2.0:beta1:*:*:*:*:*:*",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:linuxfoundation:containerd:2.2.0:beta2:*:*:*:*:*:*",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:linuxfoundation:containerd:2.2.0:rc0:*:*:*:*:*:*",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:linuxfoundation:containerd:2.2.0:rc1:*:*:*:*:*:*",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
}
]CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.8 high |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD: [email protected] |
| 3.1 / 7.3 high |
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/containerd/containerd/blob/main/docs/rootless.md[email protected] · Product
- https://github.com/containerd/containerd/commit/7c59e8e9e970d38061a77b586b23655c352bfec5[email protected] · Patch
- https://github.com/containerd/containerd/security/advisories/GHSA-pwhc-rpq9-4c8w[email protected] · Patch, Vendor Advisory
- https://github.com/advisories/GHSA-pwhc-rpq9-4c8wOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-pwhc-rpq9-4c8wOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.