CVE-2026-118383: A use-after-free in the replication component of MongoDB Server can occur when a newly elected replica set primary completes catch-up.
Critical CVSS 10.0
- CVE id
- CVE-2026-118383
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| MongoDB Runtimes and servers |
>= 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 |
How to fix it
Upgrade MongoDB to the fixed release of the line you run: 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16, 9.0.7.
mongod --version
- Install the patched MongoDB release of your series (the mongo image tag or the mongodb-org packages); on Atlas, MongoDB patches the servers.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.