Incorrect default permissions in buildah
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 3 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | buildah | Affects buildah v1.24.0 and prior, Fixed in - v1.25.0 | — | No fix listed | CNA |
| — | github.com/containers/buildah (Go) | before 1.25.0 | 1.25.0 | Patch available | GHSA-c3g4-w6cv-6v7h |
- buildah Vendor— Affected Affects buildah v1.24.0 and prior, Fixed in - v1.25.0 Fixed in — No fix listed CNA
- github.com/containers/buildah (Go) Vendor— Affected before 1.25.0 Fixed in 1.25.0 Patch available GHSA-c3g4-w6cv-6v7h
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* | before 1.25.0 | Vulnerable | Buildah Project |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
- cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:* Versions before 1.25.0 Vulnerable ·Buildah Project
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
Remediation
- Fix · GHSA-c3g4-w6cv-6v7h github.com/containers/buildah (Go) Fixed in 1.25.0 Advisory →
Red Hat 6 advisories
- RHSA-2022:4816 Released 2022-05-31 · Red Hat rating Importantcontainer-tools:3.0 security update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) buildah-1.19.9-1.module+el8.4.0+14872+9efa52a3.aarch64::container-tools:3.0, buildah-1.19.9-1.module+el8.4.0+14872+9efa52a3.ppc64le::container-tools:3.0, buildah-1.19.9-1.module+el8.4.0+14872+9efa52a3.s390x::container-tools:3.0 +47
- RHSA-2022:4651 Released 2022-05-18 · Red Hat rating Importantcontainer-tools:2.0 security update
- Red Hat Enterprise Linux AppStream EUS (v. 8.2) buildah-1.11.6-8.module+el8.2.0+14896+bf621b2a.aarch64::container-tools:2.0, buildah-1.11.6-8.module+el8.2.0+14896+bf621b2a.ppc64le::container-tools:2.0, buildah-1.11.6-8.module+el8.2.0+14896+bf621b2a.s390x::container-tools:2.0 +47
- RHSA-2022:1762 Released 2022-05-10 · Red Hat rating Importantcontainer-tools:rhel8 security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 8) aardvark-dns-2:1.0.1-27.module+el8.6.0+14673+621cb8be.aarch64::container-tools:rhel8, aardvark-dns-2:1.0.1-27.module+el8.6.0+14673+621cb8be.ppc64le::container-tools:rhel8, aardvark-dns-2:1.0.1-27.module+el8.6.0+14673+621cb8be.s390x::container-tools:rhel8 +47
Show 3 more Red Hat advisories
- RHSA-2022:1566 Released 2022-04-26 · Red Hat rating Moderatecontainer-tools:2.0 security update
- Red Hat Enterprise Linux AppStream (v. 8) buildah-1.11.6-10.module+el8.5.0+14796+e4386a39.aarch64::container-tools:2.0, buildah-1.11.6-10.module+el8.5.0+14796+e4386a39.ppc64le::container-tools:2.0, buildah-1.11.6-10.module+el8.5.0+14796+e4386a39.s390x::container-tools:2.0 +47
- RHSA-2022:1565 Released 2022-04-26 · Red Hat rating Moderatecontainer-tools:3.0 security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 8) buildah-1.19.9-2.module+el8.5.0+14784+8c48f0fc.aarch64::container-tools:3.0, buildah-1.19.9-2.module+el8.5.0+14784+8c48f0fc.ppc64le::container-tools:3.0, buildah-1.19.9-2.module+el8.5.0+14784+8c48f0fc.s390x::container-tools:3.0 +47
- RHSA-2022:1407 Released 2022-04-19 · Red Hat rating Moderatecontainer-tools:2.0 security and bug fix update
- Red Hat Enterprise Linux AppStream EUS (v.8.4) buildah-1.11.6-9.module+el8.4.0+14792+f44be4c2.aarch64::container-tools:2.0, buildah-1.11.6-9.module+el8.4.0+14792+f44be4c2.ppc64le::container-tools:2.0, buildah-1.11.6-9.module+el8.4.0+14792+f44be4c2.s390x::container-tools:2.0 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:1565, RHSA-2022:1566, RHSA-2022:1762 |
| Red Hat Enterprise Linux AppStream EUS (v. 8.2) | Fixed | RHSA-2022:4651 |
| Red Hat Enterprise Linux AppStream EUS (v.8.4) | Fixed | RHSA-2022:1407, RHSA-2022:4816 |
Not affected: 2 products
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2022-27651
- 2026-10-03 Alias added: GHSA-c3g4-w6cv-6v7h
References
Advisory 6
Other 7
- https://github.com/containers/buildah/pull/3855
- https://github.com/containers/buildah/commit/90b3254c7404039c1c786999ac189654228f6e0e
- https://github.com/containers/buildah
- https://lists.fedoraproject.org/archives/list/[email protected]/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ
- https://pkg.go.dev/vuln/GO-2022-0417
Sources
- CVE-2022-27651 · CVE Program
- CVE-2022-27651 · NVD
- FIRST EPSS
- GHSA-c3g4-w6cv-6v7h · GitHub Advisory Database · CC BY 4.0
- CVE-2022-27651 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences