CVE-2024-7387
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 products
- Docker
- CVSS 3.1
- 9.1 CRITICAL
- EPSS
- 2.3% (82th percentile)
- Weakness
- CWE-250
- NVD status
- Deferred
- Published
- 2024-09-16
Workaround
Cluster admins can follow the instructions in "Securing Builds by Strategy" to block use of the "Docker" build strategy on a cluster, or restrict the use to a set of highly trusted users, until the cluster is able to be upgraded. https://docs.openshift.com/container-platform/4.16/cicd/builds/securing-builds-by-strategy.html
3 known exploits for CVE-2024-7387
Proof-of-concept code and exploit modules indexed by Sploitus