CVE-2024-7387
criticalpriority · track · 1EPSS 0.023 · 83 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.3–9.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (179)
Products and version ranges known to be affected.
- Red Hat Red Hat OpenShift Container Platform 4.12< v4.12.0-202409121032.p1.g609473f.assembly.stream.el8enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.13< v4.13.0-202409120505.p1.g2c7e99d.assembly.stream.el8enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.14< v4.14.0-202409111409.p1.g52565ca.assembly.stream.el8enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.15< v4.15.0-202409101936.p1.ge7749a3.assembly.stream.el8enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.16< v4.16.0-202409101737.p1.gfee4b58.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.17< v4.17.0-202409122005.p1.gcfcf3bd.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202412170221.p0.ga26fffe.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202412170221.p0.gcfbae04.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202412200107.p0.g2957f13.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202501201133.p0.g4674e81.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202501230001.p0.g00882ba.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202501230001.p0.g01d5fbb.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202501230001.p0.g020f8b8.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202501230001.p0.g07daee4.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202501230001.p0.g088dcaf.assembly.stream.el9enisa_euvdEU
- Red Hat Red Hat OpenShift Container Platform 4.18< v4.18.0-202501230001.p0.g0e11616.assembly.stream.el9enisa_euvdEU
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-2174Red Hat OpenShift: Mehrere Schwachstellen ermöglichen CodeausführungDeutsch2024-09-17csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in Red Hat OpenShift ausnutzen, um beliebigen Programmcode auszuführen.
- GHSA-qqv8-ph7f-h3f7OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer2024-09-17ghsa · osvUS
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.
- GO-2024-3129OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer in github.com/openshift/builder2024-09-18vendor · osvUS
OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer in github.com/openshift/builder
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (26)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/CVE-2024-7387cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2302259cnnvd
- https://cxsecurity.com/cveshow/CVE-2024-7387/cnnvd
- https://docs.openshift.com/container-platform/4.16/cicd/builds/securing-builds-by-strategy.htmlPatchcnnvd
- https://access.redhat.com/errata/RHSA-2024:3718enisa_euvd
- https://access.redhat.com/errata/RHSA-2024:6122enisa_euvd
- https://access.redhat.com/errata/RHSA-2024:6685enisa_euvd
- https://access.redhat.com/errata/RHSA-2024:6687enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan