{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-2022",
        "ASSIGNER": "cve@gitlab.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "An issue has been discovered in GitLab CE/EE affecting all versions starting before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2, which leads to developers being able to create pipeline schedules on protected branches even if they don't have access to merge"
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-862: Missing Authorization",
                        "cweId": "CWE-262"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "GitLab",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "GitLab",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "16.0.8"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "16.1.0",
                                            "version_value": "16.1.3"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "16.2.0",
                                            "version_value": "16.2.2"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://gitlab.com/gitlab-org/gitlab/-/issues/407166",
                "refsource": "MISC",
                "name": "https://gitlab.com/gitlab-org/gitlab/-/issues/407166"
            },
            {
                "url": "https://hackerone.com/reports/1936572",
                "refsource": "MISC",
                "name": "https://hackerone.com/reports/1936572"
            }
        ]
    },
    "solution": [
        {
            "lang": "en",
            "value": "Upgrade to versions 16.2.2, 16.1.3, 16.0.8 or above."
        }
    ],
    "credits": [
        {
            "lang": "en",
            "value": "Thanks [js_noob](https://hackerone.com/js_noob) for reporting this vulnerability through our HackerOne bug bounty program"
        }
    ],
    "impact": {
        "cvss": [
            {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 4.3,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "LOW",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N",
                "version": "3.1"
            }
        ]
    }
}