Vulnerability GHSA-5vpc-35f4-r8w6

High Risk
HIGH RISK
CVSS Score: 8.6
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
1 year ago
January 21, 2025 at 09:22 PM UTC
Buildah allows build breakout using malicious Containerfiles and concurrent builds
v0.16.0 - v1.33.11 and v1.35.0 - v1.35.4 and v1.37.0 - v1.37.5 and v1.38.0
v0.16.0 - v1.33.11 and v1.35.0 - v1.35.4 and v1.37.0 - v1.37.5 and v1.38.0

Summary

Buildah allows build breakout using malicious Containerfiles and concurrent builds

Details

Impact

With careful use of the --mount flag in RUN instructions in Containerfiles, and by using either multi-stage builds with use of concurrently-executing build stages (e.g., using the --jobs CLI flag) or multiple separate but concurrently-executing builds, a malicious Containerfile can be used to expose content from the build host to the command being run using the RUN instruction. This can be used to read or write contents using the privileges of the process which is performing the build. When that process is a root-owned podman system service which is provided for use by unprivileged users, this includes the ability to read and write contents which the client should not be allowed to read and write, including setuid executables in locations where they can be later accessed by unprivileged users.

Patches

Patches have been merged to the main branch, and will be added to upcoming releases on the release-1.38, release-1.37, release-1.35, and release-1.33 branches.

This addressed a number of Jira cards, but primarily https://issues.redhat.com/browse/RHEL-67616 and https://issues.redhat.com/browse/RHEL-67618, which were then vendored into Podman and backported into olde rbranches.

Workarounds

Mandatory access controls should limit the access of the process performing the build, on systems where they are enabled.

References

Timeline

Published
1 year ago
January 21, 2025 at 09:22 PM UTC
Fixed (v1.38.1)
1 year ago
January 20, 2025 at 06:22 PM UTC
Fixed (v1.33.12)
1 year ago
January 21, 2025 at 03:34 PM UTC
Fixed (v1.37.6)
1 year ago
January 22, 2025 at 06:03 PM UTC
Fixed (v1.35.5)
1 year ago
January 24, 2025 at 11:34 AM UTC
Last Modified
1 month ago
September 10, 2026 at 03:50 AM UTC