{"id":"CVE-2021-41103","published":"2021-10-04T00:00:00Z","modified":"2024-08-04T02:59:31Z","title":"Insufficiently restricted permissions on plugin directories","vendor":"containerd","product":"containerd","tier":"tail","description":{"text":"containerd is an open source container runtime with an emphasis on simplicity, robustness and portability. A bug was found in containerd where container root directories and some plugins had insufficiently restricted permissions, allowing otherwise unprivileged Linux users to traverse directory contents and execute programs. When containers included executable programs with extended permission bits (such as setuid), unprivileged Linux users could discover and execute those programs. When the UID of an unprivileged Linux user on the host collided with the file owner or group inside a container, the unprivileged Linux user on the host could discover, read, and modify those files. This vulnerability has been fixed in containerd 1.4.11 and containerd 1.5.7. Users should update to these version when they are released and may restart containers or update directory permissions to mitigate the vulnerability. Users unable to update should limit access to the host to trusted users. Update directory permission on container bundles directories.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00518,"percentile":0.44972,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/containerd/containerd/security/advisories/GHSA-c2h3-6mxw-7mvq","tags":[]},{"url":"https://github.com/containerd/containerd/commit/5b46e404f6b9f661a205e28d59c982d3634148f8","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/","tags":["vendor-advisory"]},{"url":"https://www.debian.org/security/2021/dsa-5002","tags":["vendor-advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf","tags":[]},{"url":"https://security.gentoo.org/glsa/202401-31","tags":["vendor-advisory"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":8.99},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"containerd","affectedVersions":[{"vendor":"containerd","product":"containerd","versions":["< 1.4.11",">= 1.5.0, < 1.5.7"]}],"affected":[{"ecosystem":"Go","package":"github.com/containerd/containerd","vulnerableRanges":["<1.4.11",">=1.5.0, <1.5.7"],"patched":["1.4.11","1.5.7"],"from":["GHSA-c2h3-6mxw-7mvq","GO-2022-0938"],"provenance":"source"}],"summary":{"text":"The containerd runtime has insufficiently restricted permissions on container root directories and some of its plugin directories, letting local users on the host reach files they should not be able to see. An attacker with a local, unprivileged account on the host, requiring no authentication to containerd and no user interaction, can traverse these directories to discover and run setuid or otherwise privileged programs inside containers, and can read or modify container files whose owner or group UID happens to match their own host UID.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:06Z"},"euvd":{"id":"EUVD-2021-2187","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-containerd-cve-2020-15257","parents":[{"from":"CVE-2020-15257","to":"CVE-2021-41103","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["runtime/v1/linux/bundle.go"],"commits":["https://github.com/containerd/containerd/commit/4a4bb851f5da563ff6e68a83dc837c7699c469ad","https://github.com/containerd/containerd/commit/5b46e404f6b9f661a205e28d59c982d3634148f8"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2020-15257","published":"2020-12-01","fixed":"1.4.3","kev":false},{"cve":"CVE-2021-21334","published":"2021-03-10","fixed":"1.4.4","kev":false},{"cve":"CVE-2021-32760","published":"2021-07-19","fixed":"1.5.4","kev":false,"link":{"from":"CVE-2021-32760","to":"CVE-2021-41103","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.4.8","toFixed":"1.4.11","daysApart":77}]}},{"cve":"CVE-2021-41103","published":"2021-10-04","fixed":"1.5.7","kev":false},{"cve":"CVE-2021-43816","published":"2022-01-05","fixed":"1.5.9","kev":false,"link":{"from":"CVE-2021-41103","to":"CVE-2021-43816","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.5.7","toFixed":"1.5.9","daysApart":93}]}},{"cve":"CVE-2022-23648","published":"2022-03-03","fixed":"1.6.1","kev":false,"link":{"from":"CVE-2021-41103","to":"CVE-2022-23648","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/containerd/containerd","fromFixed":"1.4.11","toFixed":"1.4.13","daysApart":150}]}},{"cve":"CVE-2022-31030","published":"2022-06-06","fixed":"1.6.6","kev":false}],"package":"Go:github.com/containerd/containerd"}}