LowGO-2022-1008CVE-2022-2990GHSA-fjm8-m7m6-2fjp

Unauthorized file access in github.com/containers/buildah

Published 21 Sept 2022 · Updated 4 Feb 2026

Is your project on an affected github.com/containers/buildah?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<1.27.1
Fixed in
1.27.1
Update to the fixed version for your release line, for example:go get github.com/containers/buildah@v1.27.1

Details

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.

Is GO-2022-1008 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/containers/buildah, and gives you the command that fixes it.

More advisories for github.com/containers/buildah

  • LowCVE-2026-44517Build breakout using malicious Containerfile or Git HTTP server in github.com/containers/buildah · 27 Jul 2026
  • MediumCVE-2026-44517Build breakout using malicious Containerfile and Git Smart HTTP server or GitHub release tar archive · 22 Jun 2026
  • LowCVE-2024-11218Buildah allows build breakout using malicious Containerfiles and concurrent builds in github.com/containers/buildah · 28 Jan 2025
  • HighCVE-2024-11218Buildah allows build breakout using malicious Containerfiles and concurrent builds · 21 Jan 2025
  • LowCVE-2024-9675Buildah allows arbitrary directory mount in github.com/containers/buildah · 11 Oct 2024
  • LowCVE-2024-9407Improper Input Validation in Buildah and Podman in github.com/containers/buildah · 9 Oct 2024
All 17 advisories for github.com/containers/buildah

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.