CVE-2025-7259 Certain Queries with Duplicate _id Fields May Cause MongoDB Server to Crash

Medium 6.5 Published Updated

Authorized users can crash the MongoDB server by issuing queries with duplicate _id fields, causing a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-7259?

CVE-2025-7259 is a medium-severity denial of service vulnerability in Mongodb Mongodb, published on 7 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An authorized user can issue queries with duplicate _id fields, that leads to unexpected behavior in MongoDB Server, which may result to crash. This issue can only be triggered by authorized users and cause Denial of Service. This issue affects MongoDB Server v8.1 version 8.1.0.

Weakness: CWE-843

Which versions are affected by CVE-2025-7259?

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

PackageAffectedFixed in
mongodb BitnamiFrom 8.1.08.2.0

Products include Mongodb Mongodb.

How do I fix CVE-2025-7259?

Upgrade mongodb to 8.2.0 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-2025-7259 being exploited?

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

All Mongodb Mongodb vulnerabilities

Sources

Also known as BIT-mongodb-2025-7259, GHSA-xg2f-3225-7hxr, UBUNTU-CVE-2025-7259.

Is CVE-2025-7259 in your software?

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

Check your SBOMs for free