CVE-2026-118383 — MongoDB Server
One of 26 MongoDB Server vulnerabilities published together by NVD: our article covers all of them.
DatabasesVulnerabilitiesResearch article
MongoDB Server CVE-2026-118383: unauthenticated use-after-free in replica set primary catch-up (CVSS 9.0-9.5)
| CVE | CVE-2026-118383 |
|---|---|
| Vendor and product | MongoDB Server |
| Published | November 12, 2026 07:10 UTC |
| Research cut-off | November 12, 2026 05:50 UTC |
| Updated | November 17, 2026 15:00 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-10); CISA KEV catalog; 1 news report |
Update — November 17, 2026
- NVD finished its analysis of this CVE. (NVD record)
- NVD scored it CVSS 3.1 10.0 (Critical): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H. (NVD record)
Executive summary
CVE-2026-118383 is a use-after-free (CWE-416) in the replication code of MongoDB Server, reachable when a replica set member that has just won an election finishes catching up; it can be triggered by requests that need no authentication and can crash the server or, in some circumstances, execute attacker code in the server process [1]. The CNA scored it CVSS 4.0 9.5 CRITICAL (vector CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X) and CVSS 3.1 9.0 CRITICAL (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H) [1]. Affected are MongoDB Server lines 4.4, 5.0, 6.0, 7.0, 8.0, 8.3 and 9.0 below the fixed releases 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16 and 9.0.7; replica set members, including shard and config server members, are affected while standalone mongod is not [1]. Attack complexity is rated high, so exploitation likely depends on timing or state. The record is still Awaiting Analysis, the CVE is not in CISA KEV as of 2026-11-12, and Datadog Security Labs reports reproducing the flaw; in-the-wild exploitation is not established [1, 2, 3]. Defenders should inventory replica set members and upgrade them to the fixed release for their line, restricting network reach to mongod in the meantime.
Key points
- CVE-2026-118383 is a CWE-416 use-after-free in MongoDB Server replication, reachable by unauthenticated requests when a new primary finishes catch-up [1].
- The MongoDB CNA scored it CVSS 4.0 9.5 and CVSS 3.1 9.0, both CRITICAL, with high attack complexity [1].
- Fixed releases: 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16, 9.0.7; replica set members are affected, standalone mongod is not [1].
- Not in CISA KEV as of 2026-11-12; Datadog Security Labs reports reproducing the flaw, but in-the-wild exploitation is not established [2, 3].
- The NVD record is still Awaiting Analysis, and the root cause and indicators are not public in the reviewed sources [1].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-118383 [1] |
| Vendor / product | MongoDB, MongoDB Server [1] |
| Component | Replication (primary catch-up after election) [1] |
| Platform | Not stated in the record beyond the server product; platform-specific limits are not established by the reviewed sources |
| Published / last modified | 2026-11-10T21:18:58 / 2026-11-10T22:08:59 [1] |
| Record status | Awaiting Analysis [1] |
| CWE | CWE-416, Use After Free: memory is accessed after it has been released, so the program may read or write data that now belongs to something else [1] |
| CVSS 4.0 | 9.5 CRITICAL, CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X, scored by cna@mongodb.com (Secondary) [1] |
| CVSS 3.1 | 9.0 CRITICAL, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H, scored by cna@mongodb.com (Secondary) [1] |
| Related identifiers | Bug tracker entries SERVER-138119 and SERVER-138175 [1] |
No NVD-authored score is present; both scores come from the MongoDB CNA (CVE Numbering Authority) [1]. The two scores agree on severity band and differ only by scoring system.
Technical background
MongoDB Server (mongod) provides replica sets: groups of members holding copies of the same data, where one member is the primary accepting writes. When the primary becomes unavailable, members hold an election. The winner must then go through a catch-up phase to apply operations it has not yet replicated before it fully serves as primary. This is general replica set behaviour; the reviewed sources only state that the flaw sits in the replication component at the end of catch-up [1]. Sharded clusters use replica sets for their shards and for the config servers, so those members share the same code path [1]. A use-after-free is a memory-safety defect in which an object is released but a reference to it is still used afterwards.
Vulnerability description
The security properties at risk are availability (unexpected server termination), and, if memory corruption is steered, integrity and confidentiality via code execution inside the mongod process [1]. The triggering requests do not require authentication [1]. The flaw matters only for members of a replica set; a standalone mongod is stated as not affected [1]. Datadog Security Labs states it reproduced the issue and describes it as an issue in the primary catch-up process that clients lacking credentials can prepare [3]. Code execution is described as possible only in some circumstances, which the record does not enumerate [1]. What the flaw does not establish: the record gives no data-theft procedure, no persistence outcome, and no statement that a crash is always the result.
Root cause analysis
Confirmed: the weakness class is use-after-free in the replication component, tied to the moment a new primary completes catch-up [1]. Not established by the reviewed sources: which object is freed, which code path still holds the stale reference, and why unauthenticated requests can influence it. The bug tracker entries SERVER-138119 and SERVER-138175 likely hold engineering detail, but their contents are not in the pack [1]. Analyst assessment: a lifetime or ordering error between state torn down at the end of catch-up and operations still in flight is a plausible pattern, but this is inference only. Authentication does not help because, per the record, the requests involved are accepted without credentials [1].
Technical mechanics
The record supports only a coarse sequence (Illustrative where marked):
- A replica set member wins an election and begins catch-up [1].
- Requests from clients that have not authenticated reach the member while this state transition is under way [1].
- When catch-up finishes, the replication component releases memory that is later still referenced (use-after-free) [1].
- The stale access causes either a process termination or, in some circumstances, attacker-influenced execution within mongod [1].
Illustrative flow (not a source-documented trace)
election won -> catch-up -> catch-up completes
|
unauthenticated requests in flight
v
freed memory referenced again
v
crash OR code execution (rare)
The control that should have prevented this is correct object lifetime management in the replication code; authentication would not block it because none is needed [1]. Exact inputs, timing windows and memory layout details are Not established by the reviewed sources.
Attack surface and exploitation prerequisites
| Prerequisite | Status |
|---|---|
| Network access | Network vector in both scores; the attacker must reach mongod over the network [1] |
| Authentication / privilege | None required; PR:N in both vectors, and the description states unauthenticated requests suffice [1] |
| User interaction | None (UI:N in both vectors) [1] |
| Configuration | The target must be a replica set member, including shard or config server members; standalone is not affected [1] |
| Attacker position | Needs reachability to a replica set member's client interface; specific ports and interfaces are not stated in the sources |
| Complexity | High (AC:H) in both vectors, suggesting reliance on conditions outside attacker control such as the election and catch-up timing; the precise reason is known only from the vector and not explained [1] |
| Scope | CVSS 3.1 scope is Changed (S:C) and the 4.0 vector rates subsequent-system impacts high; the sources do not explain the cross-boundary effect [1] |
Whether an attacker can force an election is Not established by the reviewed sources.
Exploitation scenarios and attack lifecycle
Illustrative scenario 1 (availability): an internet- or network-reachable replica set loses its primary through failover; during the following catch-up, hostile unauthenticated traffic causes the new primary to crash, prompting another election and possibly repeated disruption. Defensive opportunities: restrict network access, alert on repeated primary changes and mongod process aborts.
Illustrative scenario 2 (code execution): the same trigger is shaped to run code as the mongod service account, giving access to stored data and to credentials or keys readable by that process. The record says execution is possible only under some conditions [1]. Nothing in the pack documents a full chain, so this is hypothetical.
Datadog reports reproducing the flaw; its excerpt does not say whether code execution was demonstrated [3].
Impact analysis
| Area | Demonstrated / stated | Plausible downstream |
|---|---|---|
| Confidentiality | High in both vectors [1] | Exposure of database contents if code execution is achieved |
| Integrity | High in both vectors [1] | Data modification or tampering via the compromised process |
| Availability | Server may terminate unexpectedly [1] | Failover churn, loss of write availability in a shard or config replica set |
| Authentication / authorization | Trigger needs no authentication [1] | Bypass of database access controls if code runs in-process |
| Privilege boundary | Execution in the server process context [1] | Pivot using host or network access held by the service |
| Data / privacy; business; regulatory | Not assessed in sources | Breach-notification or contractual duties if data is accessed; outage of dependent applications |
Affected products and versions
| Vendor | Product | Affected | Fixed | Source / qualification |
|---|---|---|---|---|
| MongoDB | Server 9.0 | >= 9.0.0, < 9.0.7 | 9.0.7 | CVE record from the vendor CNA [1] |
| MongoDB | Server 8.3 | >= 8.3.0, < 8.3.16 | 8.3.16 | [1] |
| MongoDB | Server 8.0 | >= 8.0.0, < 8.0.37 | 8.0.37 | [1] |
| MongoDB | Server 7.0 | >= 7.0.0, < 7.0.48 | 7.0.48 | [1] |
| MongoDB | Server 6.0 | >= 6.0.0, < 6.0.30 | 6.0.30 | [1] |
| MongoDB | Server 5.0 | >= 5.0.0, < 5.0.35 | 5.0.35 | [1] |
| MongoDB | Server 4.4 | >= 4.4.0, < 4.4.32 | 4.4.32 | [1] |
Exposure is limited to replica set members (including shard and config server members); standalone mongod is excluded [1]. NVD has not yet added its own CPE configurations because the record awaits analysis [1]. No separate vendor advisory page is in the pack, so these ranges rest on the CVE record alone. Platforms, MongoDB Atlas, and other distributions are Not established by the reviewed sources.
Exploitation and threat intelligence status
- CISA KEV: not listed as of 2026-11-12; this does not show the CVE is unexploited [2].
- Exploitation in the wild: Not established by the reviewed sources.
- Reproduction: Datadog Security Labs (2026-11-11) reports reproducing the flaw; this is a vendor-neutral research claim, not evidence of attacks [3].
- Public exploit code: none referenced in the pack; whether Datadog published technical detail is not shown.
- Threat actors, campaigns, sectors: none attributed.
- EPSS score: not included in the pack.
Because a reproduction exists and the trigger needs no credentials, defenders should assume exploit development is feasible (Analyst assessment).
Indicators of compromise
The reviewed sources provide no file hashes, IP addresses, domains, process command lines or log signatures [1, 3]. None are invented here. Any indicators later published must be validated and dated before being used for blocking, since they go stale.
Detection and exposure assessment
- Inventory every mongod, including shard and config server members, and note which are in replica sets; standalone instances are excluded [1].
- Read the version with mongod --version on the host, or db.version() in the mongo shell or mongosh (standard read-only tooling; requires host or database access; output is the server version string). Compare to the fixed releases in the table above [1].
- Confirm replica set membership with rs.status() (read-only; needs sufficient privileges on a deployment that has authorization enabled). A version below the fix on a replica set member means exposure, not proof of exploitation.
- Review mongod logs and host crash records for unexpected process terminations, particularly around elections and primary changes (Analyst assessment; the sources give no specific log pattern).
- Check firewall and security-group rules to see which networks can reach each member.
Datadog says its article explains detection, but those details are not in the pack [3].
Immediate mitigation
The sources name no vendor workaround; the following follow from how the component is documented to be reachable [1] and are Analyst assessment.
| Step | Protects against | Limits / side effects | Verify |
|---|---|---|---|
| Limit network access to mongod on every replica set member to application hosts and fellow members | Remote unauthenticated triggering | Does not help against trusted-network attackers; misconfiguration breaks replication or apps | Test from an unauthorized host that connections are refused |
| Remove any public internet exposure of members | Broad scanning and attack | Requires moving clients to private paths | External port scan from an authorized scanner |
| Alert on mongod crashes and repeated primary changes | Late discovery | Detection only | Fire a test alert |
Permanent remediation
Upgrade each affected member to the fixed release of its line: 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16 or 9.0.7 [1]. Reference engineering tickets are SERVER-138119 and SERVER-138175 [1]. Upgrade prerequisites, restart requirements and rolling-upgrade procedures are not in the pack; follow MongoDB's product documentation for replica set and sharded cluster upgrades, take backups first, and plan the maintenance window and rollback. Upgrade secondaries first, and the primary last, is common practice (Analyst assessment, not from sources). Cover config servers and shards as well [1].
Workarounds and compensating controls
No vendor-supported workaround is documented in the reviewed sources. Network restriction and monitoring above reduce exposure but do not remove the defect: any host able to reach the member, or a compromised internal host, can still send the triggering requests. They are not equivalent to upgrading.
Validation and verification
- Re-run mongod --version or db.version() on every member and confirm it equals or exceeds the fixed release for its line [1].
- Confirm all replica set, shard and config server members are covered, via rs.status() and your inventory.
- Confirm network restrictions remain in force with an authorized test from an unapproved source.
- Check logs and service health after upgrade: stable primary, no unexpected restarts, replication lag normal.
- Rerun an authenticated vulnerability scan only once its plugin recognizes this CVE; confirm that rather than assuming.
- Record owner, date, version evidence and any exceptions. A version check alone does not prove a system was not previously compromised.
Incident response
If unexplained mongod crashes or suspected exploitation occur: triage which members and clusters were involved and the time window; contain by restricting network access to the members, without wiping hosts; preserve mongod logs, core dumps, host process and network records, and memory images where policy allows; review for unusual commands, new users, or changed data on affected members; rotate database credentials, keys and secrets reachable by the mongod service account if code execution is suspected (Analyst assessment, since no post-exploitation evidence is documented); patch to the fixed release, then monitor the members closely. Assess notification obligations with legal and privacy teams if data access is plausible. Record lessons learned. Follow your incident response plan.
Security hardening and prevention
- Keep database nodes on private networks, with host firewalls allowing only application and peer addresses (defence in depth).
- Run mongod as an unprivileged account with minimal filesystem and credential access, limiting the effect of in-process code execution (defence in depth).
- Track MongoDB security releases and apply them within a defined window; maintain a version inventory per replica set.
- Alert on crashes and election frequency.
- For developers of similar code: lifetime-focused review of state transitions, memory-safety tooling in tests, and regression tests for election and catch-up concurrency (general practice, not source-documented).
Risk assessment
Technical severity is Critical per both CNA scores, tempered by high attack complexity [1]. Exposure is highest for replica sets reachable from untrusted networks and for shard or config server members whose loss would disrupt a cluster [1]. Exploitation evidence: a reported reproduction but no KEV listing and no documented attacks [2, 3]. Business impact ranges from outage to data compromise. Recommended priority (Analyst assessment, based on assumptions of unauthenticated reachability and production data, and not a CVSS score): treat internet-reachable or broadly reachable replica sets as urgent, upgrading in the next emergency window; schedule internal-only sets in the standard accelerated patch cycle; no action on standalone instances for this CVE, though they should still follow normal updates [1].
Conclusion
CVE-2026-118383 is a use-after-free (CWE-416) in MongoDB Server replication, triggered around the end of primary catch-up by requests needing no authentication, affecting replica set members but not standalone instances [1]. Database and infrastructure owners should find every replica set, shard and config server member, restrict network reach immediately, and upgrade to 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16 or 9.0.7 as applicable [1]. Closure needs version evidence from every member, confirmed network restrictions and stable post-upgrade operation. The root cause detail, NVD analysis and exploitation status remain open [1, 2, 3].
Remediation checklist
- Inventory all mongod instances and flag replica set, shard and config server members; exclude standalone instances from this CVE [1].
- Record each member's version with mongod --version or db.version() and compare to the fixed release of its line [1].
- Restrict network access to each replica set member so only application hosts and peer members can connect; verify with a test from an unapproved host (Analyst assessment).
- Remove any direct internet exposure of replica set members and confirm with an authorized external scan (Analyst assessment).
- Back up, then upgrade to 4.4.32, 5.0.35, 6.0.30, 7.0.48, 8.0.37, 8.3.16 or 9.0.7 as applicable, following MongoDB's replica set upgrade documentation [1].
- Include shard and config server replica sets in the upgrade so no member of a sharded cluster is left behind [1].
- Alert on unexpected mongod terminations and repeated primary elections, and review logs from the period since 2026-11-10 (Analyst assessment).
- After upgrading, re-check versions, replication health and network rules, and record owner, date and exceptions [1].
Evidence gaps
- Root cause details (which object is freed and why unauthenticated requests reach it): not in the pack; the tickets SERVER-138119 and SERVER-138175 or the Datadog write-up could settle it [1, 3].
- Vendor advisory page, upgrade prerequisites, restart requirements and any official workaround: not in the pack; MongoDB's advisory and documentation would settle it.
- NVD analysis, CPE configurations and any NVD-authored score: absent because the record is Awaiting Analysis [1].
- Exploitation in the wild, threat actors and public exploit code: not established; the CISA KEV listing is absent and Datadog's content beyond the excerpt is unseen [2, 3].
- Indicators of compromise and specific log signatures: none published in the reviewed sources.
- Whether an attacker can force the election or catch-up conditions, and what makes code execution possible: not stated.
- Applicability to MongoDB Atlas or other distributions and platforms: not stated.
- EPSS score: not included in the evidence pack.
References
- CVE-2026-118383 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-118383. Accessed 2026-11-12.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12.
- CVE-2026-118383: Use-after-free vulnerability in MongoDB. Datadog Security Labs, 2026-11-11. https://securitylabs.datadoghq.com/articles/cve-2026-118383-mongodb-server-use-after-free/. Accessed 2026-11-12.
Summary
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.
Severity breakdown
Critical · 9.5
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- high on confidentiality, integrity and availability
Weakness
- CWE-416: Use After Free
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB Server | ≥ 9.0.0, < 9.0.7 | 9.0.7 |
| ≥ 8.3.0, < 8.3.16 | 8.3.16 | |
| ≥ 8.0.0, < 8.0.37 | 8.0.37 | |
| ≥ 7.0.0, < 7.0.48 | 7.0.48 | |
| ≥ 6.0.0, < 6.0.30 | 6.0.30 | |
| ≥ 5.0.0, < 5.0.35 | 5.0.35 | |
| ≥ 4.4.0, < 4.4.32 | 4.4.32 |
References by type
Patches and fixed releases
Affected
- MongoDB Server
Frequently asked questions
What is CVE-2026-118383?
CVE-2026-118383 is a use-after-free (CWE-416) in the replication code of MongoDB Server, reachable when a replica set member that has just won an election finishes catching up; it can be triggered by requests that need no authentication and can crash the server or, in some circumstances, execute attacker code in the server process. Weakness type: Use After Free (CWE-416).
How severe is CVE-2026-118383?
CVE-2026-118383 has a CVSS 4.0 base score of 9.5 (critical), from the CNA (mongodb.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-118383 being exploited?
Not as far as is known: CVE-2026-118383 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.7% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-118383?
MongoDB Server ≥ 9.0.0, < 9.0.7 (fixed in 9.0.7); MongoDB Server ≥ 8.3.0, < 8.3.16 (fixed in 8.3.16); MongoDB Server ≥ 8.0.0, < 8.0.37 (fixed in 8.0.37); MongoDB Server ≥ 7.0.0, < 7.0.48 (fixed in 7.0.48); and more, listed on this page.
How do I fix CVE-2026-118383?
Inventory all mongod instances and flag replica set, shard and config server members; exclude standalone instances from this CVE. Record each member's version with mongod --version or db.version() and compare to the fixed release of its line. Restrict network access to each replica set member so only application hosts and peer members can connect; verify with a test from an unapproved host (Analyst assessment).
Timeline & sources
- NVD: CVE-2026-118383 — MongoDB Server
- Datadog Security Labs: CVE-2026-118383: Use-after-free vulnerability in MongoDB
- The Hacker News: Critical Pre-Auth MongoDB Flaw (CVE-2026-118383) Can Crash Lagging Servers on Failover
- Cybersecurity News: Critical MongoDB Flaw Lets Attackers Crash Database Servers With Just Two Ping Requests
- GBHackers: Critical MongoDB Use-After-Free Vulnerability Allows Remote Code Execution Without Authentication
- Rescana: MongoDB Server CVE-2026-118383: Critical 9.5 Pre-Auth Use-After-Free in Replication — Patch Now