CVE-2022-2989: Podman's incorrect handling of the supplementary groups may lead to data disclosure, modification
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.10509%
CWE
Published
9/14/2022
Updated
2/13/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/containers/podman/v4 | go | < 4.2.0 | 4.2.0 |
| github.com/containers/podman/v3 | go | < 3.0.1 | 3.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incorrect group initialization where the container's primary GID wasn't added to supplementary groups. The fix in commit 5c7f283/d82a416 shows modifications to pkg/specgen/namespaces.go where the primary GID is explicitly added to the additional groups array. This aligns with the CWE-842 (Incorrect Group Assignment) description. The libpod/container_internal_linux.go changes indicate the primary GID handling was flawed in user namespace configuration. These functions directly control group membership initialization, and their failure to duplicate the primary GID in supplementary groups matches the vulnerability's technical description of allowing privilege escalation through group dropping.