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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.012 (66.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 66th percentile — 66.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.012 · newest: 0.012 · change: 0.000
Affected products
- GitLab Runner — versions <15.3.5, >=15.4, <15.4.4, >=15.5, <15.5.2
- GitLab Runner
Weakness classification (CWE)
References
- gitlab.com/gitlab-org/gitlab-runner/-/issues/27386 (Exploit, Issue Tracking, Vendor Advisory)
- hackerone.com/reports/1063511 (Permissions Required, Third Party Advisory)
- gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json (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.