CVE-2024-7387 - CVE House
Back to Database
Status published Critical CVE-2024-7387

Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-7387

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • Red Hat would like to thank Armin Stock for reporting this issue.

Affected Vendor

Affected Software

Red Hat OpenShift Container Platform 4.12, Red Hat OpenShift Container Platform 4.13, Red Hat OpenShift Container Platform 4.14, Red Hat OpenShift Container Platform 4.15, Red Hat OpenShift Container Platform 4.16, Red Hat OpenShift Container Platform 4.17
Vulnerable Versions:
0, v4.12.0-202409121032.p1.g609473f.assembly.stream.el8, v4.13.0-202409120505.p1.g2c7e99d.assembly.stream.el8, v4.14.0-202409111409.p1.g52565ca.assembly.stream.el8, v4.15.0-202409101936.p1.ge7749a3.assembly.stream.el8, v4.16.0-202409101737.p1.gfee4b58.assembly.stream.el9, v4.17.0-202409122005.p1.gcfcf3bd.assembly.stream.el9

Timeline

Official Publish: September 16th, 2024
Last Modified: March 24th, 2026
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Weaknesses (CWE)