{"id":"CVE-2022-2251","state":"PUBLISHED","title":"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 wit","description":"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.","publishedAt":"2023-01-17T00:00:00.000Z","updatedAt":"2025-04-08T18:20:55.756Z","severity":{"score":4.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","source":"GitLab"},"assigner":"GitLab","products":["GitLab GitLab Runner"],"affected":[{"vendor":"GitLab","product":"GitLab Runner","versions":[{"version":"<15.3.5","status":"affected"},{"version":">=15.4, <15.4.4","status":"affected"},{"version":">=15.5, <15.5.2","status":"affected"}]}],"references":["https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386","https://hackerone.com/reports/1063511","https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T19:50:01.354Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/2xxx/CVE-2022-2251.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-2251","state":"PUBLISHED","datePublished":"2023-01-17T00:00:00.000Z","dateUpdated":"2025-04-08T18:20:55.756Z","assignerShortName":"GitLab","assignerOrgId":"ceab7361-8a18-47b1-92ba-4d7d25f6715a","dateReserved":"2022-06-29T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"GitLab","product":"GitLab Runner","versions":[{"version":"<15.3.5","status":"affected"},{"version":">=15.4, <15.4.4","status":"affected"},{"version":">=15.5, <15.5.2","status":"affected"}]}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386"},{"url":"https://hackerone.com/reports/1063511"},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":4.8,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"Improper neutralization of special elements used in an os command ('os command injection') in GitLab Runner"}]}],"providerMetadata":{"shortName":"GitLab","orgId":"ceab7361-8a18-47b1-92ba-4d7d25f6715a","dateUpdated":"2023-01-17T00:00:00.000Z"},"credits":[{"lang":"en","value":"Thanks [stanlyoncm](https://hackerone.com/stanlyoncm) for reporting this vulnerability through our HackerOne bug bounty program"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386","tags":["x_transferred"]},{"url":"https://hackerone.com/reports/1063511","tags":["x_transferred"]},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T00:32:09.572Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-08T18:20:33.707879Z","id":"CVE-2022-2251","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","type":"CWE","lang":"en","description":"CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-08T18:20:55.756Z"}}]}}}