🛡️ CVE-2022-2990 — buildah
Description
Unauthorized file access in github.com/containers/buildah
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.
How this vulnerability can be exploited
This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability none.
Affected software
CVE-2022-2990 is recorded against 4 packages.
- buildah (fixed in 1.27.1)
- enterprise-linux
- github.com/containers/buildah
- openshift-container-platform
Timeline and source
Published on 13 September 2022 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from NVD.
References
bugzilla.redhat.com
www.benthamsgaze.org
bugzilla.redhat.com
www.benthamsgaze.org
CVE-2022-2990 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| buildah | — | 1.27.1 |
| enterprise-linux | — | — |
| github.com/containers/buildah | — | — |
| openshift-container-platform | — | — |
References
Similar Threats
- Unknown ALSA-2023:6938
- Unknown ALSA-2023:6473
- Unknown ALSA-2023:2758
- Unknown ALSA-2023:2802
- Unknown ALSA-2023:2253
Exploit Protection
Are you running buildah?
CVE-2022-2990 carries CVSS 8.0 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2022-2990 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.