CVE-2024-45496
JSON

9.9critical

Openshift-controller-manager: elevated build pods can lead to node compromise in openshift

Severity
9.9critical CVSS:3.1 by redhat
Exploit likelihood
1.02% (higher than 64% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-j8gh-87rx-c7w9GO-2024-3128

Description

A flaw was found in OpenShift. This issue occurs due to the misuse of elevated privileges in the OpenShift Container Platform's build process. During the build initialization step, the git-clone container is run with a privileged security context, allowing unrestricted access to the node. An attacker with developer-level access can provide a crafted .gitconfig file containing commands executed during the cloning process, leading to arbitrary command execution on the worker node. An attacker running code in a privileged container could escalate their permissions on the node running the container.

Affected

Product or packageVersionsReported by
openshift-controller-managerfrom 4.12.0 up to 4.18.0CVE List
openshift4/ose-openshift-controller-manager-rhel8Not specified
Not affected: from v4.12.0-202409131137.p1.g0b1971a.assembly.stream.el8 before *, from v4.13.0-202409130707.p1.gb75d499.assembly.stream.el8 before *, from v4.14.0-202409130708.p1.g9020ea1.assembly.stream.el8 before *
CVE List
openshift4/ose-openshift-controller-manager-rhel9Not specified
Not affected: from v4.15.0-202409131835.p1.gbe9d673.assembly.stream.el9 before *, from v4.16.0-202409130937.p1.g5dcfc99.assembly.stream.el9 before *, from v4.17.0-202409182235.p0.g7682a61.assembly.stream.el9 before *, from v4.18.0-202501230001.p0.g5bfc808.assembly.stream.el9 before *
CVE List
openshift4/aws-kms-encryption-provider-rhel9Not specified
Not affected: from v4.18.0-202501230001.p0.g088dcaf.assembly.stream.el9 before *
CVE List
openshift4/azure-kms-encryption-provider-rhel9Not specified
Not affected: from v4.18.0-202501230001.p0.gd4fb1b6.assembly.stream.el9 before *
CVE List
openshift4/azure-service-rhel9-operatorNot specified
Not affected: from v4.18.0-202501230001.p0.g11ced00.assembly.stream.el9 before *
CVE List
openshift4/cloud-network-config-controller-rhel9Not specified
Not affected: from v4.18.0-202501230001.p0.gf648c78.assembly.stream.el9 before *
CVE List
openshift4/container-networking-plugins-microshift-rhel9Not specified
Not affected: from v4.18.0-202501230001.p0.g24a6532.assembly.stream.el9 before *
CVE List
openshift4/driver-toolkit-rhel9Not specified
Not affected: from v4.18.0-202502100301.p0.g2e139ed.assembly.stream.el9 before *
CVE List
openshift4/egress-router-cni-rhel9Not specified
Not affected: from v4.18.0-202501230001.p0.g3193a75.assembly.stream.el9 before *
CVE List
openshift4/frr-rhel9Not specified
Not affected: from v4.18.0-202502041302.p0.g1ad8f2e.assembly.stream.el9 before *
CVE List
openshift4/insights-runtime-exporter-rhel9Not specified
Not affected: from v4.18.0-202501230001.p0.g7149f2d.assembly.stream.el9 before *
CVE List

All scores

redhat9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
GitHub9.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L

Classification

CWE-269

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

A flaw was found in OpenShift. This issue occurs due to the misuse of elevated privileges in the OpenShift Container Platform's build process. During the build initialization step, the git-clone container is run with a privileged security context, allowing unrestricted access to the node. An attacker with developer-level access can provide a crafted .gitconfig file containing commands executed during the cloning process, leading to arbitrary command execution on the worker node. An attacker running code in a privileged container could escalate their permissions on the node running the container.

Go Vulnerability Database

OpenShift Controller Manager Improper Privilege Management in github.com/openshift/openshift-controller-manager.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/openshift/openshift-controller-manager before v0.0.0-alpha.0.0.20240911.

NVD (es)

Se encontró una falla en OpenShift. Este problema ocurre debido al uso indebido de privilegios elevados en el proceso de compilación de OpenShift Container Platform. Durante el paso de inicialización de la compilación, el contenedor git-clone se ejecuta con un contexto de seguridad privilegiado, lo que permite un acceso sin restricciones al nodo. Un atacante con acceso de nivel de desarrollador puede proporcionar un archivo .gitconfig diseñado que contenga comandos ejecutados durante el proceso de clonación, lo que lleva a la ejecución arbitraria de comandos en el nodo de trabajo. Un atacante que ejecute código en un contenedor privilegiado podría aumentar sus permisos en el nodo que ejecuta el contenedor.

References

https://access.redhat.com/errata/RHSA-2024:3718vendor-advisory, web
https://access.redhat.com/errata/RHSA-2024:6122vendor-advisory
https://access.redhat.com/errata/RHSA-2024:6685vendor-advisory, web
https://access.redhat.com/errata/RHSA-2024:6687vendor-advisory, web
https://access.redhat.com/errata/RHSA-2024:6689vendor-advisory, web
https://access.redhat.com/errata/RHSA-2024:6691vendor-advisory, web
https://access.redhat.com/errata/RHSA-2024:6705vendor-advisory, web
https://access.redhat.com/security/cve/CVE-2024-45496vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2308661issue-tracking, web
https://nvd.nist.gov/vuln/detail/CVE-2024-45496advisory
https://github.com/openshift/openshift-controller-manager/commit/3af3628103f9ddc3b825e6e5243ec58e85311046fix, web
https://github.com/openshift/openshift-controller-managerpackage

Sources

SourceRecordLicence
CVE ListCVE-2024-45496 changed 2026-08-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-j8gh-87rx-c7w9 changed 2025-01-09CC-BY-4.0
Go Vulnerability DatabaseGO-2024-3128 changed 2024-09-18CC-BY-4.0
NVDCVE-2024-45496 changed 2026-08-11Public domain