{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-45496",
        "ASSIGNER": "secalert@redhat.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Improper Privilege Management",
                        "cweId": "CWE-269"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "Red Hat",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Red Hat OpenShift Container Platform 4.12",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "version": "v4.12.0-202409131137.p1.g0b1971a.assembly.stream.el8",
                                                        "lessThan": "*",
                                                        "versionType": "rpm",
                                                        "status": "unaffected"
                                                    }
                                                ],
                                                "defaultStatus": "affected"
                                            }
                                        }
                                    ]
                                }
                            },
                            {
                                "product_name": "Red Hat OpenShift Container Platform 4.13",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "version": "v4.13.0-202409130707.p1.gb75d499.assembly.stream.el8",
                                                        "lessThan": "*",
                                                        "versionType": "rpm",
                                                        "status": "unaffected"
                                                    }
                                                ],
                                                "defaultStatus": "affected"
                                            }
                                        }
                                    ]
                                }
                            },
                            {
                                "product_name": "Red Hat OpenShift Container Platform 4.14",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "version": "v4.14.0-202409130708.p1.g9020ea1.assembly.stream.el8",
                                                        "lessThan": "*",
                                                        "versionType": "rpm",
                                                        "status": "unaffected"
                                                    }
                                                ],
                                                "defaultStatus": "affected"
                                            }
                                        }
                                    ]
                                }
                            },
                            {
                                "product_name": "Red Hat OpenShift Container Platform 4.15",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "version": "v4.15.0-202409131835.p1.gbe9d673.assembly.stream.el9",
                                                        "lessThan": "*",
                                                        "versionType": "rpm",
                                                        "status": "unaffected"
                                                    }
                                                ],
                                                "defaultStatus": "affected"
                                            }
                                        }
                                    ]
                                }
                            },
                            {
                                "product_name": "Red Hat OpenShift Container Platform 4.16",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "version": "v4.16.0-202409130937.p1.g5dcfc99.assembly.stream.el9",
                                                        "lessThan": "*",
                                                        "versionType": "rpm",
                                                        "status": "unaffected"
                                                    }
                                                ],
                                                "defaultStatus": "affected"
                                            }
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://access.redhat.com/errata/RHSA-2024:6685",
                "refsource": "MISC",
                "name": "https://access.redhat.com/errata/RHSA-2024:6685"
            },
            {
                "url": "https://access.redhat.com/errata/RHSA-2024:6687",
                "refsource": "MISC",
                "name": "https://access.redhat.com/errata/RHSA-2024:6687"
            },
            {
                "url": "https://access.redhat.com/errata/RHSA-2024:6689",
                "refsource": "MISC",
                "name": "https://access.redhat.com/errata/RHSA-2024:6689"
            },
            {
                "url": "https://access.redhat.com/errata/RHSA-2024:6691",
                "refsource": "MISC",
                "name": "https://access.redhat.com/errata/RHSA-2024:6691"
            },
            {
                "url": "https://access.redhat.com/errata/RHSA-2024:6705",
                "refsource": "MISC",
                "name": "https://access.redhat.com/errata/RHSA-2024:6705"
            },
            {
                "url": "https://access.redhat.com/security/cve/CVE-2024-45496",
                "refsource": "MISC",
                "name": "https://access.redhat.com/security/cve/CVE-2024-45496"
            },
            {
                "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2308661",
                "refsource": "MISC",
                "name": "https://bugzilla.redhat.com/show_bug.cgi?id=2308661"
            }
        ]
    },
    "work_around": [
        {
            "lang": "en",
            "value": "Cluster admins can follow the instructions in \"Securing Builds by Strategy\" to block use of the \"Docker\" and \u201cSource\u201d build strategies on a cluster, or restrict the use to a set of highly trusted users, until the cluster is able to be upgraded.\n\nhttps://docs.openshift.com/container-platform/4.16/cicd/builds/securing-builds-by-strategy.html"
        }
    ],
    "credits": [
        {
            "lang": "en",
            "value": "This issue was discovered by Thibault Guittet (Red Hat)."
        }
    ],
    "impact": {
        "cvss": [
            {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 9.9,
                "baseSeverity": "CRITICAL",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "CHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L",
                "version": "3.1"
            }
        ]
    }
}