← Lab /Security & privacy

Unauthenticated ping requests can crash MongoDB replica set primaries (CVE-2026-118383)

An unauthenticated attacker can trigger a use-after-free crash in MongoDB replica set primaries by sending two ping requests during a specific election window.

Security & privacy Datadog Security Labs 11 Nov 2026 Disclosure Prototype evidence

Published as “CVE-2026-118383: Use-after-free vulnerability in MongoDB”

Why it matters

Operators must patch affected MongoDB versions or restrict network access to prevent potential service disruption.

Summary

The researchers built a four-member replica set using official MongoDB binaries and showed that sending two unauthenticated ping commands with a readConcern.afterOpTime value can plant stale waiters. When the member later becomes primary and finishes its catch-up phase, the double cleanup uses freed memory and the server crashes with a segmentation fault. The crash was reproduced on version 8.0.34, while the patched 8.0.37 rejected the requests. No code execution was demonstrated and the authors note that real-world success rates are unknown.

What they found 1

  1. Two unauthenticated ping requests can cause a segmentation fault crash in MongoDB 8.0.34 during primary catch-up.

    “The target member exited catch-up twice, logged SIGSEGV, and the mongod process crashed”

Caveats 7

  • The authors did not achieve arbitrary code execution, only a crash.
  • They could not estimate how quickly a real attack would succeed in production environments.
  • Success depends on a specific election and catch-up timing that the attacker cannot control.
  • The lab setup does not reflect all possible production topologies.
  • Only MongoDB versions 8.0.34 and 8.0.37 were tested.
  • The attack requires the victim to be in a specific election window, which may be rare.
  • No code execution was demonstrated; only a denial-of-service crash.

What’s new here 4

  • Identified an unauthenticated ping request path that can trigger a use-after-free crash.
  • Demonstrated the crash on MongoDB Server 8.0.34 in a controlled lab replica set.
  • Provided concrete log signatures to detect attempted exploitation.
  • Published the list of fixed MongoDB releases across all supported branches.

In the news