{
    "data_type": "CVE",
    "data_format": "MITRE",
    "data_version": "4.0",
    "CVE_data_meta": {
        "ID": "CVE-2022-2251",
        "ASSIGNER": "cve@gitlab.com",
        "STATE": "PUBLIC"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "GitLab",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "GitLab Runner",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "<15.3.5"
                                        },
                                        {
                                            "version_value": ">=15.4, <15.4.4"
                                        },
                                        {
                                            "version_value": ">=15.5, <15.5.2"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "Improper neutralization of special elements used in an os command ('os command injection') in GitLab Runner"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386",
                "url": "https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386",
                "refsource": "MISC"
            },
            {
                "name": "https://hackerone.com/reports/1063511",
                "url": "https://hackerone.com/reports/1063511",
                "refsource": "MISC"
            },
            {
                "name": "https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json",
                "url": "https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json",
                "refsource": "CONFIRM"
            }
        ]
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Improper sanitization of branch names in GitLab Runner affecting all versions prior to 15.3.5, 15.4 prior to 15.4.4, and 15.5 prior to 15.5.2 allows a user who creates a branch with a specially crafted name and gets another user to trigger a pipeline to execute commands in the runner as that other user."
            }
        ]
    },
    "impact": {
        "cvss": {
            "vectorString": "AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N",
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "version": "3.1",
            "baseScore": 4.8,
            "baseSeverity": "MEDIUM"
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "Thanks [stanlyoncm](https://hackerone.com/stanlyoncm) for reporting this vulnerability through our HackerOne bug bounty program"
        }
    ]
}