{"id":"CVE-2024-7387","aliases":["EUVD-2024-2857","GHSA-qqv8-ph7f-h3f7","GO-2024-3129"],"status":"published","title":"Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy","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.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.02321,"percentile":0.83679,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-250"],"published":"2024-09-16T23:58:35Z","modified":"2026-10-28T02:30:51Z","affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/openshift/builder","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.0.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/openshift/builder","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"4.0.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/openshift/builder","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"red hat","product":"red hat openshift container platform 4.12"},{"vendor":"red hat","product":"red hat openshift container platform 4.13"},{"vendor":"red hat","product":"red hat openshift container platform 4.14"},{"vendor":"red hat","product":"red hat openshift container platform 4.15"},{"vendor":"red hat","product":"red hat openshift container platform 4.16"},{"vendor":"red hat","product":"red hat openshift container platform 4.17"},{"vendor":"red hat","product":"red hat openshift container platform 4.18"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:3718","tags":["vendor-advisory","x_refsource_REDHAT","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6122","tags":["vendor-advisory","x_refsource_REDHAT","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6685","tags":["vendor-advisory","x_refsource_REDHAT","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6687","tags":["vendor-advisory","x_refsource_REDHAT","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6689","tags":["vendor-advisory","x_refsource_REDHAT","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6691","tags":["vendor-advisory","x_refsource_REDHAT","advisory","web"]},{"url":"https://access.redhat.com/errata/RHSA-2024:6705","tags":["vendor-advisory","x_refsource_REDHAT","advisory","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-7387","tags":["vdb-entry","x_refsource_REDHAT","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2302259","tags":["issue-tracking","x_refsource_REDHAT","report","web"]},{"url":"https://github.com/openshift/builder/commit/0b62633adfa2836465202bc851885e078ec888d1","tags":["fix","web"]},{"url":"https://stuxxn.github.io/advisory/2024/10/02/openshift-build-docker-priv-esc.html","tags":["advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7387","tags":["advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3129","tags":["web"]},{"url":"https://github.com/advisories/GHSA-qqv8-ph7f-h3f7","tags":["advisory"]},{"url":"https://catalog.redhat.com/software/containers/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/7xxx/CVE-2024-7387.json","tags":["advisory"]},{"url":"https://github.com/openshift/builder","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-7387","title":"Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy","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.","status":"published","published":"2024-09-16T23:58:35.176Z","modified":"2026-08-11T14:55:10.318Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-250"],"updated_at":"2026-11-02T14:34:21.025267Z"}],"euvd":[{"id":"EUVD-2024-2857","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.","status":"published","published":"2024-09-16T23:58:35Z","modified":"2026-08-11T14:55:10Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T18:01:59.926728Z"}],"ghsa":[{"id":"GHSA-qqv8-ph7f-h3f7","title":"OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer","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.","status":"published","published":"2024-09-17T00:31:06Z","modified":"2026-08-11T18:31:34Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":6.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","level":"medium"}],"cwes":["CWE-250"],"updated_at":"2026-11-02T14:40:58.888637Z"}],"nvd":[{"id":"CVE-2024-7387","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.","status":"published","published":"2024-09-17T00:15:52.757Z","modified":"2026-08-11T16:17:24.387Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-250"],"updated_at":"2026-11-02T14:10:26.717759Z"}],"osv":[{"id":"CVE-2024-7387","title":"Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy","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.","status":"published","published":"2024-09-16T23:58:35.176Z","modified":"2026-10-28T02:30:51.187819374Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-250"],"updated_at":"2026-11-02T15:44:45.405014Z"},{"id":"GHSA-qqv8-ph7f-h3f7","title":"OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer","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.","status":"published","published":"2024-09-17T00:31:06Z","modified":"2026-08-11T18:45:13.792080336Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":6.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","level":"medium"}],"cwes":["CWE-250"],"updated_at":"2026-11-02T15:46:54.760124Z"},{"id":"GO-2024-3129","title":"OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer in github.com/openshift/builder","description":"OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer in github.com/openshift/builder","status":"published","published":"2024-09-18T15:16:25Z","modified":"2026-03-03T04:55:47.945148Z","updated_at":"2026-11-02T15:47:01.453823Z"}]}}
