Critical MongoDB flaw CVE-2026-118383 can crash lagging replicas on failover
Original title: Critical Pre-Auth MongoDB Flaw (CVE-2026-118383) Can Crash Lagging Servers on Failover
Unauthenticated pings plant waiters that crash a replica only if it later wins an election while behind; MongoDB reports no known attacks.
Datadog Security Labs reproduced a use-after-free in MongoDB Server replica set members, including shard and config servers. Two unauthenticated ping commands with readConcern.afterOpTime leave waiters that crash the member if it is elected primary while still behind and then finishes catch-up. MongoDB, which found the bug, shipped fixes this week and said it is not aware of exploitation. A standalone mongod is not affected; Atlas gets fixes in maintenance, while self-managed sets must upgrade every member.
Unconfirmed: MongoDB says it is not aware of exploitation, and a GitHub claim that 8.2.12 still crashes used a test-only setting.
- MongoDB rated CVE-2026-118383 at 9.5 on CVSS 4.0.
- A lab member on 8.0.34 segfaulted; 8.0.37 rejected both requests as unauthorized.
- Researchers did not achieve code execution, though MongoDB says it may be possible.
- A GitHub proof of concept needs a test-only setting a remote attacker cannot enable.
- The 8.2 branch is not listed as affected and reached end of life on July 31.
Impact: Unauthenticated crash of a lagging replica after failover
| Product | Affected | Fixed in |
|---|---|---|
| MongoDB Server | Every earlier release in each affected branch, including 8.0.34; standalone mongod and the 8.2 branch are not listed | Fixed release per affected branch; 8.0.37 confirmed in the lab |
- 1.Upgrade every self-managed replica set member, including containers and offline members, to the fixed release.
- 2.Restrict database network access to required systems until members are upgraded.
- 3.Search logs for unauthenticated afterOpTime pings and a double catch-up exit followed by a fatal signal.
- CVEs
- CVE-2026-118383
- Vendors
- MongoDB
- Products
- MongoDB ServerMongoDB Atlas
- Organizations
- Datadog Security Labs
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-118383 | Use-after-free in MongoDB Server replica set catch-up | 9.5 | — |
From the original article
4 min read at thehackernews.com
A critical flaw in MongoDB Server allows an unauthenticated attacker to send two requests that trigger a crash on the database server. The crash occurs only if that server is later chosen to take over as the main server while it still lacks some recent changes. MongoDB, the company that makes the database, released fixed versions earlier this week.
thehackernews.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.