CVE-2022-2990
JSON

7.1high

Buildah's incorrect handling of the supplementary groups may lead to data disclosure, modification

Severity
7.1high CVSS:3.1 by NVD
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-fjm8-m7m6-2fjpGO-2022-1008

Description

An incorrect handling of the supplementary groups in the Buildah container engine might lead to the sensitive information disclosure or possible data modification if an attacker has direct access to the affected container where supplementary groups are used to set access permissions and is able to execute a binary code in that container.

Affected

Product or packageVersionsReported by
buildahno fixed version knownCVE List
github.com/containers/buildah (Go)before 1.27.1GitHub Advisory Database, Go Vulnerability Database
buildah_project buildahbefore 1.27.1NVD
redhat openshift_container_platform4.0NVD
redhat enterprise_linux7.0, 8.0, 9.0NVD

All scores

GitHub7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Classification

What each source says

CVE List

An incorrect handling of the supplementary groups in the Buildah container engine might lead to the sensitive information disclosure or possible data modification if an attacker has direct access to the affected container where supplementary groups are used to set access permissions and is able to execute a binary code in that container.

Go Vulnerability Database

SGID programs executed in a container can access files that have negative group permissions for the user's primary group.

Consider a file which is owned by user u1 and group g1, permits user and other read access, and does NOT permit group read access. This file is readable by u1 and all other users except for ones in group g1.

A program with the set-group-ID (SGID) bit set assumes the primary group of the program's group when it executes.

A user with the primary group g1 who executes an SGID program owned by group g2 should not be able to access the file described above. While the program executes with the primary group g2, the group g1 should remain in its supplementary groups, blocking access to the file.

Buildah does not correctly add g1 to the supplementary groups in this scenario, permitting unauthorized access.

NVD (es)

Un manejo incorrecto de los grupos suplementarios en el motor de contenedores de Buildah podría conllevar a una divulgación de información confidencial o una posible modificación de datos si un atacante presenta acceso directo al contenedor afectado donde son usados los grupos suplementarios para establecer los permisos de acceso y es capaz de ejecutar un código binario en ese contenedor

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2022-2990 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-fjm8-m7m6-2fjp changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2022-1008 changed 2026-02-04CC-BY-4.0
NVDCVE-2022-2990 changed 2026-06-17Public domain