Bug 2127290 (CVE-2022-36109) - CVE-2022-36109 moby: supplementary groups mishandling
Summary: CVE-2022-36109 moby: supplementary groups mishandling
Keywords:
Status: NEW
Alias: CVE-2022-36109
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Sayan Biswas
QA Contact:
URL:
Whiteboard:
Depends On: 2127291 2127292 2127293 2127294 2127295 2127296 2127297
Blocks: 2126068
TreeView+ depends on / blocked
 
Reported: 2022-09-15 20:44 UTC by Sage McTaggart
Modified: 2024-04-23 14:13 UTC (History)
22 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Moby. This flaw allows an attacker to bypass primary group restrictions due to a flaw in the supplementary group access setup.
Clone Of:
Environment:
Last Closed:
Embargoed:
amctagga: needinfo+


Attachments (Terms of Use)

Description Sage McTaggart 2022-09-15 20:44:27 UTC
CVE-2022-36109:

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.

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

Comment 1 Sage McTaggart 2022-09-15 20:50:47 UTC
Created golang-github-docker tracking bugs for this issue:

Affects: fedora-35 [bug 2127291]
Affects: fedora-36 [bug 2127292]


Note You need to log in before you can comment on or make changes to this bug.