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, 68.1th percentile (scored ); unchanged over 30 days. About EPSS.
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)