CVE-2022-27652
Incorrect Default Permissions in CRI-O
A flaw was found in cri-o, where containers were incorrectly started with non-empty default permissions. A vulnerability was found in Moby (Docker Engine) where containers started incorrectly with non-empty inheritable Linux process capabilities. This flaw allows an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
NVD Score used
5.3
A flaw was found in cri-o, where containers were incorrectly started with non-empty default permissions. A vulnerability was found in Moby (Docker Engine) where containers started incorrectly with non-empty inheritable Linux process capabilities. This flaw allows an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs.
- Record
CVE-2022-27652- 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 - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-276
- Updated
- 2026-11-02
CVE List No score
A flaw was found in cri-o, where containers were incorrectly started with non-empty default permissions. A vulnerability was found in Moby (Docker Engine) where containers started incorrectly with non-empty inheritable Linux process capabilities. This flaw allows an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs.
- Record
CVE-2022-27652- Weakness
- CWE-276
- Updated
- 2026-11-02
EUVDEUVD-2022-1621 No score
A flaw was found in cri-o, where containers were incorrectly started with non-empty default permissions. A vulnerability was found in Moby (Docker Engine) where containers started incorrectly with non-empty inheritable Linux process capabilities. This flaw allows an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs.
- Record
EUVD-2022-1621- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4hj2-r2pm-3hc6
4.8
Incorrect Default Permissions in CRI-O
Impact
A bug was found in CRI-O 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.
Patches
This bug will been fixed in the following versions of CRI-O:
- v1.24.0
Users should update to the version corresponding to their minor release as soon as possible. Running containers should be stopped, deleted, and recreated for the inheritable capabilities to be reset.
This fix changes CRI-O behavior such that containers are started with a more typical Linux environment. Refer to capabilities(7) for a description of how capabilities work. Note that permitted file capabilities continue to allow for privileges to be raised up to the container's bounding set and that processes may add capabilities to their own inheritable set up to the container's bounding set per the rules described in the manual page. In all cases the container's bounding set provides an upper bound on the capabilities that can be assumed and provides for the container security sandbox.
Workarounds
The entrypoint of a container can be modified to use a utility like capsh(1) to drop inheritable capabilities prior to the primary process starting.
Credits
CRI-O would like to thank Andrew G. Morgan for responsibly disclosing this issue, as well as the Moby (Docker Engine) project for working with the other container engines in coordinating a fix.
For more information
If you have any questions or comments about this advisory:
- Open an issue
- Email us at [email protected] if you think you’ve found a security bug
https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L 4.8/Medium
|Metric |Value |Comments | |--- |--- |--- | |Attack Vector (AV) |Local |An attacker requires local control to launch a container with files that have inheritable capabilities. | |Attack Complexity (AC) |Low |Modifying a file to have inheritable capabilities is not difficult. | |Privileges Required (PR) |Low |An attacker requires enough privilege to cause a container to be launched with a compromised image. Moby's API is typically bound to a local Unix domain socket and requires calls to be made from a process that is either UID 0 or present in the configured group. | |User Interaction (UI) |Required |An attacker must cause the compromised image to be run. | |Scope (S) |Unchanged |The container boundary set by Moby, including the bounding capability set, is not modified. A successful attack gains access to privileges and resources within the boundary, not outside of it. | |Confidentiality (C) |Low |An attacker may gain access to some confidential information through elevation of CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FOWNER, CAP_SETFCAP, or CAP_SETPCAP, but the exposed information is limited to that which is already inside the container. | |Integrity (I) |Low |An attacker may be able to tamper with data inside the container through…
- Record
GHSA-4hj2-r2pm-3hc6- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVGHSA-4hj2-r2pm-3hc6
4.8
Incorrect Default Permissions in CRI-O
Impact
A bug was found in CRI-O 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.
Patches
This bug will been fixed in the following versions of CRI-O:
- v1.24.0
Users should update to the version corresponding to their minor release as soon as possible. Running containers should be stopped, deleted, and recreated for the inheritable capabilities to be reset.
This fix changes CRI-O behavior such that containers are started with a more typical Linux environment. Refer to capabilities(7) for a description of how capabilities work. Note that permitted file capabilities continue to allow for privileges to be raised up to the container's bounding set and that processes may add capabilities to their own inheritable set up to the container's bounding set per the rules described in the manual page. In all cases the container's bounding set provides an upper bound on the capabilities that can be assumed and provides for the container security sandbox.
Workarounds
The entrypoint of a container can be modified to use a utility like capsh(1) to drop inheritable capabilities prior to the primary process starting.
Credits
CRI-O would like to thank Andrew G. Morgan for responsibly disclosing this issue, as well as the Moby (Docker Engine) project for working with the other container engines in coordinating a fix.
For more information
If you have any questions or comments about this advisory:
- Open an issue
- Email us at [email protected] if you think you’ve found a security bug
https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L 4.8/Medium
|Metric |Value |Comments | |--- |--- |--- | |Attack Vector (AV) |Local |An attacker requires local control to launch a container with files that have inheritable capabilities. | |Attack Complexity (AC) |Low |Modifying a file to have inheritable capabilities is not difficult. | |Privileges Required (PR) |Low |An attacker requires enough privilege to cause a container to be launched with a compromised image. Moby's API is typically bound to a local Unix domain socket and requires calls to be made from a process that is either UID 0 or present in the configured group. | |User Interaction (UI) |Required |An attacker must cause the compromised image to be run. | |Scope (S) |Unchanged |The container boundary set by Moby, including the bounding capability set, is not modified. A successful attack gains access to privileges and resources within the boundary, not outside of it. | |Confidentiality (C) |Low |An attacker may gain access to some confidential information through elevation of CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_FOWNER, CAP_SETFCAP, or CAP_SETPCAP, but the exposed information is limited to that which is already inside the container. | |Integrity (I) |Low |An attacker may be able to tamper with data inside the container through…
- Record
GHSA-4hj2-r2pm-3hc6- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVRHBA-2022:5433
4.8
Red Hat Bug Fix Advisory: OpenShift Container Platform 4.9.41 packages update
- Record
RHBA-2022:5433- CVSS 3.1
- 4.8 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRHSA-2022:1600
6.4
Red Hat Security Advisory: OpenShift Container Platform 4.10.12 security update
- Record
RHSA-2022:1600- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSV No score
A flaw was found in cri-o, where containers were incorrectly started with non-empty default permissions. A vulnerability was found in Moby (Docker Engine) where containers started incorrectly with non-empty inheritable Linux process capabilities. This flaw allows an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs.
- Record
CVE-2022-27652- Weakness
- CWE-276
- Updated
- 2026-11-02
OSVGO-2022-0426 No score
Incorrect Default Permissions in CRI-O in github.com/cri-o/cri-o
Incorrect Default Permissions in CRI-O in github.com/cri-o/cri-o
- Record
GO-2022-0426- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/cri-o/cri-oGo |
before 1.24.0 | 1.24.0 |
cri-oRed Hat:openshift:4.9::el7 |
before 0:1.22.5-7.rhaos4.9.git3dbcd3c.el7 | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el7 |
cri-o-debuginfoRed Hat:openshift:4.9::el7 |
before 0:1.22.5-7.rhaos4.9.git3dbcd3c.el7 | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el7 |
cri-oRed Hat:openshift:4.9::el8 |
before 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 |
cri-o-debuginfoRed Hat:openshift:4.9::el8 |
before 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 |
cri-o-debugsourceRed Hat:openshift:4.9::el8 |
before 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 | 0:1.22.5-7.rhaos4.9.git3dbcd3c.el8 |
cri-oRed Hat:openshift:4.10::el8 From an advisory covering 4 CVEs |
before 0:1.23.2-8.rhaos4.10.git8ad5d25.el8 | 0:1.23.2-8.rhaos4.10.git8ad5d25.el8 |
cri-o-debuginfoRed Hat:openshift:4.10::el8 From an advisory covering 4 CVEs |
before 0:1.23.2-8.rhaos4.10.git8ad5d25.el8 | 0:1.23.2-8.rhaos4.10.git8ad5d25.el8 |
cri-o-debugsourceRed Hat:openshift:4.10::el8 From an advisory covering 4 CVEs |
before 0:1.23.2-8.rhaos4.10.git8ad5d25.el8 | 0:1.23.2-8.rhaos4.10.git8ad5d25.el8 |
jenkins-2-pluginsRed Hat:openshift:4.10::el8 From an advisory covering 4 CVEs |
before 0:4.10.1650890594-1.el8 | 0:4.10.1650890594-1.el8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-27652 is a medium vulnerability (CVSS 5.3) in Kubernetes Cri-o, published April 18, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.24%, the 15th percentile. Fixed in github.com/cri-o/cri-o 1.24.0.
References
bugzilla.redhat.com/show_bug.cgi?id=2066839
github.com/cri-o/cri-o/security/advisories/GHSA-4hj2-r2pm-3hc6
nvd.nist.gov/vuln/detail/CVE-2022-27652
github.com/advisories/GHSA-4hj2-r2pm-3hc6
github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27652.json
github.com/cri-o/cri-o
Show 23 moreShow less
access.redhat.com/errata/RHBA-2022:5433
bugzilla.redhat.com/show_bug.cgi?id=2102503
security.access.redhat.com/data/csaf/v2/advisories/2022/rhba-2022_5433.json
access.redhat.com/security/cve/CVE-2022-27652
cve.org/CVERecord?id=CVE-2022-27652
access.redhat.com/errata/RHSA-2022:1600
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2064161
bugzilla.redhat.com/show_bug.cgi?id=2079307
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_1600.json
access.redhat.com/security/cve/CVE-2022-29036
bugzilla.redhat.com/show_bug.cgi?id=2074847
cve.org/CVERecord?id=CVE-2022-29036
nvd.nist.gov/vuln/detail/CVE-2022-29036
jenkins.io/security/advisory/2022-04-12
access.redhat.com/security/cve/CVE-2022-29041
bugzilla.redhat.com/show_bug.cgi?id=2074850
cve.org/CVERecord?id=CVE-2022-29041
nvd.nist.gov/vuln/detail/CVE-2022-29041
access.redhat.com/security/cve/CVE-2022-29046
bugzilla.redhat.com/show_bug.cgi?id=2074851
cve.org/CVERecord?id=CVE-2022-29046
nvd.nist.gov/vuln/detail/CVE-2022-29046
Left out here: the rest of 2 source descriptions. The JSON record has them.