CVE-2022-27651
JSON

6.8medium

Non-empty default inheritable capabilities for linux container in Buildah

Severity
6.8medium CVSS:3.1 by NVD
Exploit likelihood
1.26% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-c3g4-w6cv-6v7hGO-2022-0417

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

Product or packageVersionsReported by
buildahAffects buildah v1.24.0 and prior, Fixed in - v1.25.0CVE List
github.com/containers/buildah (Go)before 1.25.0GitHub Advisory Database, Go Vulnerability Database
buildah_project buildahbefore 1.25.0NVD
fedoraproject fedora34, 35, 36NVD
redhat enterprise_linux7.0, 8.0NVD

All scores

GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD4.9medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

Go Vulnerability Database

Containers are created with non-empty inheritable Linux process capabilities, permitting programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2).

This bug does not affect the container security sandbox, as the inheritable set never contains more capabilities than are included in the container's bounding set.

NVD (es)

Se ha encontrado un fallo en buildah por el que los contenedores eran iniciados incorrectamente con permisos por defecto no vacíos. Se ha encontrado un bug en Moby (Docker Engine) donde los contenedores eran iniciados incorrectamente con capacidades de proceso Linux heredables no vacías, permitiendo a un atacante con acceso a programas con capacidades de archivo heredables elevar esas capacidades al conjunto permitido cuando execve(2) se ejecuta. Esto presenta el potencial de afectar la confidencialidad e integridad

References

https://bugzilla.redhat.com/show_bug.cgi?id=2066840issue-tracking, third-party-advisory, web
https://github.com/containers/buildah/security/advisories/GHSA-c3g4-w6cv-6v7hthird-party-advisory, web
https://github.com/containers/buildah/commit/e7e55c988c05dd74005184ceb64f097a0cfe645bfix, 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-27651advisory
https://github.com/containers/buildah/pull/3855web
https://github.com/containers/buildah/commit/90b3254c7404039c1c786999ac189654228f6e0eweb
https://github.com/containers/buildahpackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIOweb

Related

Sources

SourceRecordLicence
CVE ListCVE-2022-27651 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-c3g4-w6cv-6v7h changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0417 changed 2026-02-04CC-BY-4.0
NVDCVE-2022-27651 changed 2026-06-17Public domain