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 package | Versions | Reported by |
|---|---|---|
| buildah | Affects buildah v1.24.0 and prior, Fixed in - v1.25.0 | CVE List |
| github.com/containers/buildah (Go) | before 1.25.0 | GitHub Advisory Database, Go Vulnerability Database |
| buildah_project buildah | before 1.25.0 | NVD |
| fedoraproject fedora | 34, 35, 36 | NVD |
| redhat enterprise_linux | 7.0, 8.0 | NVD |
All scores
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 4.9medium CVSS:2.0 | AV: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
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-27651 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c3g4-w6cv-6v7h changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0417 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2022-27651 changed 2026-06-17 | Public domain |