CVE-2024-7387
CRITICAL 9.1CVSS 3.1OpenShift Builder has a path traversal, allows command injection in privileged BuildContainer
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.
- Published
- 17 Sep 2024
- Last modified
- 11 Aug 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Deferred
- Weakness
- CWE-250
- Also known as
- GHSA-qqv8-ph7f-h3f7GO-2024-3129
- Sources
- NVDJSONOSV GHSA-qqv8-ph7f-h3f7JSONOSV GO-2024-3129JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/openshift/builder | <= 4.0.0 | |
| OSV | Go | github.com/openshift/builder | all versions |
References
- 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/commit/0b62633adfa2836465202bc851885e078ec888d1 · WEB, FIX
- https://stuxxn.github.io/advisory/2024/10/02/openshift-build-docker-priv-esc.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-7387 · ADVISORY
- https://github.com/openshift/builder · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-3129 · WEB
- https://github.com/advisories/GHSA-qqv8-ph7f-h3f7 · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 17 Sep 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Sep 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Sep 2024)