CVE-2024-9631 Inefficient Algorithmic Complexity in GitLab

High 7.5 Published Updated

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.

Weakness: CWE-770, CWE-407

Which versions are affected by CVE-2024-9631?

1 open source package ship an affected version, including gitlab. It affects 1 product.

PackageAffectedFixed in
gitlab BitnamiFrom 13.6.017.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.

All Gitlab Gitlab vulnerabilities

Sources

Also known as BIT-gitlab-2024-9631, GHSA-rfm6-5393-x9wf, UBUNTU-CVE-2024-9631.

Is CVE-2024-9631 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free