Skip to main content
Public proof of conceptFix available

CVE-2024-7387

A public proof of concept exists; no exploitation attested.

  • Published2024-09-17
  • WeaknessCWE-250

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-09-1700:15CVE publishedNVD

Versions per branch

OSV
openshift/builder
BranchAffectedFixed in
4.0≤ 4.0.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA100 products

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

94 more products in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-08-11

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Vendor advisories

  • CVE-2024-7387 Red Hat Product Security684 products fixed

    openshift/builder: Path traversal allows command injection in privileged BuildContainer using docker build strategy

  • RHSA-2024:6122 Red Hat Product Security662 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.18.1 bug fix and security update

  • RHSA-2024:3718 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.17.0 bug fix and security update

  • RHSA-2024:6705 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.12.66 security update

  • RHSA-2024:6685 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.15.33 bug fix and security update

  • RHSA-2024:6687 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.16.13 bug fix and security update

2 more advisories

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2024:6122 · 662 productsFor OpenShift Container Platform 4.18 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.18/release_notes/o…
  2. Vendor fix Red Hat Product Security RHSA-2024:3718 · 4 productsFor OpenShift Container Platform 4.17 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.17/release_notes/o…
  3. Vendor fix Red Hat Product Security RHSA-2024:6705 · 2 productsFor OpenShift Container Platform 4.12 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.12/release_notes/o…
  4. Vendor fix Red Hat Product Security RHSA-2024:6685 · 4 productsFor OpenShift Container Platform 4.15 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.15/release_notes/o…
  5. Vendor fix Red Hat Product Security RHSA-2024:6687 · 4 productsFor OpenShift Container Platform 4.16 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.16/release_notes/o…
  6. Vendor fix Red Hat Product Security RHSA-2024:6689 · 4 productsFor OpenShift Container Platform 4.14 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.14/release_notes/o…

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionpoc2024-10-07
  • CNACVSS 3.19.1known since 2026-10-23
  • CNAweakness (CWE)CWE-250known since 2026-10-23
  • FIRST EPSSEPSS score2.3 %2026-11-08
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryMODERATE2024-09-17

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Published
2024-09-17
Last Modified
2026-08-11
NVD status
Deferred
GitHub Advisory
GHSA-qqv8-ph7f-h3f7

Frequently asked questions

What is CVE-2024-7387?

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.

Is CVE-2024-7387 actively exploited?

A proof-of-concept exploit exists for CVE-2024-7387, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-7387?

CVE-2024-7387 has a CVSS v3 base score of 9.1 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.

Running openshift/builder? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record