CVE-2024-7387: OpenShift Builder Docker Build Path Traversal Command Injection
CVE-2024-7387 is a path-traversal vulnerability in OpenShift Builder. In builds using the Docker strategy, a malicious BuildConfig can use the secret destinationDir attribute to traverse paths and overwrite executable files within the privileged build container. This can result in command injection and execution of attacker-controlled commands on the OpenShift node hosting the builder container.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary command execution on the OpenShift node running the privileged builder container. An attacker may escalate privileges from code execution in the build environment to compromise or take over the underlying node.
Mitigation
If you can’t patch tonight, do this now.
Until updates are deployed, restrict untrusted users' ability to create or modify BuildConfig objects and to control secret destination directories. Avoid Docker-strategy builds for untrusted build definitions where feasible, and limit access to privileged build-container workloads.
Remediation
Patch, then assume compromise.
Apply the relevant Red Hat OpenShift Container Platform security update containing the fix for CVE-2024-7387. OpenShift Container Platform 4.16.13 includes remediation for affected 4.16 deployments; administrators should upgrade through the applicable release channel and deploy the updated component images.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
References
Frequently asked questions
- Is CVE-2024-7387 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2024-7387 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-7387?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-7387, the earliest disclosed Feb 11, 2026.
- Is there a patch for CVE-2024-7387?
- Apply the relevant Red Hat OpenShift Container Platform security update containing the fix for CVE-2024-7387. OpenShift Container Platform 4.16.13 includes remediation for affected 4.16 deployments; administrators should upgrade through the applicable release channel and deploy the updated component images.
- How severe is CVE-2024-7387?
- CVE-2024-7387 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 3.4% (90th percentile) as of Sep 25, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.