Skip to main content
EPSS 2.3%top 18%

CVE-2024-7387: Execution with Unnecessary Privileges

0
Critical
VulnerabilityCVE-2024-7387cvecve-2024-7387
Published: 09/16/2024 (09/16/2024, 23:58:35 UTC)
Source: CVE Database V5

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
openshift/builder
pkg:github/openshift/builder
Affected versions
=0>=4.15.0 <4.15.33>=4.17.0 <4.17.0

Run 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

AILast updated: 08/12/2026, 13:31:21 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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, 19:36:49 UTC

Views: 307

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses