CVE-2022-2251
Published: 17 January 2023
Summary
CVE-2022-2251 is a medium-severity OS Command Injection (CWE-78) vulnerability in Gitlab Runner. Its CVSS base score is 4.8 (Medium).
Operationally, ranked in the top 15.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
CVE-2022-2251 is an improper sanitization flaw affecting branch names in GitLab Runner, impacting all versions prior to 15.3.5, 15.4.x prior to 15.4.4, and 15.5.x prior to 15.5.2. The issue stems from inadequate handling of specially crafted branch names, classified under CWE-78, and carries a CVSS 3.1 score of 4.8.
An attacker who can create a branch with a malicious name and then induce another user to trigger a pipeline can cause the runner to execute arbitrary commands under the privileges of that second user. The attack requires the victim to interact with the pipeline and is constrained by the need for network access and specific user actions.
Official GitLab advisories and the associated CVE record direct users to upgrade to the fixed releases listed above; the patches address the sanitization gap in the runner's branch-name processing logic.
EPSS for the vulnerability rose from a low baseline to a peak of 0.1551 on 2025-12-11 before receding to the current value of 0.0220, indicating that exploitation interest increased after public disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-34529
Vulnerability 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…
more
trigger a pipeline to execute commands in the runner as that other user.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.