CVE-2022-36109Moby vulnerability relating to supplementary group permissions
Moby is an open-source project created by Docker to enable software containerization. A bug was found in Moby (Docker Engine) where supplementary groups are not set up properly. If an attacker has direct access to a container and manipulates their supplementary group access, they may be able to use supplementary group access to bypass primary group restrictions in some cases, potentially gaining access to sensitive information or gaining the ability to execute code in that container. This bug is fixed in Moby (Docker Engine) 20.10.18. Running containers should be stopped and restarted for the permissions to be fixed. For users unable to upgrade, this problem can be worked around by not using the `"USER $USERNAME"` Dockerfile instruction. Instead by calling `ENTRYPOINT ["su", "-", "user"]` the supplementary groups will be set up properly.
What to do
Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | docker.io | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | docker.io | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | docker.io | Fixed | 20.10.21-0ubuntu1~22.04.2 | UBUNTU-CVE-2022-36109 |
| Ubuntu 20.04 | docker.io | Fixed | 20.10.21-0ubuntu1~20.04.1 | UBUNTU-CVE-2022-36109 |
| Ubuntu 18.04 | docker.io | Fixed | 20.10.21-0ubuntu1~18.04.2 | UBUNTU-CVE-2022-36109 |
| Ubuntu 16.04 | docker.io | Fix pending | UBUNTU-CVE-2022-36109 | |
| Ubuntu 14.04 | docker.io | Fix pending | ||
| Debian 14 | docker.io | Fixed | 20.10.19+dfsg1-1 | DEBIAN-CVE-2022-36109 |
| Debian 13 | docker.io | Fixed | 20.10.19+dfsg1-1 | DEBIAN-CVE-2022-36109 |
| Debian 12 | docker.io | Fixed | 20.10.19+dfsg1-1 | DEBIAN-CVE-2022-36109 |
| Alpine Linux 3.24 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine Linux 3.23 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine Linux 3.22 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine Linux 3.21 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine Linux 3.20 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine Linux 3.19 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine Linux 3.18 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine Linux 3.17 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine Linux 3.16 | docker | Fixed | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Go library | github.com/containerd/containerd | Fixed | 1.5.18 | GO-2023-1574 |
| Go library | github.com/containers/buildah | Fixed | 1.27.1 | GO-2022-1008 |
| Go library | github.com/docker/docker | Fixed | 20.10.18+incompatible | GHSA-rc4r-wh2q-q6c4 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- moby: affected: < 20.10.18
References
- https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4
- https://github.com/moby/moby/commit/de7af816e76a7fd3fbf06bffa6832959289fba32
- https://github.com/moby/moby/releases/tag/v20.10.18
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O7JL2QA3RB732MLJ3RMUXB3IB7AA22YU
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RQQ4E3JBXVR3VK5FIZVJ3QS2TAOOXXTQ
- https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.