CVE-2026-118383
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.
How to fix
- MongoDB MongoDB Server9.0.7, 8.3.16, 8.0.37, 7.0.48, 6.0.30, 5.0.35, 4.4.32 or later
- mongodb mongodb4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16, 9.0.7 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB MongoDB Server | 9.0.0 ≤ v < 9.0.7, 8.3.0 ≤ v < 8.3.16, 8.0.0 ≤ v < 8.0.37, 7.0.0 ≤ v < 7.0.48, 6.0.0 ≤ v < 6.0.30, 5.0.0 ≤ v < 5.0.35, 4.4.0 ≤ v < 4.4.32 | 9.0.7, 8.3.16, 8.0.37, 7.0.48, 6.0.30, 5.0.35, 4.4.32 |
| mongodb mongodb | 4.4.0 ≤ v < 4.4.32, 5.0.0 ≤ v < 5.0.35, 6.0.0 ≤ v < 6.0.30, 7.0.0 ≤ v < 7.0.48, 8.0.0 ≤ v < 8.0.37, 8.3.0 ≤ v < 8.3.16, 9.0.0 ≤ v < 9.0.7 | 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16, 9.0.7 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.