CVE-2024-7387
CVE-2024-7387
- CVSS v3
- 9.1 Critical
- Public exploits
- 4 repositories
- EPSS
- 0.023 · 83.7th percentile
- Published
- 2024-09-17
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.023, 83.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Weakness classification (CWE)
Public exploits and proof-of-concept code
4 public repositories with exploit or proof-of-concept code for this CVE:
- biggerbangg/cve-2024-7387 (last pushed 2026-03-08): OpenShift RCE PoC
- eggpratacurry/cve-2024-7387 (last pushed 2026-03-08): OpenShift RCE PoC
- pairofglasses/cve-2024-7387 (last pushed 2026-03-08): openshift rce poc
- tevsho/cve-2024-7387 (last pushed 2026-03-08): openshift rce poc
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, zhanpengliu-tencent/medium-cve). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- RHSA-2024:3718 (vendor-advisory)
- RHSA-2024:6685 (vendor-advisory)
- RHSA-2024:6687 (vendor-advisory)
- RHSA-2024:6689 (vendor-advisory)
- RHSA-2024:6691 (vendor-advisory)
- RHSA-2024:6705 (vendor-advisory)
- access.redhat.com/security/cve/CVE-2024-7387 (vdb-entry)
- RHBZ#2302259 (issue-tracking)
- github.com/openshift/builder/commit/0b62633adfa2836465202bc851885e078ec888d1
- stuxxn.github.io/advisory/2024/10/02/openshift-build-docker-priv-esc.html
This CVE has public exploit evidence. See the latest CVEs with public exploits.