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.
Published: 2024-09-17
Score: 9.1 Critical
EPSS: 2.3% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

Vendor 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

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2024-2857 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.
Github GHSA Github GHSA GHSA-qqv8-ph7f-h3f7 OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer
History

Tue, 11 Aug 2026 17:30:00 +0200

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.18::el9
References

Tue, 24 Mar 2026 17:30:00 +0100


Sun, 13 Jul 2025 15:45:00 +0200

Type Values Removed Values Added
Metrics epss

{'score': 0.00482}

epss

{'score': 0.00691}


Thu, 09 Jan 2025 09:45:00 +0100

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.17::el9
References

Mon, 07 Oct 2024 23:15:00 +0200

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 03 Oct 2024 23:15:00 +0200


Thu, 19 Sep 2024 22:00:00 +0200

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.12::el8
References

Thu, 19 Sep 2024 15:45:00 +0200

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.15::el8
cpe:/a:redhat:openshift:4.15::el9
References

Thu, 19 Sep 2024 10:00:00 +0200

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.14::el8
cpe:/a:redhat:openshift:4.16::el9
References

Thu, 19 Sep 2024 04:15:00 +0200

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4 cpe:/a:redhat:openshift:4.13::el8
References

Tue, 17 Sep 2024 23:30:00 +0200

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 17 Sep 2024 02:00:00 +0200

Type Values Removed Values Added
Title openshift/builder: Path traversal allows command injection in privileged BuildContainer using docker build strategy Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy
First Time appeared Redhat
Redhat openshift
CPEs cpe:/a:redhat:openshift:4
Vendors & Products Redhat
Redhat openshift
References

Mon, 16 Sep 2024 13:30:00 +0200

Type Values Removed Values Added
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.
Title openshift/builder: Path traversal allows command injection in privileged BuildContainer using docker build strategy
Weaknesses CWE-250
References
Metrics threat_severity

None

cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

threat_severity

Important


Subscriptions

Redhat Openshift
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-11T14:55:10.318Z

Reserved: 2024-08-01T15:14:15.077Z

Link: CVE-2024-7387

cve-icon Vulnrichment

Updated: 2024-09-17T15:58:40.387Z

cve-icon NVD

Status : Deferred

Published: 2024-09-17T00:15:52.757

Modified: 2026-08-11T16:17:24.387

Link: CVE-2024-7387

cve-icon Redhat

Severity : Important

Publid Date: 2024-09-16T08:00:00Z

Links: CVE-2024-7387 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses