CVE-2024-7387

Openshift/builder: path traversal allows command injection in privileged buildcontainer using docker build strategy

CRITICAL 9.1

At a glance

Source
NVD
EPSS
EPSS 2.32 % · percentile 83 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-250 — Execution with Unnecessary Privileges

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:Hredhat
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)

Advisories

European references

Affected products

ProductVersions
openshift/builderaffected 0 < 0b62633adfa2836465202bc851885e078ec888d1
Red Hat · Red Hat OpenShift Container Platform 4.12unaffected v4.12.0-202409121032.p1.g609473f.assembly.stream.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.13unaffected v4.13.0-202409120505.p1.g2c7e99d.assembly.stream.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.14unaffected v4.14.0-202409111409.p1.g52565ca.assembly.stream.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.15unaffected v4.15.0-202409101936.p1.ge7749a3.assembly.stream.el8 < *
Red Hat · Red Hat OpenShift Container Platform 4.16unaffected v4.16.0-202409101737.p1.gfee4b58.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.17unaffected v4.17.0-202409122005.p1.gcfcf3bd.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.g088dcaf.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.gd4fb1b6.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.g11ced00.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.gf648c78.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.g24a6532.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202502100301.p0.g2e139ed.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.g3193a75.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202502041302.p0.g1ad8f2e.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.g7149f2d.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.g7149f2d.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.g962ccca.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202501230001.p0.gba2234b.assembly.stream.el9 < *
Red Hat · Red Hat OpenShift Container Platform 4.18unaffected v4.18.0-202502111035.p0.gf76635f.assembly.stream.el9 < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD