CVE-2024-7387: Execution with Unnecessary Privileges
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.
AI Analysis
Technical Summary
The vulnerability CVE-2024-7387 affects the openshift/builder component in Red Hat OpenShift Container Platform. It allows command injection through path traversal by manipulating the spec.source.secrets.secret.destinationDir attribute in BuildConfig when using the Docker build strategy. This enables an attacker with code execution in a privileged build container to escalate privileges on the underlying node. Red Hat has issued security advisories RHSA-2024:3718 and RHSA-2024:6685 detailing fixes in OpenShift Container Platform 4.17.0 and 4.15.33 respectively. The advisories include updated container images and instructions for upgrading clusters to mitigate the vulnerability.
Potential Impact
Successful exploitation of this vulnerability allows an attacker with access to a privileged build container to execute arbitrary commands on the OpenShift node, leading to full compromise of the node. The CVSS score of 9.1 reflects the critical nature of this vulnerability with high impact on confidentiality, integrity, and availability. This could enable attackers to escalate privileges and potentially control the host system running the container.
Mitigation Recommendations
Red Hat has released official security updates for OpenShift Container Platform versions 4.15.33 and 4.17.0 that address CVE-2024-7387. Users should upgrade their OpenShift clusters to these or later versions using the OpenShift CLI (oc) or web console as per the vendor's upgrade instructions. The vendor manages remediation for these container images and provides detailed guidance in the referenced advisories and release notes. No alternative mitigations are indicated; applying the official updates is required to remediate the vulnerability.
CVE-2024-7387: Execution with Unnecessary Privileges
Description
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 v3.1
Score 9.1critical
Affected software
pkg:github/openshift/builderRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2024-7387 affects the openshift/builder component in Red Hat OpenShift Container Platform. It allows command injection through path traversal by manipulating the spec.source.secrets.secret.destinationDir attribute in BuildConfig when using the Docker build strategy. This enables an attacker with code execution in a privileged build container to escalate privileges on the underlying node. Red Hat has issued security advisories RHSA-2024:3718 and RHSA-2024:6685 detailing fixes in OpenShift Container Platform 4.17.0 and 4.15.33 respectively. The advisories include updated container images and instructions for upgrading clusters to mitigate the vulnerability.
Potential Impact
Successful exploitation of this vulnerability allows an attacker with access to a privileged build container to execute arbitrary commands on the OpenShift node, leading to full compromise of the node. The CVSS score of 9.1 reflects the critical nature of this vulnerability with high impact on confidentiality, integrity, and availability. This could enable attackers to escalate privileges and potentially control the host system running the container.
Mitigation Recommendations
Red Hat has released official security updates for OpenShift Container Platform versions 4.15.33 and 4.17.0 that address CVE-2024-7387. Users should upgrade their OpenShift clusters to these or later versions using the OpenShift CLI (oc) or web console as per the vendor's upgrade instructions. The vendor manages remediation for these container images and provides detailed guidance in the referenced advisories and release notes. No alternative mitigations are indicated; applying the official updates is required to remediate the vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2024-08-01T15:14:15.077Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/errata/RHSA-2024:3718","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2024:6122","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2024:6685","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2024:6687","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2024:6689","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2024:6691","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2024:6705","vendor":"Red Hat"},{"url":"https://access.redhat.com/security/cve/CVE-2024-7387","vendor":"Red Hat"}]
Threat ID: 691356bfb36faa5b6c09d274
Added to database: 11/11/2025, 15:31:11 UTC
Last enriched: 08/12/2026, 13:31:21 UTC
Last updated: 09/10/2026, 20:10:05 UTC
Views: 308
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.