CVE-2026-118383: Pre-authentication use-after-free in MongoDB Server replica set primary catch-up

Critical 9.5 EPSS 0.7% MongoDB Server

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.

What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms

What to do now

  1. Check whether you run MongoDB Server and which version (commands below).
  2. Install the fixed version for your system: see “Patch it” below.
  3. sudo systemctl restart mongod

Affected and fixed versions

Affected:

Patch it

Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.

Debian
not in distro repos: repo.mongodb.org, mongodb-org-server
Ubuntu
not in distro repos: repo.mongodb.org, mongodb-org-server
RHEL, AlmaLinux, Rocky, Oracle
not in distro repos: repo.mongodb.org, mongodb-org-server
Fedora
not packaged
SUSE / openSUSE
not in distro repos: repo.mongodb.org, mongodb-org-server
Amazon Linux
not in distro repos: repo.mongodb.org, mongodb-org-server
Arch Linux
not in official repos
Alpine
not packaged
FreeBSD
pkg update && pkg upgrade mongodb80 (mongodbNN)

General update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.

Sources

Page generated automatically from official sources on 2026-11-13 23:20 UTC. Always confirm with your vendor's advisory.