Skip to content
CVE PROGRAM SOURCE RECORD9.5 Critical

CVE-2026-118383

Pre-authentication use-after-free in MongoDB Server replica set primary catch-up

Description

A use-after-free in the replication component of MongoDB Server can occur when a newly elected replica set primary completes catch-up. The condition can be caused by requests that do not require authentication, and may result in the server terminating unexpectedly or, under certain conditions, arbitrary code execution in the context of the server process. Replica set members are affected, including the shard and config server replica set members of sharded clusters; standalone mongod instances are not.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

MongoDB MongoDB Server

Default version status: unaffected

  • 9.0.0 to < 9.0.7affected
  • 8.3.0 to < 8.3.16affected
  • 8.0.0 to < 8.0.37affected
  • 7.0.0 to < 7.0.48affected
  • 6.0.0 to < 6.0.30affected
  • 5.0.0 to < 5.0.35affected
  • 4.4.0 to < 4.4.32affected

References