Security alert · Critical
MongoDB replica sets: pre-auth use-after-free can crash servers (CVE-2026-118383)
· 3 minutes read · Centoculus Security Team
Known since
Affected: MongoDB Server replica set members, including shard and config server members of sharded clusters. Standalone mongod is not affected.
What happened
On 10 November 2026, MongoDB disclosed CVE-2026-118383, a use-after-free in the replication component of MongoDB Server. It is rated 9.0 under CVSS. The flaw can occur when a newly elected replica set primary finishes catch-up. Requests that need no authentication can trigger it. The result can be that the server process stops unexpectedly. Under certain conditions, it can also lead to arbitrary code execution in the context of the server process.
According to The Hacker News, the risk is to a replica set member that has fallen behind and then becomes primary, for example during a failover. MongoDB has released fixes. The vulnerability is not listed in CISA's catalogue of known exploited vulnerabilities, and none of the sources report attacks.
Who is affected
- Affected: mongod processes that run as members of a replica set. This includes the shard replica sets and config server replica sets of sharded clusters.
- Not affected: standalone mongod instances that are not part of a replica set.
The flaw can be triggered before authentication, so turning on authentication does not protect you. The highest risk is to replica set members that untrusted networks or many application hosts can reach.
What to do now
- List your replica set members. On each MongoDB server, check whether mongod runs as part of a replica set (see the next section). Standalone instances need no urgent action for this CVE.
- Find the fixed version for your release series. The MongoDB ticket SERVER-138119 (linked below) is part of the fix. It lists fix versions 9.0.7, 8.3.16, 8.0.37, 7.0.48, 6.0.30, 5.0.35 and 4.4.32. Compare this with SERVER-138175 to confirm the version for your series.
- Back up your configuration. Save /etc/mongod.conf (or your equivalent) and confirm that a recent backup of your data exists.
- Upgrade one member at a time. Start with the secondaries. Upgrade the package (for example
apt install mongodb-orgordnf update mongodb-org), restart mongod, and wait until the member shows SECONDARY again inrs.status(). Then runrs.stepDown()on the primary and upgrade it last. In sharded clusters, upgrade the config server replica set and every shard replica set. - Limit network access. Port 27017 (or your custom port) should only be reachable from application servers and the other cluster members. Use your firewall or bindIp to enforce this, both now and after the update.
- Watch for crashes. Check the mongod logs and your service monitoring for unexpected restarts, especially around elections and failovers.
How to check whether you are affected
- Check the version with
mongod --version, or in mongosh withdb.version(). - Check the replica set membership in mongosh with
db.hello().setName. If a name is returned, the instance is a replica set member and is affected until it is updated. If nothing is returned andrs.status()reports that the instance is not running with replication, it is a standalone instance and is not affected. - For sharded clusters, run the check on every shard member and every config server member.
- If a member is on an older version than the fixed version for its release series, update it.
Sources
If you run databases, also check
Related posts
Alerts ·
Citrix NetScaler ADC and Gateway: critical memory flaws allow denial of service (CVE-2026-120868)
Citrix has fixed nine critical memory flaws in NetScaler ADC and NetScaler Gateway that can lead to denial of service. CVE-2026-120868 affects every deployment. Update to 14.1-73.57, 13.1-64.39 or the matching FIPS builds.
Alerts ·
Node.js: HTTP/2 and HTTPS flaws let clients crash servers and read other users' data
Node.js fixed 16 vulnerabilities, seven of them rated high. Unauthenticated clients can crash HTTP/2 servers or read memory from other connections, including TLS keys. The fixed versions are 22.23.5, 24.22.3 and 26.13.1.
Alerts ·
Mittwald hosting attacked via MCP server: admin services offline, customers should check
Web hoster Mittwald is in emergency mode after an attack through an MCP server. Its customer admin services are switched off. Customers should rely only on official updates and get ready to check their accounts and websites.