CVE-2022-2990: Buildah'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.29887%
CWE
Published
9/14/2022
Updated
2/9/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/buildah | go | < 1.27.1 | 1.27.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of supplementary groups in container configuration. The commit diff shows the critical fix was adding 'g.AddProcessAdditionalGid(user.GID)' in configureUIDGID function. Prior to patch, when setting a specific UID:GID, the primary GID wasn't included in additional groups, breaking Linux's expected behavior where primary group should be duplicated in supplementary groups. This allowed setgid binaries to bypass access controls that relied on negative group permissions. The function's responsibility for UID/GID configuration and the explicit patch location confirm its vulnerability.