CVE-2026-118383: Use-after-free vulnerability in MongoDB
CVE-2026-118383 is a critical use-after-free in MongoDB Server’s primary catch-up process (CVSS 9.5) affecting replica set members, shards, and config servers during the transition to primary. An unauthenticated attacker plants two ping requests with readConcern.afterOpTime values to create stale waiters, then exploits a subsequent failover where the primary cleanup runs twice on freed memory, resulting in a crash or potential arbitrary code execution. The vulnerability requires coordination of an election where the targeted member lags behind peers, but the attacker-controlled waiter setup persists until the instance restarts. Datadog Security Labs reproduced the crash via SIGSEGV in CatchupState::abort_inlock() and demonstrated the attack with unauthenticated requests on MongoDB 8.0.34, with fixes available for versions 4.4 through 9.0.