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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.09% (percentile 65, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-rc4r-wh2q-q6c4, GO-2022-0985
- **Published:** 2022-09-09T17:20:11.000Z
- **Modified:** 2026-06-17T04:52:56.423Z

## Who should check

- Projects that depend on Go package github.com/docker/docker (\< 20.10.18)
- Anyone running moby \< 20.10.18

## 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 and fixed versions

- Go `github.com/docker/docker`: affected \< 20.10.18; fixed 20.10.18, 20.10.18+incompatible (osv)
- moby: \< 20.10.18 (cvelist)

## Mitigation

- Upgrade github.com/docker/docker to one of 20.10.18, 20.10.18+incompatible (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-36109. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-36109.md
Affected: github.com/docker/docker < 20.10.18
Fixed in: 20.10.18, 20.10.18+incompatible

Steps:
1. Search this machine and project for github.com/docker/docker (Go), moby: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-36109 being exploited?

There is no confirmed exploitation: CVE-2022-36109 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.09% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-36109?

Medium: CVSS 5.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-36109?

github.com/docker/docker \< 20.10.18.

### Is there a fix for CVE-2022-36109?

Yes. Fixed in 20.10.18, 20.10.18+incompatible. Upgrade github.com/docker/docker to one of 20.10.18, 20.10.18+incompatible (or later in the same release line).

### How do I check if I'm affected by CVE-2022-36109?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RQQ4E3JBXVR3VK5FIZVJ3QS2TAOOXXTQ/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O7JL2QA3RB732MLJ3RMUXB3IB7AA22YU/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-36109>
- patch: <https://github.com/moby/moby/commit/de7af816e76a7fd3fbf06bffa6832959289fba32>
- other: <https://github.com/moby/moby/releases/tag/v20.10.18>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O7JL2QA3RB732MLJ3RMUXB3IB7AA22YU>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RQQ4E3JBXVR3VK5FIZVJ3QS2TAOOXXTQ>
- other: <https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation>
- other: <https://github.com/moby/moby>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O7JL2QA3RB732MLJ3RMUXB3IB7AA22YU>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RQQ4E3JBXVR3VK5FIZVJ3QS2TAOOXXTQ>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-36109>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rc4r-wh2q-q6c4> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-0985> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-36109> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-36109>
