Skip to content
OpenAdvisories
Critical · 9.1 CVE-2024-7387 EUVD-2024-2857GHSA-qqv8-ph7f-h3f7GO-2024-3129

Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy

Published Sep 16, 2024 · Updated Aug 11, 2026 · Assigned by redhat

Description

A flaw was found in openshift/builder. This vulnerability allows command injection via path traversal, where a malicious user can execute arbitrary commands on the OpenShift node running the builder container. When using the “Docker” strategy, executable files inside the privileged build container can be overridden using the `spec.source.secrets.secret.destinationDir` attribute of the `BuildConfig` definition. An attacker running code in a privileged container could escalate their permissions on the node running the container.

Affected products

VendorProductAffectedFixed
— openshift/builder — —
Red Hat Red Hat OpenShift Container Platform 4.12 — —
Red Hat Red Hat OpenShift Container Platform 4.13 — —
Red Hat Red Hat OpenShift Container Platform 4.14 — —
Red Hat Red Hat OpenShift Container Platform 4.15 — —
Red Hat Red Hat OpenShift Container Platform 4.16 — —
Red Hat Red Hat OpenShift Container Platform 4.17 — —
Red Hat Red Hat OpenShift Container Platform 4.18 — —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/openshift/builder <= 4.0.0 — GHSA-qqv8-ph7f-h3f7
Go github.com/openshift/builder all versions — GO-2024-3129

Advisories 1

References