---
id: CVE-2022-27651
aliases:
  - GHSA-c3g4-w6cv-6v7h
  - GO-2022-0417
title: Non-empty default inheritable capabilities for linux container in Buildah
summary: Non-empty default inheritable capabilities for linux container in Buildah
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'
vendor: containers
product: github.com/containers/buildah
ecosystem: go
affected:
  - github.com/containers/buildah < 1.25.0
patched:
  - github.com/containers/buildah 1.25.0
published: '2022-04-01'
updated: '2026-07-08'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-c3g4-w6cv-6v7h'
references:
  - url: >-
      https://github.com/containers/buildah/security/advisories/GHSA-c3g4-w6cv-6v7h
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-27651'
  - url: 'https://github.com/containers/buildah/pull/3855'
  - url: >-
      https://github.com/containers/buildah/commit/90b3254c7404039c1c786999ac189654228f6e0e
  - url: >-
      https://github.com/containers/buildah/commit/e7e55c988c05dd74005184ceb64f097a0cfe645b
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2066840'
  - url: 'https://github.com/containers/buildah'
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ
  - url: 'https://pkg.go.dev/vuln/GO-2022-0417'
tags:
  - osv
  - go
epss: 0.01255
epssPercentile: 0.68196
ingestedAt: '2026-07-09T18:56:36.306Z'
---

## Overview

A bug was found in Buildah where containers were created with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2).

This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set.


## Affected packages

- `github.com/containers/buildah < 1.25.0`

## Remediation

Upgrade to a patched release:

- `github.com/containers/buildah 1.25.0`
