CVE-2023-6159
GitLab vulnerability analysis and mitigation

Overview

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in GitLab CE/EE, identified as CVE-2023-6159. The vulnerability affects all versions from 12.7 prior to 16.6.6, 16.7 prior to 16.7.4, and 16.8 prior to 16.8.1. The issue allows attackers to trigger a ReDoS attack through maliciously crafted input in a Cargo.toml file (GitLab Advisory).

Technical details

The vulnerability stems from improper handling of regular expressions in the Cargo.toml blob viewer functionality. The issue occurs when the application processes user input directly in regex patterns without proper validation. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. The weakness is classified as CWE-1333 (Inefficient Regular Expression Complexity) (NVD).

Impact

When exploited, this vulnerability can cause denial of service at the backend by consuming high CPU resources. The attack can be repeated to affect multiple CPU cores, potentially leading to a complete denial of service of the GitLab instance (GitLab Issue).

Mitigation and workarounds

GitLab has released patches in versions 16.6.6, 16.7.4, and 16.8.1 to address this vulnerability. Organizations running affected versions are strongly recommended to upgrade to the patched versions immediately. GitLab.com and GitLab Dedicated environments have already been updated with the security fixes (GitLab Advisory).

Community reactions

The vulnerability was responsibly disclosed through GitLab's HackerOne bug bounty program by researcher yvvdwf. GitLab has acknowledged and addressed the issue as part of their security release process (GitLab Advisory).

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-9222HIGH8.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-11224HIGH7.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 14, 2026
CVE-2026-0723HIGH7.4
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 20, 2026
CVE-2025-13781MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-3950LOW3.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026

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