Skip to content
Fencer Vulns
medium 6.8

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

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 buildah
    affected: 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-tests
    affected: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: 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-tests
    not 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

Sources

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.