Advisory

GHSA-fhqq-8f65-5xfc

Also known as: CVE-2024-9407, GO-2024-3169

Summary

Improper Input Validation in Buildah and Podman

Details

A vulnerability exists in the bind-propagation option of the Dockerfile RUN --mount instruction. The system does not properly validate the input passed to this option, allowing users to pass arbitrary parameters to the mount instruction. This issue can be exploited to mount sensitive directories from the host into a container during the build process and, in some cases, modify the contents of those mounted files. Even if SELinux is used, this vulnerability can bypass its protection by allowing the source directory to be relabeled to give the container access to host files.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-01 21:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/containers/buildah

Go · All systems

Affected

  • introduced 0, fixed 1.37.4 (semver)

Fixed versions

1.37.4

Fix

github.com/containers/podman/v5

Go · All systems

Affected

  • introduced 0, fixed 5.2.4 (semver)

Fixed versions

5.2.4

Fix

github.com/containers/podman

Go · All systems

Affected

  • introduced 0, fixed 5.2.4 (semver)

Fixed versions

5.2.4

Fix

github.com/containers/podman/v2

Go · All systems

Affected

  • introduced 0, fixed 5.2.4 (semver)

Fixed versions

5.2.4

Fix

github.com/containers/podman/v3

Go · All systems

Affected

  • introduced 0, fixed 5.2.4 (semver)

Fixed versions

5.2.4

Fix

github.com/containers/podman/v4

Go · All systems

Affected

  • introduced 0, fixed 5.2.4 (semver)

Fixed versions

5.2.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences