Cyber Resilience

CVE-2022-2251

MediumPublic PoCRCE

Published: 17 January 2023

Published
17 January 2023
Modified
08 April 2025
KEV Added
Patch
CVSS Score v3.1 4.8 CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N
EPSS Score 0.0220 84.8th percentile
Risk Priority 11 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2022-2251 is a medium-severity OS Command Injection (CWE-78) vulnerability in Gitlab Runner. Its CVSS base score is 4.8 (Medium).

Operationally, ranked in the top 15.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis

CVE-2022-2251 is an improper sanitization flaw affecting branch names in GitLab Runner, impacting all versions prior to 15.3.5, 15.4.x prior to 15.4.4, and 15.5.x prior to 15.5.2. The issue stems from inadequate handling of specially crafted branch names, classified under CWE-78, and carries a CVSS 3.1 score of 4.8.

An attacker who can create a branch with a malicious name and then induce another user to trigger a pipeline can cause the runner to execute arbitrary commands under the privileges of that second user. The attack requires the victim to interact with the pipeline and is constrained by the need for network access and specific user actions.

Official GitLab advisories and the associated CVE record direct users to upgrade to the fixed releases listed above; the patches address the sanitization gap in the runner's branch-name processing logic.

EPSS for the vulnerability rose from a low baseline to a peak of 0.1551 on 2025-12-11 before receding to the current value of 0.0220, indicating that exploitation interest increased after public disclosure.

EU & UK References

Vulnerability details

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…

more

trigger a pipeline to execute commands in the runner as that other user.

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

gitlab
runner
≤ 15.3.5 · 15.4.0 — 15.4.4 · 15.5.0 — 15.5.2

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-78

Platform-independent apps typically execute inside a managed runtime or sandbox that restricts direct OS command execution, reducing the ability to exploit OS command injection.

addresses: CWE-78

Validates inputs to block special elements that would alter OS command execution.

References