Skip to content

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

CriticalCVSS 9.5
Published
Updated
Exploit status
No public exploit known

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

ProductAffected versionsFixed in
MongoDB Server >= 9.0.0, < 9.0.7 9.0.7
MongoDB Server >= 8.3.0, < 8.3.16 8.3.16
MongoDB Server >= 8.0.0, < 8.0.37 8.0.37
MongoDB Server >= 7.0.0, < 7.0.48 7.0.48
MongoDB Server >= 6.0.0, < 6.0.30 6.0.30
MongoDB Server >= 5.0.0, < 5.0.35 5.0.35
MongoDB Server >= 4.4.0, < 4.4.32 4.4.32

References