Vulnerability Details : CVE-2022-2251
Potential exploit
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.
Products affected by CVE-2022-2251
- cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*
- cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*
- cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-2251
8.34%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 91 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-2251
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.8
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N |
1.2
|
3.6
|
GitLab Inc. | |
8.0
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
2.1
|
5.9
|
NIST |
CWE ids for CVE-2022-2251
-
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.Assigned by: nvd@nist.gov (Primary)
-
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.Assigned by:
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)
- nvd@nist.gov (Primary)
References for CVE-2022-2251
-
https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json
2022/CVE-2022-2251.json · master · GitLab.org / cves · GitLabVendor Advisory
-
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386
Command injection via branch name in CI pipelines. (#27386) · Issues · GitLab.org / gitlab-runner · GitLabExploit;Issue Tracking;Vendor Advisory
-
https://hackerone.com/reports/1063511
HackerOnePermissions Required;Third Party Advisory
Jump to