- CVE-2026-118383 is a critical use-after-free in MongoDB Server’s primary catch-up process, with a CVSS v4.0 score of 9.5.
- Remote unauthenticated exploitation is possible during a specific window that the attacker cannot see.
- The issue affects replica-set members, while standalone mongod instances are not affected.
MongoDB Server has a critical use-after-free that affects replica-set members during the primary catch-up process, Datadog Security Labs disclosed on Nov 11, 2026. The vulnerability is tracked as CVE-2026-118383 and has a CVSS v4.0 score of 9.5.
An attacker without authentication could exploit the issue remotely during a specific window that the attacker cannot see. An unauthenticated client can prepare the crash with two ping requests, and enabling authentication does not prevent that setup.
The affected members include replica sets used by shards and config servers in sharded clusters. Standalone mongod instances are not affected. MongoDB is a source-available, cross-platform, document-oriented NoSQL database.
On this page
The crash follows an election and primary catch-up
The crash requires a member to win an election while it is behind another member. The attacker cannot cause the lag or the election, according to Datadog Security Labs.
An unauthenticated client can set up the crash with two ping requests because vulnerable servers accept ping before login. Turning on authentication does not prevent this preparation.
MongoDB 8.0.37 includes two server fixes
The published proof of concept identifies affected 8.0.x versions before 8.0.37, with 8.0.34 tested, and 8.2 builds before the backport, with 8.2.12 tested.
Two server fixes shipped in 8.0.37.
Fixed builds with authentication reject unauthenticated afterOpTime requests immediately with code 13, Unauthorized.
Datadog Security Labs said MongoDB announced a security update on Nov 10. The company said it found the vulnerability internally and was not aware of exploitation attempts at the time of its announcement.
Datadog did not achieve code execution, and its results do not show how often the vulnerability would succeed in other topologies. The published proof of concept also says that the waiter-poisoning primitive needs no credentials, while driving an election into catch-up requires replica-set control on authenticated deployments.
| Version or build | Detail |
|---|---|
| 8.0.x before 8.0.37 | 8.0.34 was tested |
| 8.0.37 | Two server fixes shipped |
| 8.2.12 | Tested on an 8.2 build before the backport |
What to do now
- Upgrade every affected replica-set member to a fixed release.
- Restricting network access can reduce exposure while you upgrade.
- If you defer MongoDB Atlas maintenance, apply the upgrade promptly.
FAQ
What is CVE-2026-118383?
It is a critical use-after-free in MongoDB Server’s primary catch-up process that affects replica-set members.
Can CVE-2026-118383 be exploited without authentication?
Remote unauthenticated exploitation is possible during a specific window. An unauthenticated client can prepare the crash with two ping requests.
Which MongoDB deployments are affected?
Replica-set members are affected, including shard and config server replica-set members in sharded clusters. Standalone mongod instances are not affected.
Which MongoDB version fixes the flaw?
The proof of concept identifies two server fixes shipped in MongoDB 8.0.37. Datadog recommends upgrading every affected replica-set member to a fixed release.
Was CVE-2026-118383 exploited in the wild?
Datadog Security Labs said MongoDB was not aware of exploitation attempts when it announced the security update. Datadog did not achieve code execution.
Sources
- CVE-2026-118383: Use-after-free vulnerability in MongoDB | Datadog Security Labs, Datadog Security LabsPrimary
- GitHub - googlesky/CVE-2026-118383: PoC for CVE-2026-118383, MongoDB unauthenticated use-after-free in ReplicationCoordinatorImpl::CatchupState during primary catch-up via readConcern.afterOpTime wai, GitHubPrimary
- Java4Shell (CVE-2026-114938) Enables Pre-Auth RCE in Jira, Jenkins, Keycloak on Java 17+ AVX-512 VBMI Servers, The Hacker News
- MongoDB, Wikipedia
How we checked this story
| Claim | Source | Status |
|---|---|---|
| A critical use-after-free in MongoDB Server affects replica-set members during the primary catch-up process. | Datadog Security Labs | Confirmed |
| The vulnerability permits remote unauthenticated exploitation only during a specific window that the attacker cannot see. | Datadog Security Labs | Confirmed |
| An unauthenticated client can set up the crash with two ping requests, and enabling authentication does not prevent it. | Datadog Security Labs | Confirmed |
| The vulnerability affects replica-set members used by shards and config servers, but standalone mongod instances are unaffected. | Datadog Security Labs | Confirmed |
| Datadog did not achieve code execution, and its results do not show how often the vulnerability would succeed in other topologies. | Datadog Security Labs | Confirmed |
| The proof of concept says the waiter-poisoning primitive requires no credentials, while driving the election into catch-up requires replica-set control on authenticated deployments. | googlesky, via GitHub | Confirmed |
| The proof of concept reports that fixed builds reject unauthenticated afterOpTime requests immediately with Unauthorized when authentication is enabled. | googlesky, via GitHub | Confirmed |
| securitylabs.datadoghq.com published its report on Nov 11, 2026. | securitylabs.datadoghq.com | Confirmed |
Could not verify
- Whether CVE-2026-118383 has been exploited in the wild is not established.
- How many MongoDB deployments or customers are affected is not established.
- Whether the vulnerability enables code execution in real-world deployments is not established.
- Whether the reported 8.2.12 behavior reflects an officially affected branch is not established.



