# CVE-2022-36109: Moby vulnerability relating to supplementary group permissions

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2022-09-09T17:20:11.000Z
- Modified: 2026-06-17T04:52:56.423Z
- Also known as: GHSA-rc4r-wh2q-q6c4, GO-2022-0985
- Related: CVE-2023-25173, GO-2022-1008, GO-2023-1574
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- moby moby: < 20.10.18
- github.com/docker/docker (Go): before 20.10.18; before 20.10.18+incompatible
- mobyproject moby: before 20.10.18
- fedoraproject fedora: 36; 37

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/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> (advisory, third-party-advisory, web)
- <https://github.com/moby/moby/commit/de7af816e76a7fd3fbf06bffa6832959289fba32> (patch, third-party-advisory, web)
- <https://github.com/moby/moby/releases/tag/v20.10.18> (third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O7JL2QA3RB732MLJ3RMUXB3IB7AA22YU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RQQ4E3JBXVR3VK5FIZVJ3QS2TAOOXXTQ> (web)
- <https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RQQ4E3JBXVR3VK5FIZVJ3QS2TAOOXXTQ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O7JL2QA3RB732MLJ3RMUXB3IB7AA22YU/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36109> (advisory)
- <https://github.com/moby/moby> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O7JL2QA3RB732MLJ3RMUXB3IB7AA22YU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RQQ4E3JBXVR3VK5FIZVJ3QS2TAOOXXTQ> (web)

## Sources

- CVE List: [CVE-2022-36109](https://www.cve.org/CVERecord?id=CVE-2022-36109), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-rc4r-wh2q-q6c4](https://github.com/advisories/GHSA-rc4r-wh2q-q6c4), CC-BY-4.0, modified 2026-02-04
- Go Vulnerability Database: [GO-2022-0985](https://pkg.go.dev/vuln/GO-2022-0985), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-36109](https://nvd.nist.gov/vuln/detail/CVE-2022-36109), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-36109 · Whole record: https://cve.day/CVE-2022-36109.json · Rebuilt by cve.day 2026-11-25T22:58:14.821Z
