{"id":"CVE-2022-2251","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.","aliases":["BIT-gitlab-runner-2022-2251"],"modified":"2026-08-12T03:51:27.351524852Z","published":"2023-01-17T00:00:00Z","database_specific":{"cna_assigner":"GitLab","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2251.json","unresolved_ranges":[{"extracted_events":[{"fixed":"15.3.5"},{"introduced":"15.4"},{"fixed":"15.4.4"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"WEB","url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json"},{"type":"WEB","url":"https://hackerone.com/reports/1063511"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2251.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2251"},{"type":"REPORT","url":"https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gitlabhq/gitlab-runner","events":[{"introduced":"0d4137b81e70f98c801f5c47411dc06a16333d12"},{"fixed":"fcfe8054cce062cdfdc9a9952f6727b269797211"}],"database_specific":{"cpe":"cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"15.5.0"},{"fixed":"15.5.2"}],"source":"CPE_RANGE"}},{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab-runner","events":[{"introduced":"0d4137b81e70f98c801f5c47411dc06a16333d12"},{"fixed":"fcfe8054cce062cdfdc9a9952f6727b269797211"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"15.5"},{"fixed":"15.5.2"},{"introduced":"15.5.0"}]}}],"versions":["v15.5.1","v15.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-2251.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N"}]}