Vulnerability · Published Sep 9, 2022 · Assigned by GitHub_M
CVE-2022-36109Moby vulnerability relating to supplementary group permissions
Medium 5.3
In plain English
A medium-severity incorrect authorization in moby from moby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | docker | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine:v3.21 | docker | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine:v3.22 | docker | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine:v3.23 | docker | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Alpine:v3.24 | docker | 20.10.18-r0 | ALPINE-CVE-2022-36109 |
| Debian:12 | docker.io | 20.10.19+dfsg1-1 | DEBIAN-CVE-2022-36109 |
| Debian:13 | docker.io | 20.10.19+dfsg1-1 | DEBIAN-CVE-2022-36109 |
| Debian:14 | docker.io | 20.10.19+dfsg1-1 | DEBIAN-CVE-2022-36109 |
| Go | github.com/docker/docker | 20.10.18 | GHSA-rc4r-wh2q-q6c4 |
| Go | github.com/docker/docker | 20.10.18+incompatible | GO-2022-0985 |
| Ubuntu:22.04:LTS | docker.io | 20.10.21-0ubuntu1~22.04.2 | UBUNTU-CVE-2022-36109 |
Affected products (as reported)
Weakness: CWE-863 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4 x_refsource_CONFIRM
- https://github.com/moby/moby/commit/de7af816e76a7fd3fbf06bffa6832959289fba32 x_refsource_MISC
- https://github.com/moby/moby/releases/tag/v20.10.18 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O7JL2QA3RB732MLJ3RMUXB3IB7AA22YU x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RQQ4E3JBXVR3VK5FIZVJ3QS2TAOOXXTQ x_refsource_MISC
- https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation x_refsource_MISC
- FEDORA-2022-b027a13a39 vendor-advisory, x_refsource_FEDORA, x_transferred
- FEDORA-2022-8298607490 vendor-advisory, x_refsource_FEDORA, x_transferred