CVE-2024-25621
containerd affected by a local privilege escalation via wide permissions on CRI directory
Auswirkung
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.
Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, mit einem normalen Benutzerkonto, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| go | github.com/containerd/containerd | < 1.7.29 | 1.7.29 |
| go | github.com/containerd/containerd/v2 | < 2.0.7 | 2.0.7 |
Betroffene Produkte · Linuxfoundation
| Produkt | Betroffene Versionen |
|---|---|
| Containerd | vor 1.7.29 ab 2.0.0 vor 2.0.7 ab 2.1.0 vor 2.1.5 Version 2.2.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/containerd/containerd/blob/main/docs/rootless.md
- https://github.com/containerd/containerd/commit/7c59e8e9e970d38061a77b586b23655c352bfec5
- https://github.com/containerd/containerd/security/advisories/GHSA-pwhc-rpq9-4c8w
- https://github.com/advisories/GHSA-pwhc-rpq9-4c8w
- https://nvd.nist.gov/vuln/detail/CVE-2024-25621