RCE in Gitlab Runner
CVE-2022-2251
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.
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.012 (64.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 4.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N.
Affected products
- Gitlab Runner — versions <15.3.5, >=15.4, <15.4.4, >=15.5, <15.5.2
- Gitlab Runner
Weakness classification (CWE)
References
- cve@gitlab.com (Exploit, Issue Tracking, Vendor Advisory)
- cve@gitlab.com (Permissions Required, Third Party Advisory)
- cve@gitlab.com (Vendor Advisory)
Frequently asked questions
- What is CVE-2022-2251?
- CVE-2022-2251 is a medium-severity vulnerability in Gitlab Runner, classified under OS Command Injection. CVSS score: 4.8/10. Published 2023-01-17.
- How severe is CVE-2022-2251?
- Medium severity. CVSS v3 base score is 4.8 out of 10.