# CVE-2022-27651: Non-empty default inheritable capabilities for linux container in Buildah

- Severity: Medium 6.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Published: 2022-04-01T13:56:42.000Z
- Modified: 2026-09-10T03:49:18.981Z
- Also known as: GHSA-c3g4-w6cv-6v7h, GO-2022-0417
- Related: CGA-92xm-329h-8g38
- Weaknesses: CWE-276
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- buildah: Affects buildah v1.24.0 and prior, Fixed in - v1.25.0
- github.com/containers/buildah (Go): before 1.25.0
- buildah_project buildah: before 1.25.0
- fedoraproject fedora: 34; 35; 36
- redhat enterprise_linux: 7.0; 8.0

## Every score

- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 4.9 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2066840> (issue-tracking, third-party-advisory, web)
- <https://github.com/containers/buildah/security/advisories/GHSA-c3g4-w6cv-6v7h> (third-party-advisory, web)
- <https://github.com/containers/buildah/commit/e7e55c988c05dd74005184ceb64f097a0cfe645b> (fix, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-27651> (advisory)
- <https://github.com/containers/buildah/pull/3855> (web)
- <https://github.com/containers/buildah/commit/90b3254c7404039c1c786999ac189654228f6e0e> (web)
- <https://github.com/containers/buildah> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ> (web)
- <https://pkg.go.dev/vuln/GO-2022-0417> (web)

## Sources

- CVE List: [CVE-2022-27651](https://www.cve.org/CVERecord?id=CVE-2022-27651), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-c3g4-w6cv-6v7h](https://github.com/advisories/GHSA-c3g4-w6cv-6v7h), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0417](https://pkg.go.dev/vuln/GO-2022-0417), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2022-27651](https://nvd.nist.gov/vuln/detail/CVE-2022-27651), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-27651 · Whole record: https://cve.day/CVE-2022-27651.json · Rebuilt by cve.day 2026-11-25T22:58:10.410Z
