8.0
HIGH
CVE-2022-2251
GitLab Runner Branch Name Sanitization RCE
Description

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.

INFO

Published Date :

Jan. 17, 2023, 9:15 p.m.

Last Modified :

Aug. 8, 2023, 2:22 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

2.1
Affected Products

The following products are affected by CVE-2022-2251 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gitlab gitlab_runner
2 Gitlab runner
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-2251.

URL Resource
https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json Vendor Advisory
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386 Exploit Issue Tracking Vendor Advisory
https://hackerone.com/reports/1063511 Permissions Required Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-2251 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-2251 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Jan. 25, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json No Types Assigned https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2251.json Vendor Advisory
    Changed Reference Type https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386 No Types Assigned https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27386 Exploit, Issue Tracking, Vendor Advisory
    Changed Reference Type https://hackerone.com/reports/1063511 No Types Assigned https://hackerone.com/reports/1063511 Permissions Required, Third Party Advisory
    Added CWE NIST CWE-77
    Added CPE Configuration OR *cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:* versions up to (excluding) 15.3.5 *cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:* versions from (including) 15.4.0 up to (excluding) 15.4.4 *cpe:2.3:a:gitlab:runner:*:*:*:*:*:*:*:* versions from (including) 15.5.0 up to (excluding) 15.5.2
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-2251 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.54 }} 0.12%

score

0.77772

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability