CVE-2022-27651 json
Non-empty default inheritable capabilities for linux container in Buildah
published 2022-04-01 4 y ago modified 2026-09-10 1 mo ago also GHSA-c3g4-w6cv-6v7h , GO-2022-0417 , EUVD-2022-1700
- cvss
- 6.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
A flaw was found in buildah where containers were incorrectly started with non-empty default permissions. A bug was found in Moby (Docker Engine) where containers were incorrectly started with non-empty inheritable Linux process capabilities, enabling an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs. This has the potential to impact confidentiality and integrity.
Patch / fix
- go github.com/containers/buildah 1.25.0
- buildah_project buildah 1.25.0
- golang-github-containers-buildah Debian 14, Debian 13, Debian 12 1.28.0+ds1-2
debian advisories DEBIAN-CVE-2022-27651
- crit RHEL 8 3.15-3.module+el8.6.0+14673+621cb8be
- criu RHEL 8 3.15-3.module+el8.6.0+14673+621cb8be
- crun RHEL 8 1.4.4-1.module+el8.6.0+14673+621cb8be
- runc RHEL 8 1:1.0.3-2.module+el8.6.0+14673+621cb8be
- udica RHEL 8 0.2.6-2.module+el8.6.0+14673+621cb8be
- conmon RHEL 8 2:2.1.0-1.module+el8.6.0+14673+621cb8be
- podman RHEL 8 2:4.0.2-6.module+el8.6.0+14673+621cb8be
- skopeo RHEL 8 2:1.6.1-2.module+el8.6.0+14673+621cb8be
red hat advisories RHSA-2022:1762RHSA-2022:4816RHSA-2022:1566RHSA-2022:1565RHSA-2022:4651RHSA-2022:1407
- buildah SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES 15 SP2-LTSS +12 more 1.25.1-150100.3.13.12
- buildah SLE Module for Containers 15 SP4, openSUSE Leap 15.4 1.25.1-150400.3.3.28
- buildah SLE Module for Containers 15 SP3, openSUSE Leap 15.3 1.25.1-150300.8.6.1
suse advisories SUSE-SU-2022:3480-1SUSE-SU-2022:2680-1SUSE-SU-2022:1437-1
- buildah openSUSE Tumbleweed 1.25.1-1.1
opensuse advisories openSUSE-SU-2024:11964-1
- crit AlmaLinux 8 3.15-3.module_el8.6.0+2751+06427ca3
- crit AlmaLinux 8 3.15-3.module_el8.6.0+2877+8e437bf5
- criu AlmaLinux 8 3.15-3.module_el8.6.0+2877+8e437bf5
- criu AlmaLinux 8 3.15-3.module_el8.6.0+2751+06427ca3
- crun AlmaLinux 8 1.4.4-1.module_el8.6.0+2877+8e437bf5
- runc AlmaLinux 8 1:1.0.3-2.module_el8.6.0+2878+e681bc44
- udica AlmaLinux 8 0.2.6-2.module_el8.6.0+2877+8e437bf5
- conmon AlmaLinux 8 2:2.1.0-1.module_el8.6.0+2877+8e437bf5
almalinux advisories ALSA-2022:1762ALSA-2022:1566ALSA-2022:1565
- criu Rocky Linux 8 3.15-3.module+el8.7.0+1077+0e4f03d4
- criu Rocky Linux 8 3.15-3.module+el8.5.0+710+4c471e88
- criu Rocky Linux 8 3.15-3.module+el8.6.0+1054+50b00ff4
- crun Rocky Linux 8 1.4.4-1.module+el8.6.0+784+32aef5de
- runc Rocky Linux 8 1:1.0.3-2.module+el8.6.0+785+d1251653
- udica Rocky Linux 8 0.2.6-2.module+el8.6.0+784+32aef5de
- conmon Rocky Linux 8 2:2.1.0-1.module+el8.6.0+784+32aef5de
- podman Rocky Linux 8 2:4.0.2-6.module+el8.6.0+785+d1251653
rocky linux advisories RLSA-2022:1762RLSA-2022:1566RLSA-2022:1565
- buildah Alpine 3.15 1.23.4-r0
alpine advisories ALPINE-CVE-2022-27651
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- buildah CBL-Mariner 2.0 1.18.0-8
- buildah Azure Linux 3.0 1.41.4-2
- cri-o CBL-Mariner 2.0 1.21.7-2
azure linux advisories AZL-11513AZL-36934AZL-39870
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- github.com/containers/buildah@e7e55c9 commit
- github.com/containers/buildah@90b3254 commit
- github.com/containers/buildah#3855 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-27651 updated cvss 4.8
buildah: Default inheritable capabilities for linux container should be empty
-
Red Hat Enterprise Linux 7 buildahaffected: workaround, no fix available “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.”
-
Red Hat OpenShift Container Platform 4 buildah, buildah-testsaffected: workaround, no fix planned “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.”
-
Red Hat Enterprise Linux AppStream (v. 8) crit 3.12-9.module+el8.5.0+14796+e4386a39, crit 3.15-1.module+el8.5.0+14784+8c48f0fc, crit 3.15-3.module+el8.6.0+14673+621cb8be, criu 3.12-9.module+el8.5.0+14796+e4386a39, criu 3.15-1.module+el8.5.0+14784+8c48f0fc, criu 3.15-3.module+el8.6.0+14673+621cb8be, +76 morefixed: vendor fix “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.” RHSA-2022:1566
-
Red Hat Enterprise Linux AppStream EUS (v. 8.2) crit 3.12-9.module+el8.2.0+14896+bf621b2a, criu 3.12-9.module+el8.2.0+14896+bf621b2a, udica 0.2.1-2.module+el8.2.0+14896+bf621b2a, conmon 2.0.6-1.module+el8.2.0+14896+bf621b2a, podman 1.6.4-24.module+el8.2.0+14896+bf621b2a, skopeo 0.1.40-9.module+el8.2.0+14896+bf621b2a, +16 morefixed: vendor fix “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.” RHSA-2022:4651
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) crit 3.12-9.module+el8.4.0+14792+f44be4c2, crit 3.15-1.module+el8.4.0+14872+9efa52a3, criu 3.12-9.module+el8.4.0+14792+f44be4c2, criu 3.15-1.module+el8.4.0+14872+9efa52a3, crun 0.18-2.module+el8.4.0+14872+9efa52a3, udica 0.2.1-2.module+el8.4.0+14792+f44be4c2, +42 morefixed: vendor fix “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.” RHSA-2022:1407
-
Red Hat Enterprise Linux 8 buildah, buildah-tests Red Hat Enterprise Linux 9 buildah, buildah-testsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.26% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 2.0 | 4.9 | AV:N/AC:M/Au:S/C:P/I:P/A:N |
| GitHub | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/containers/buildah | <1.25.0 |
1.25.0 |
Affected products
- n/a buildah
Classification
- Weakness
-
- CWE-276 Incorrect Default Permissions
References
-
github.com
/containers/buildah/commit/e7e55c988c05dd74005184ceb64f097a0cfe645b
web, patch, third-party-advisory
-
github.com
/containers/buildah/pull/3855
web
-
github.com
/containers/buildah/commit/90b3254c7404039c1c786999ac189654228f6e0e
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52/
vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2066840
web, issue-tracking, third-party-advisory
-
github.com
/containers/buildah/security/advisories/GHSA-c3g4-w6cv-6v7h
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-27651
advisory
-
github.com
/containers/buildah
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ
web
-
pkg.go.dev
/vuln/GO-2022-0417
web
Sources
- CVE List CVE-2022-27651
- GitHub Advisory GHSA-c3g4-w6cv-6v7h
- NVD CVE-2022-27651
- OSV GO-2022-0417
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.