CVE-2024-7387

published 16 Sep 2024 · updated 11 Aug 2026

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

9.1CriticalCVSS 9.1EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 0b62633adfa2836465202bc851885e078ec888d1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatOpenShift Container Platform
<0b62633adfa2836465202bc851885e078ec888d10b62633adfa2836465202bc851885e078ec888d1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-7387 severity on Zeptric[![CVE-2024-7387](https://zeptric.io/badge/cve/CVE-2024-7387.svg)](https://zeptric.io/cve/CVE-2024-7387)