NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
MEDIUM severity

CVE-2022-27651 — buildah

MEDIUMFix: containers/buildah@e7e55c9

CVE-2022-27651 is a medium-severity (CVSS 6.8) Incorrect Default Permissions vulnerability in github.com/containers/buildah. A fix is available for github.com/containers/buildah — see the affected versions and patch details below.

Non-empty default inheritable capabilities for linux container in Buildah

Also known asGHSA-c3g4-w6cv-6v7hGO-2022-0417
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 6, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs70th percentile — riskier than 70% of all scored CVEsHighest risk
0.00%0.58%1.17%1.75%0.2%1.3%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
🐹github.com/containers/buildah

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

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

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/containers/buildahall versions1.25.0go get github.com/containers/buildah@v1.25.0

Affected Products

3 products · 6 configurations
Application
buildahbuildah_project
< 1.25.0
range
OS
fedorafedoraproject
3 versions
343536
OS
enterprise linuxredhat
2 versions
7.08.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/containers/buildah, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update github.com/containers/buildah to 1.25.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-27651 is resolved across your whole dependency graph.

  3. Workarounds

    Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

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.

Workaround published by Red Hat
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.
Source: Red Hat security advisory for CVE-2022-27651 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat Enterprise Linux 8container-tools:3.0-8050020220411083214.e34216c9RHSA-2022:1565
Red Hat Enterprise Linux 8container-tools:2.0-8050020220411114323.e34216c9RHSA-2022:1566
Red Hat Enterprise Linux 8container-tools:rhel8-8060020220401155929.2e213529RHSA-2022:1762
Red Hat Enterprise Linux 8.2 Extended Update Supportcontainer-tools:2.0-8020020220420173758.28c38760RHSA-2022:4651
Red Hat Enterprise Linux 8.4 Extended Update Supportcontainer-tools:2.0-8040020220411112506.c0c392d5RHSA-2022:1407
Red Hat Enterprise Linux 8.4 Extended Update Supportcontainer-tools:3.0-8040020220419093313.c0c392d5RHSA-2022:4816

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2022-27651 in your dependencies?

Find it across Go, including transitive dependencies.

CVE-2022-27651: buildah — Fixed in 1.25.0