MongoDB Pre-Auth Flaw Crashes Lagging Replicas Winning Elections
Original source
Critical Pre-Auth MongoDB Flaw (CVE-2026-118383) Can Crash Lagging Servers on Failover
The Hacker News →A use-after-free vulnerability in MongoDB Server (CVE-2026-118383) crashes replica set members when unauthenticated attackers send ping commands with readConcern.afterOpTime values to plant “waiters” in memory. The crash occurs only when that compromised server later wins an election despite lagging in replication. During the transition to primary, a cleanup routine executes twice on freed memory, causing a segmentation fault before the server begins accepting writes.
The vulnerability carries a CVSS 9.5 severity rating and affects replica set members used in sharded clusters, but not standalone instances. Datadog Security Labs confirmed authentication does not prevent the attack and reproduced segmentation faults on vulnerable versions. MongoDB released patches restricting readConcern.afterOpTime to system-level access and preventing duplicate cleanup runs. Atlas clusters receive patches during maintenance windows; self-managed deployments must manually upgrade all replica members and verify post-upgrade versions.
An attacker cannot force servers to fall behind or observe failover elections—the conditions must align through normal replica set behavior. MongoDB discovered the flaw internally with no reports of active exploitation. Until patches are deployed, restricting network access to the database to only authorized systems provides interim mitigation without fixing the underlying issue.
Read the full article
Continue reading at The Hacker News →This is an AI-generated summary. Read the original for the full story.