CVE-2022-24769
Default inheritable capabilities for linux container should be empty
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
Moby is an open-source project created by Docker to enable and accelerate software containerization. A bug was found in Moby (Docker Engine) prior to version 20.10.14 where containers were incorrectly started with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during `execve(2)`. Normally, when executable programs have specified permitted file capabilities, otherwise unprivileged users and processes can execute those programs and gain the specified file capabilities up to the bounding set. Due to this bug, containers which included executable programs with inheritable file capabilities allowed otherwise unprivileged users and processes to additionally gain these inheritable file capabilities up to the container's bounding set. Containers which use Linux users and groups to perform privilege separation inside the container are most directly impacted. This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set. This bug has been fixed in Moby (Docker Engine) 20.10.14. Running containers should be stopped, deleted, and recreated for the inheritable capabilities to be reset. This fix changes Moby (Docker Engine) behavior such that containers are started with a more typical Linux environment. As a workaround, the entry point of a container can be modified to use a utility like `capsh(1)` to drop inheritable capabilities prior to the primary process starting.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.9 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVDNVD · Modified | 3.1 | Medium5.9 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
- EPSS (exploitation in 30 days)
- 0.49% · top 58% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.9.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/docker/dockerGHSA-2mm7-x5h6-5pvq (opens in a new tab)
- Gogithub.com/moby/mobyGHSA-2mm7-x5h6-5pvq (opens in a new tab)
References (12)
- https://github.com/moby/moby/security/advisories/GHSA-2mm7-x5h6-5pvq (opens in a new tab)x_transferred
- https://github.com/moby/moby/commit/2bbc786e4c59761d722d2d1518cd0a32829bc07f (opens in a new tab)x_transferred
- https://github.com/moby/moby/releases/tag/v20.10.14 (opens in a new tab)x_transferred
- FEDORA-2022-e9a09c1a7d (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-ed53f2439a (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-c07546070d (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-cac2323802 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-eda0049dd7 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-3826c8f549 (opens in a new tab)vendor-advisoryx_transferred
- [oss-security] 20220512 CVE-2022-29162: runc < 1.1.2 incorrect handling of inheritable capabilities in default configuration (opens in a new tab)mailing-listx_transferred
- DSA-5162 (opens in a new tab)vendor-advisoryx_transferred
- GLSA-202401-31 (opens in a new tab)vendor-advisoryx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-2mm7-x5h6-5pvq (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-24769)Record last updated .