Pre-authentication use-after-free in MongoDB Server replica set primary catch-up
A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in MongoDB 4.4.32, MongoDB 5.0.35, MongoDB 6.0.30 and 11 more.
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.
Briefing
Written from the sources below · deepseek-v4.1-flash
A pre-authentication use-after-free in MongoDB Server's replication component can trigger when a newly elected replica set primary completes catch-up. Replica set members, including shard and config server members of sharded clusters, are affected; standalone mongod instances are not.
Why it mattersPublic exploit material exists, so unauthenticated attackers can target exposed replica set members for crash or possible code execution.
ActionApply the vendor mitigation or upgrade to a fixed MongoDB Server release; if unavailable, restrict network access to replica set members.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| MongoDB | MongoDB | >=4.4.0 <4.4.32, >=5.0.0 <5.0.35, >=6.0.0 <6.0.30, >=7.0.0 <7.0.48, >=8.0.0 <8.0.37, >=8.3.0 <8.3.16, >=9.0.0 <9.0.7 | 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16, 9.0.7 |
| MongoDB | Server | >=4.4.0 <4.4.32, >=5.0.0 <5.0.35, >=6.0.0 <6.0.30, >=7.0.0 <7.0.48, >=8.0.0 <8.0.37, >=8.3.0 <8.3.16, >=9.0.0 <9.0.7 | 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16, 9.0.7 |
Exploit evidence
1 public sources
Coverage
News and research mentioning this CVE
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in MongoDB, strongest first
Embed
A live severity badge for an advisory, README or ticket