GitHub Advisoryadvisory · Go
GHSA-qqv8-ph7f-h3f7 OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer
MEDIUM
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
- https://nvd.nist.gov/vuln/detail/CVE-2024-7387 advisory
- https://github.com/openshift/builder/commit/0b62633adfa2836465202bc851885e078ec888d1 web
- https://access.redhat.com/errata/RHSA-2024:3718 web
- https://access.redhat.com/errata/RHSA-2024:6122 web
- https://access.redhat.com/errata/RHSA-2024:6685 web
- https://access.redhat.com/errata/RHSA-2024:6687 web
- https://access.redhat.com/errata/RHSA-2024:6689 web
- https://access.redhat.com/errata/RHSA-2024:6691 web
- https://access.redhat.com/errata/RHSA-2024:6705 web
- https://access.redhat.com/security/cve/CVE-2024-7387 web
- https://bugzilla.redhat.com/show_bug.cgi?id=2302259 web
- https://github.com/openshift/builder package
- https://pkg.go.dev/vuln/GO-2024-3129 web
- https://stuxxn.github.io/advisory/2024/10/02/openshift-build-docker-priv-esc.html web