CVE-2026-118383 use-after-free can crash MongoDB replica set primaries
Original title: CVE-2026-118383: Use-after-free vulnerability in MongoDB
Datadog crashed Server 8.0.34 with two unauthenticated pings; MongoDB reports no known attacks and ships fixes on seven branches.
MongoDB disclosed CVE-2026-118383 on November 10, a critical use-after-free (CVSS v4.0 9.5) in replica set primary catch-up that can terminate the server or, under some conditions, run arbitrary code. Standalone mongod is unaffected; shard and config server replica members are in scope. Datadog reproduced a segmentation fault on 8.0.34 after two unauthenticated ping requests planted waiters, then a later election completed catch-up. Authentication does not block those pings. MongoDB said it found the bug internally and knew of no exploitation.
Unconfirmed: MongoDB reported no known exploitation; Datadog showed a crash, not code execution.
- First fixed releases are 9.0.7, 8.3.16, 8.0.37, 7.0.48, 6.0.30, 5.0.35, and 4.4.32.
- The attacker cannot force replication lag or the election that triggers the crash.
- Patched 8.0.37 rejected the same unauthenticated waiter requests as Unauthorized.
- Atlas clusters are upgraded automatically unless customers defer maintenance.
- Datadog's lab crash left the test cluster without a primary.
Impact: server crash or possible arbitrary code execution
| Product | Affected | Fixed in |
|---|---|---|
| MongoDB Server | — | 9.0.7, 8.3.16, 8.0.37, 7.0.48, 6.0.30, 5.0.35, 4.4.32 |
- 1.Upgrade every affected replica set member to the fixed release for its branch.
- 2.Restrict network access to MongoDB until the upgrade is complete.
- 3.Verify the running version on every member, including containers and offline nodes.
- CVEs
- CVE-2026-118383
- Vendors
- MongoDB
- Products
- MongoDB Server
- 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
6 min read at securitylabs.datadoghq.com
We reproduced CVE-2026-118383, a critical use-after-free in MongoDB Server's primary catch-up process that unauthenticated clients can set up, and explain how to detect and remediate it.
By @datadoghq · securitylabs.datadoghq.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.