CVE-2024-7387CWE-250

CVE-2024-7387

Critical · published September 17, 2024

CVSS v3.1
9.1
EPSS
2%
Percentile
83.3
In the wild
Unconfirmed
What it is

🔥 This command injection vulnerability in OpenShift's builder could turn a simple build into a full-blown takeover! Think of it like a restaurant where an untrustworthy chef can not only change the menu but also sneak in a secret ingredient that flips the whole kitchen on its head — that's the kind of chaos this vulnerability can unleash! An attacker could run arbitrary commands on the OpenShift node, potentially escalating their permissions and taking control of the entire system. This could lead to unauthorized access to sensitive data, disruption of services, or even complete control over the node itself. The stakes are high, and the implications are absolutely devastating!

Put simply

Think of it like a restaurant where an untrustworthy chef can not only change the menu but also sneak in a secret ingredient that flips the whole kitchen on its head — that's the kind of chaos this vulnerability can unleash! This vulnerability allows command injection through path traversal by exploiting the `spec.source.secrets.secret.destinationDir` attribute in the BuildConfig definition. When using the Docker build strategy, this can enable malicious users to override executable files inside the privileged builder container.

What to do

An attacker could run arbitrary commands on the OpenShift node, potentially escalating their permissions and taking control of the entire system. This could lead to unauthorized access to sensitive data, disruption of services, or even complete control over the node itself. The stakes are high, and the implications are absolutely devastating! To remediate this vulnerability, update to the latest OpenShift version that addresses CVE-2024-7387 immediately. Implement strict input validation for the `destinationDir` fields and minimize the use of privileged containers wherever possible to reduce exposure. Regularly audit your BuildConfigs for any insecure configurations. You've got this! Tackle these steps, and you'll be a security hero in no time! 🦸

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02321 · 83.3th percentile
Weakness
CWE-250 · Execution with Unnecessary Privileges
Published
2024-09-17T04:15Z
References (11)
EPSS history
Timeline
  • 16 SEP 23:58Z
    Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy
    cvelistv5