CVE-2024-7387 — Vulnerability in github.com/openshift/builder
OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.45%). Schedule for your next planned update.
Does your project use an affected github.com/openshift/builder version?
Paste your go.sum to check it for CVE-2024-7387 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published September 17, 2024 (800 days ago).
- Last revised August 11, 2026 — 694 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/openshift/builder Go · Affected: All versions | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-250
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-7387ADVISORY
- https://github.com/openshift/builder/commit/0b62633adfa2836465202bc851885e078ec888d1WEB
- https://access.redhat.com/errata/RHSA-2024:3718WEB
- https://access.redhat.com/errata/RHSA-2024:6122WEB
- https://access.redhat.com/errata/RHSA-2024:6685WEB
- https://access.redhat.com/errata/RHSA-2024:6687WEB
- https://access.redhat.com/errata/RHSA-2024:6689WEB
- https://access.redhat.com/errata/RHSA-2024:6691WEB
- https://access.redhat.com/errata/RHSA-2024:6705WEB
- https://access.redhat.com/security/cve/CVE-2024-7387WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2302259WEB
- https://github.com/openshift/builderPACKAGE
- https://pkg.go.dev/vuln/GO-2024-3129WEB
- https://stuxxn.github.io/advisory/2024/10/02/openshift-build-docker-priv-esc.htmlWEB
Frequently Asked Questions
- What is CVE-2024-7387?
- OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2024-7387?
- CVE-2024-7387 affects github.com/openshift/builder. It has a 3.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-7387 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 89.8% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2024-25131HIGH
OpenShift Must Gather Operator Improper Input Validation vulnerability
- CVE-2026-54167HIGH
Pipelines-as-Code GitHub App token request can be redirected via untrusted Enterprise Host header
- CVE-2025-14443HIGH
openshift-apiserver: SSRF via Missing IP/Network-Range Validation in User-Supplied Image References
- CVE-2024-25133HIGH
OpenShift Hive RCE through AWS/Kubernetes client configuration leads to privilege escalation
- CVE-2026-54765MEDIUM
Traefik: Gateway HTTPRoute backendRef filters can leak backend context across routes sharing a Service:port
- CVE-2024-45496MEDIUM
OpenShift Controller Manager Improper Privilege Management
- CVE-2026-88011MEDIUM
Traefik: ForwardAuth identity spoofing via dot-form header alias