CVE-2025-5982 Insufficient Granularity of Access Control in GitLab

Low 3.7 Published Updated

Attackers can bypass IP access restrictions in GitLab EE to view sensitive information, requiring an upgrade to patched versions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-5982?

CVE-2025-5982 is a low-severity authentication bypass vulnerability in Gitlab Gitlab, published on 12 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue has been discovered in GitLab EE affecting all versions from 12.0 before 17.10.8, 17.11 before 17.11.4, and 18.0 before 18.0.2. Under certain conditions users could bypass IP access restrictions and view sensitive information.

Weakness: CWE-1220

Which versions are affected by CVE-2025-5982?

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

PackageAffectedFixed in
gitlab BitnamiFrom 12.0.018.0.2

Products include Gitlab Gitlab.

How do I fix CVE-2025-5982?

Upgrade gitlab to 18.0.2 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2025-5982 being exploited?

There is no known exploitation of CVE-2025-5982 in the wild and no public exploit code.

All Gitlab Gitlab vulnerabilities

Sources

Also known as BIT-gitlab-2025-5982, GHSA-4m4w-7ph3-mcfg.

Is CVE-2025-5982 in your software?

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

Check your SBOMs for free