CVE-2022-4131
GitLab vulnerability analysis and mitigation

Overview

An issue has been discovered in GitLab CE/EE affecting all versions starting from 10.8 before 15.5.7, all versions starting from 15.6 before 15.6.4, and all versions starting from 15.7 before 15.7.2. The vulnerability allows an attacker to cause Denial of Service on a GitLab instance by exploiting a regex issue in how the application parses user agents (NVD, GitLab Release).

Technical details

The vulnerability is classified as a Regular Expression Denial of Service (ReDoS) issue with a CVSS v3.1 Base Score of 4.3 (MEDIUM) and vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L. The issue is related to CWE-1333 (Inefficient Regular Expression Complexity) and affects the device-detector component used for parsing user agent strings (NVD).

Impact

When exploited, this vulnerability can cause high CPU usage and lead to Denial of Service conditions on affected GitLab instances. The impact requires authenticated access, as attackers must have valid credentials to exploit the vulnerability (GitLab Release).

Mitigation and workarounds

The vulnerability has been fixed in GitLab versions 15.5.7, 15.6.4, and 15.7.2. Users are strongly recommended to upgrade to one of these patched versions immediately. GitLab.com is already running the patched version (GitLab Release).

Community reactions

The vulnerability was reported through GitLab's HackerOne bug bounty program by researcher 'afewgoats'. GitLab has classified this as a medium severity issue and included it in their security release along with several other security fixes (GitLab Release).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-8405HIGH8.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-12029HIGH8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-11984MEDIUM6.8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-4097MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-12734LOW3.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management