{"api_version":"1","generated_at":"2026-04-23T04:11:50+00:00","cve":"CVE-2022-2251","urls":{"html":"https://cve.report/CVE-2022-2251","api":"https://cve.report/api/cve/CVE-2022-2251.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-2251","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-2251"},"summary":{"title":"CVE-2022-2251","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.","state":"PUBLIC","assigner":"cve@gitlab.com","published_at":"2023-01-17 21:15:00","updated_at":"2023-08-08 14:22:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://hackerone.com/reports/1063511","name":"https://hackerone.com/reports/1063511","refsource":"MISC","tags":[],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json","name":"https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json","refsource":"CONFIRM","tags":[],"title":"2022/CVE-2022-2251.json · master · GitLab.org / cves · GitLab","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386","name":"https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386","refsource":"MISC","tags":[],"title":"Command injection via branch name in CI pipelines. (#27386) · Issues · GitLab.org / gitlab-runner · GitLab","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-2251","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2251","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Thanks [stanlyoncm](https://hackerone.com/stanlyoncm) for reporting this vulnerability through our HackerOne bug bounty program","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"2251","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gitlab","cpe5":"runner","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-2251","qid":"690975","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for gitlab (16f7ec68-5cce-11ed-9be7-454b1dd82c64)"}]},"source_records":{"cve_program":{"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"}]},"nvd":{"publishedDate":"2023-01-17 21:15:00","lastModifiedDate":"2023-08-08 14:22:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8,"baseSeverity":"HIGH"},"exploitabilityScore":2.1,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*","versionStartIncluding":"15.5.0","versionEndExcluding":"15.5.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*","versionStartIncluding":"15.4.0","versionEndExcluding":"15.4.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*","versionEndExcluding":"15.3.5","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}