CVE-2022-2251

Source
https://cve.org/CVERecord?id=CVE-2022-2251
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-2251.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-2251
Aliases
Downstream
Published
2023-01-17T00:00:00Z
Modified
2026-07-15T01:49:15.943644205Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2251.json",
    "cna_assigner": "GitLab",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "15.3.5"
                },
                {
                    "introduced": "15.4"
                },
                {
                    "fixed": "15.4.4"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/gitlabhq/gitlab-runner

Affected ranges

Type
GIT
Repo
https://github.com/gitlabhq/gitlab-runner
Events
Database specific
{
    "cpe": "cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*",
    "source": "CPE_RANGE",
    "extracted_events": [
        {
            "introduced": "15.5.0"
        },
        {
            "fixed": "15.5.2"
        }
    ]
}
Type
GIT
Repo
https://gitlab.com/gitlab-org/gitlab-runner
Events
Database specific
{
    "cpe": "cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*",
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "extracted_events": [
        {
            "introduced": "15.5"
        },
        {
            "fixed": "15.5.2"
        },
        {
            "introduced": "15.5.0"
        }
    ]
}

Affected versions

v15.*
v15.5.0
v15.5.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-2251.json"