NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2024-7387: OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer

mediumCVSS 4.0 6.4 · 3.1 9.1GHSA-qqv8-ph7f-h3f7

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.

Published Sep 17, 2024 · Updated Aug 11, 2026

Affected packages

github.com/openshift/builder

Ecosystem
Go
Affected
<= 4.0.0
Fixed in
No patched version yet
Check
go list -m github.com/openshift/builder

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology