MongoDB patches unauthenticated use-after-free in replica sets (CVE-2026-118383)
Original title: Critical MongoDB Use-After-Free Vulnerability Allows Remote Code Execution Without Authentication
CVSS 9.5 flaw can crash a replica-set member or, MongoDB says, run code; Datadog reproduced only the crash.
MongoDB patched CVE-2026-118383, a use-after-free in replication catch-up that unauthenticated network attackers can trigger with ping requests carrying readConcern.afterOpTime. Replica set members, including shard and config servers, are affected; standalone mongod is not. The company found the bug internally and says it knows of no exploitation. Datadog Security Labs crashed MongoDB 8.0.34 but did not achieve code execution; 8.0.37 rejected the pings.
Unconfirmed: Remote code execution is MongoDB’s assessment; Datadog reproduced a crash but not code execution.
- 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.
- Attack complexity is high because lag and a later election are required.
- Authentication does not stop the unauthenticated ping step.
- Atlas clusters update during maintenance; deferred maintenance should be applied.
- Logs may show afterOpTime pings, log ID 21363, then a fatal signal.
Impact: server crash or possible code execution in mongod
| Product | Affected | Fixed in |
|---|---|---|
| MongoDB | 9.0, 8.3, 8.0, 7.0, 6.0, 5.0, and 4.4 replica set members before the fixed releases | 9.0.7, 8.3.16, 8.0.37, 7.0.48, 6.0.30, 5.0.35, 4.4.32 |
- 1.Upgrade every replica set member, including containers and offline nodes, to the fixed branch release.
- 2.Until patched, restrict network access to systems that need it.
- 3.Review logs for unauthenticated afterOpTime pings, catch-up exit log ID 21363, and a fatal signal.
- CVEs
- CVE-2026-118383
- Vendors
- MongoDB
- 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
2 min read at gbhackers.com
MongoDB has patched a critical use-after-free flaw, tracked as CVE-2026-118383 with a CVSS score of 9. 5, that unauthenticated attackers can exploit over the network. The company found the bug internally and says it knows of no exploitation attempts so far.
By Divya · gbhackers.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.