OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer
Moderate severity
GitHub Reviewed
Published
Sep 17, 2024
to the GitHub Advisory Database
•
Updated Nov 18, 2024
Description
Published by the National Vulnerability Database
Sep 17, 2024
Published to the GitHub Advisory Database
Sep 17, 2024
Reviewed
Sep 17, 2024
Last updated
Nov 18, 2024
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 theBuildConfig
definition. An attacker running code in a privileged container could escalate their permissions on the node running the container.References