CVE-2022-2251: OS Command Injection

Published Jan 17, 2023
·
Updated

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.

Affected Software

3 affected components
GitLab Runner<15.3.5
GitLab Runner>=15.4.0<15.4.4
GitLab Runner>=15.5.0<15.5.2

Event History

Jan 17, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-2251?

CVE-2022-2251 is a vulnerability in GitLab Runner that allows a user to execute commands in the runner as another user by creating a branch with a specially crafted name.

2

What versions of GitLab Runner are affected by CVE-2022-2251?

All versions of GitLab Runner prior to 15.3.5, 15.4 prior to 15.4.4, and 15.5 prior to 15.5.2 are affected by CVE-2022-2251.

3

How can the CVE-2022-2251 vulnerability be exploited?

The CVE-2022-2251 vulnerability can be exploited by creating a branch with a specially crafted name and getting another user to trigger a pipeline.

4

What is the severity of the CVE-2022-2251 vulnerability?

The severity of the CVE-2022-2251 vulnerability is high with a CVSS score of 8 out of 10.

5

Where can I find more information about CVE-2022-2251?

You can find more information about CVE-2022-2251 on the GitLab CVE page and the GitLab Runner GitHub issue page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203