CVE-2024-9631 Inefficient Algorithmic Complexity in GitLab
Attackers can cause denial of service by triggering slow diff rendering in GitLab merge requests with conflicts.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-9631?
CVE-2024-9631 is a high-severity denial of service vulnerability in Gitlab Gitlab, published on 5 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in GitLab CE/EE affecting all versions starting from 13.6 prior to 17.2.9, starting from 17.3 prior to 17.3.5, and starting from 17.4 prior to 17.4.2, where viewing diffs of MR with conflicts can be slow.
Which versions are affected by CVE-2024-9631?
1 open source package ship an affected version, including gitlab. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitlab Bitnami | From 13.6.0 | 17.4.2 |
Products include Gitlab Gitlab.
How do I fix CVE-2024-9631?
Upgrade gitlab to 17.4.2 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-9631 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-9631 exists.
Other vulnerabilities in Gitlab Gitlab
- CVE-2026-97229 GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound
- CVE-2026-85706 GitLab Community Edition and Enterprise Edition Path Traversal
- CVE-2023-7028 GitLab Community and Enterprise Editions Improper Access Control
- CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution
- CVE-2021-39935 GitLab Community and Enterprise Editions Server-Side Request Forgery (SSRF)
Sources
Also known as BIT-gitlab-2024-9631, GHSA-rfm6-5393-x9wf, UBUNTU-CVE-2024-9631.