MongoDB Server: Use-after-free Denial of Service (CVE-2026-118383)
A critical use-after-free vulnerability in MongoDB replica set members allows an unauthenticated attacker to cause a server crash by sending two specially crafted requests that trigger a double-cleanup event during failover.
CVE search metadata
CVE search record: CVE-2026-118383. Severity: critical. CVSS: 9.0. EPSS: 0.71%. KEV: no. Product: MongoDB Server. Brief: MongoDB Server: Use-after-free Denial of Service (CVE-2026-118383). Brief link: https://feed.craftedsignal.io/briefs/2026-11-mongodb-crash-cve-2026-118383/
Triage facts
Revision 1- Applicability
- MongoDB Server
- Evidence
- Unknown
- Severity
- Critical
- Action
- Immediate escalation
- Sources
- 1 public source
- Freshness
- Revision 1Nov 12, 10:13 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- B1Likely
A critical use-after-free vulnerability, tracked as CVE-2026-118383, affects MongoDB replica set members, including shard and config server nodes in sharded clusters. An unauthenticated attacker can send two crafted ping commands containing a readConcern.afterOpTime value, which plants notification waiters on the server. If that replica member is later elected as the primary, the accumulated waiters trigger a double-cleanup of memory during the catch-up phase, leading to a segmentation fault and service disruption. Standalone mongod instances are not affected.
Impact
Successful exploitation results in a database service crash. While the researchers did not achieve arbitrary code execution in lab conditions, MongoDB acknowledged that the flaw may lead to arbitrary code execution under certain conditions. The impact is primarily a denial of service (DoS) in distributed MongoDB environments.
Recommendation
- Apply security patches provided by MongoDB for all replica set members immediately.
- Verify that all replica set members, including those in containers or temporarily offline during maintenance, are running the patched versions.
- Restrict network access to database infrastructure to authorized systems to prevent unauthenticated exploitation of the ping command.
- For MongoDB Atlas users, ensure automatic maintenance windows are active or perform manual upgrades if deferred.
Immediate actions
Upgrade all MongoDB replica set members to the latest patched version provided by the vendor.
Threat Hunt
Monitor server logs for simultaneous occurrence of ID 51803 (Slow query due to unauthenticated ping with readConcern.afterOpTime) followed by ID 21359 and 21363 (primary catch-up entry and exit) in rapid succession.
Data: MongoDB structured logs
Mitigations
Implement network ACLs to restrict access to MongoDB replica set ports to known application servers.
CVE-2026-118383