🛡️ CVE-2022-2990 — buildah

🟠 CVSS 8.0 — High ⚠️ Exploit Public CWE-842 NVD
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

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

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CWE CWE-842
Public Exploit ⚠️ Yes
Source NVD
Published 2022-09-13
Updated 2026-08-12
Modified 2026-06-17

Affected Packages

Software From version Fixed in
buildah 1.27.1
enterprise-linux
github.com/containers/buildah
openshift-container-platform

Similar Threats

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.

Browse related advisories

All advisoriesCVECVE 2022