GitHub Advisoryadvisory · Go

GHSA-qqv8-ph7f-h3f7 OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer

MEDIUM Published 2024-09-17 Modified 2026-08-11 Official page ↗
Aliases
CVE-2024-7387
Ecosystem
Go
Packages
github.com/openshift/builder
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-250
Reviewed
2024-09-17

Affected packages

• Go github.com/openshift/builder: <= 4.0.0 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2024-7387 A flaw was found in openshift/builder. vulnerability

Weakness · CWE (1)

  • CWE-250 Execution with Unnecessary Privileges weakness

References