Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/openshift/builder
  4. ›
  5. CVE-2024-7387

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

September 17, 2024 (updated January 9, 2025)

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

  • access.redhat.com/errata/RHSA-2024:3718
  • access.redhat.com/errata/RHSA-2024:6685
  • access.redhat.com/errata/RHSA-2024:6687
  • access.redhat.com/errata/RHSA-2024:6689
  • access.redhat.com/errata/RHSA-2024:6691
  • access.redhat.com/errata/RHSA-2024:6705
  • access.redhat.com/security/cve/CVE-2024-7387
  • bugzilla.redhat.com/show_bug.cgi?id=2302259
  • github.com/advisories/GHSA-qqv8-ph7f-h3f7
  • github.com/openshift/builder
  • github.com/openshift/builder/commit/0b62633adfa2836465202bc851885e078ec888d1
  • nvd.nist.gov/vuln/detail/CVE-2024-7387
  • pkg.go.dev/vuln/GO-2024-3129
  • stuxxn.github.io/advisory/2024/10/02/openshift-build-docker-priv-esc.html

Code Behaviors & Features

Detect and mitigate CVE-2024-7387 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 4.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-250: Execution with Unnecessary Privileges

Source file

go/github.com/openshift/builder/CVE-2024-7387.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.