CVE Database›CVE-2022-27651

CVE-2022-27651

buildah: Default inheritable capabilities for linux container should be empty

Loading…

Severity

Moderate

Red Hat Product Security

4.8

CVSS 3.1

Review impact separately from score.

Published · March 30, 2022

Updated · November 22, 2025

Description

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. 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.

Statement

This issue is related to the general vulnerability found in Moby (Docker Engine), which has been assigned CVE-2022-24769.

The impact for OpenShift Container Platform is set to LOW as Buildah was shipped but is not being used. No update is planned at this time.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

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.

CVSS / CWE

CVSS 3.1 · 4.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

CWE-276 · Incorrect Default Permissions