CVE-2024-4025
GitLab vulnerability analysis and mitigation

Overview

CVE-2024-4025 is a Denial of Service (DoS) vulnerability in GitLab CE/EE caused by inefficient regular expression complexity when processing crafted Markdown pages. It affects all GitLab CE/EE versions from 7.10.0 up to (but not including) 16.11.5, versions 17.0.0 up to (but not including) 17.0.3, and version 17.1.0. The vulnerability was disclosed on June 26, 2024, with patches released the same day. It carries a CVSS v3.1 base score of 7.5 (High) (GitLab Advisory, Red Hat CVE).

Technical details

The root cause is classified as CWE-1333 (Inefficient Regular Expression Complexity), also known as ReDoS (Regular Expression Denial of Service), mapped to CAPEC-492 (Regular Expression Exponential Blowup). An unauthenticated remote attacker can submit a specially crafted Markdown page to a vulnerable GitLab instance, triggering catastrophic backtracking in a regular expression parser and causing excessive CPU consumption. No authentication, user interaction, or special privileges are required for exploitation, making this a low-complexity, network-accessible attack (GitLab Advisory, Red Hat CVE).

Impact

Successful exploitation results in a high availability impact, rendering the affected GitLab instance unresponsive or severely degraded for all users. There is no confidentiality or integrity impact — the attack is purely a denial of service. Given the broad version range affected (from 7.10 onward), a large number of self-hosted GitLab deployments could be disrupted, potentially halting CI/CD pipelines, code reviews, and other development workflows (Red Hat CVE, GitLab Advisory).

Exploitability

No public proof-of-concept exploit code or active in-the-wild exploitation has been reported for CVE-2024-4025. The EPSS score is very low at approximately 0.018%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been identified (Red Hat CVE).

Exploitation steps

  1. Reconnaissance: Identify internet-facing GitLab CE/EE instances running versions between 7.10.0 and 16.11.4, 17.0.0–17.0.2, or exactly 17.1.0 using tools like Shodan or Censys, or by checking the GitLab version endpoint.
  2. Craft malicious Markdown: Construct a Markdown document containing a payload designed to trigger catastrophic backtracking in GitLab's Markdown rendering regular expressions (e.g., deeply nested or repetitive patterns that exploit the vulnerable regex engine).
  3. Submit the payload: Send the crafted Markdown content to a publicly accessible GitLab endpoint that renders Markdown, such as a project wiki page, issue description, or merge request comment — no authentication required.
  4. Trigger DoS: The server-side Markdown parser processes the malicious input, causing the regex engine to enter exponential backtracking, consuming excessive CPU resources and causing the GitLab service to become unresponsive or crash (GitLab Advisory).

Indicators of compromise

  • Logs: Sudden spike in GitLab application response times or timeouts in production.log; repeated requests to Markdown-rendering endpoints (e.g., issue creation, wiki edits, MR descriptions) from the same or rotating IP addresses.
  • Process: Sustained high CPU utilization by GitLab Puma/Unicorn worker processes without a corresponding increase in legitimate user traffic.
  • Network: Unusual volume of POST requests to GitLab endpoints that accept Markdown input (e.g., /issues, /wikis, /merge_requests) from a single source or small range of IPs.

Mitigation and workarounds

GitLab released patched versions on June 26, 2024: 16.11.5, 17.0.3, and 17.1.1. Administrators should upgrade to one of these versions immediately. No official configuration-based workaround has been published; upgrading is the only recommended remediation. Rate-limiting or WAF rules on Markdown-accepting endpoints may provide partial mitigation for self-hosted instances unable to upgrade immediately (GitLab Advisory).

Community reactions

The Belgian CERT (CERT.be) issued advisories in multiple languages warning about multiple vulnerabilities patched in GitLab CE/EE, including CVE-2024-4025, urging administrators to apply updates promptly (CERT.be Advisory). Security news outlets such as SecurityOnline.info and TheCyberThrone covered the June 2024 GitLab patch release, noting the DoS risk alongside other vulnerabilities addressed in the same batch. Community discussion on Mastodon (infosec.exchange) highlighted the patch release shortly after disclosure.

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-2026-16553MEDIUM5.4
  • GitLab logoGitLab
  • gitlab
NoYesJul 29, 2026
CVE-2026-6336MEDIUM5.3
  • GitLab logoGitLab
  • gitlab-workhorse-ce-18.8
NoYesJul 29, 2026
CVE-2026-6267MEDIUM5.3
  • GitLab logoGitLab
  • gitlab-rails-ce-18.7
NoYesJul 29, 2026
CVE-2026-3093MEDIUM4.7
  • GitLab logoGitLab
  • gitlab-rails-ce-fips-18.6
NoYesJul 29, 2026
CVE-2026-4672MEDIUM4.3
  • GitLab logoGitLab
  • gitlab-rails-ce-18.6
NoYesJul 29, 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