PT-2022-19901 · Moby+11 · Moby+11

Steven J. Murdoch

·

Published

2022-08-22

·

Updated

2025-01-17

·

CVE-2022-2990

CVSS v3.1

7.1

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions Buildah versions prior to 20.10.18 CRI-O versions prior to 20.10.18 Docker versions prior to 20.10.18 Moby (Docker Engine) versions prior to 20.10.18 Podman versions prior to 20.10.18
Description The issue arises from an incorrect handling of supplementary groups in various container engines, including Buildah, CRI-O, Docker, Moby, and Podman. This might lead to sensitive information disclosure or possible data modification if an attacker has direct access to the affected container and is able to execute binary code within it. The problem occurs when supplementary groups are not set up properly, allowing attackers to bypass primary group restrictions in some cases and potentially escalate privileges within the container. For instance, SGID programs executed in a container can access files with negative group permissions for the user's primary group, due to the container engine's failure to correctly add the primary group to the supplementary groups.
Recommendations For Buildah versions prior to 20.10.18: Update to version 20.10.18 or later. For CRI-O versions prior to 20.10.18: Update to version 20.10.18 or later. For Docker versions prior to 20.10.18: Update to version 20.10.18 or later, and consider stopping and restarting running containers for the permissions to be fixed. As a temporary workaround, avoid using the "USER $USERNAME" Dockerfile instruction; instead, use ENTRYPOINT ["su", "-", "user"] to set up supplementary groups properly. For Moby (Docker Engine) versions prior to 20.10.18: Update to version 20.10.18 or later. For Podman versions prior to 20.10.18: Update to version 20.10.18 or later.

Exploit

Fix

Incorrect Permission

Improper Privilege Management

Incorrect Authorization

Improper Access Control

Found an issue in the description? Have something to add? Feel free to write us 👾

Related Identifiers

ALSA-2022:7822
ALSA-2022:8008
ALSA-2022:8431
ALT-PU-2022-2674
ALT-PU-2023-7894
ALT-PU-2024-7024
AZL-10960
AZL-36935
CESA-2022_7457
CESA-2022_7822
CVE-2022-2990
GHSA-4WJJ-JWC9-2X96
GHSA-FJM8-M7M6-2FJP
GHSA-HMFX-3PCX-653P
GHSA-PHJR-8J92-W5V7
GHSA-RC4R-WH2Q-Q6C4
GO-2022-0985
GO-2022-1008
GO-2022-1014
GO-2023-1574
MGASA-2023-0213
OESA-2025-1059
OPENSUSE-SU-2022_3655-1
OPENSUSE-SU-2022_3766-1
OPENSUSE-SU-2022_4349-1
OPENSUSE-SU-2022_4350-1
OPENSUSE-SU-2024:12289-1
RHSA-2022:7457
RHSA-2022:7822
RHSA-2022:8008
RHSA-2022:8431
RHSA-2022_7457
RHSA-2022_7822
RHSA-2022_8008
RHSA-2022_8431
RHSA-2023:1325
RLSA-2022:7457
RLSA-2022:7822
ROSA-SA-2023-2227
SUSE-SU-2022:3655-1
SUSE-SU-2022:3766-1
SUSE-SU-2022:4349-1
SUSE-SU-2022:4350-1
SUSE-SU-2023:4099-1
SUSE-SU-2023_4099-1

Affected Products

Alt Linux
Almalinux
Buildah
Cri-O
Centos
Debian
Docker
Moby
Podman
Red Hat
Rocky Linux
Suse