Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Databases

CVE-2026-118383 — MongoDB Server

Critical · CVSS 9.5EPSS 0.7% First seen November 10, 2026

One of 26 MongoDB Server vulnerabilities published together by NVD: our article covers all of them.

DatabasesVulnerabilities

Research article

MongoDB Server CVE-2026-118383: unauthenticated use-after-free in replica set primary catch-up (CVSS 9.0-9.5)

CVECVE-2026-118383
Vendor and productMongoDB Server
PublishedNovember 12, 2026 07:10 UTC
Research cut-offNovember 12, 2026 05:50 UTC
UpdatedNovember 17, 2026 15:00 UTC
Sources reviewed3: 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)

Updates come from the CVE's records (NVD, CISA, GitHub, FIRST) as they change, newest first. The article below is as it was published on November 12, 2026.

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

FieldValue
CVE IDCVE-2026-118383 [1]
Vendor / productMongoDB, MongoDB Server [1]
ComponentReplication (primary catch-up after election) [1]
PlatformNot stated in the record beyond the server product; platform-specific limits are not established by the reviewed sources
Published / last modified2026-11-10T21:18:58 / 2026-11-10T22:08:59 [1]
Record statusAwaiting Analysis [1]
CWECWE-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.09.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.19.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 identifiersBug 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):

  1. A replica set member wins an election and begins catch-up [1].
  2. Requests from clients that have not authenticated reach the member while this state transition is under way [1].
  3. When catch-up finishes, the replication component releases memory that is later still referenced (use-after-free) [1].
  4. 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

PrerequisiteStatus
Network accessNetwork vector in both scores; the attacker must reach mongod over the network [1]
Authentication / privilegeNone required; PR:N in both vectors, and the description states unauthenticated requests suffice [1]
User interactionNone (UI:N in both vectors) [1]
ConfigurationThe target must be a replica set member, including shard or config server members; standalone is not affected [1]
Attacker positionNeeds reachability to a replica set member's client interface; specific ports and interfaces are not stated in the sources
ComplexityHigh (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]
ScopeCVSS 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

AreaDemonstrated / statedPlausible downstream
ConfidentialityHigh in both vectors [1]Exposure of database contents if code execution is achieved
IntegrityHigh in both vectors [1]Data modification or tampering via the compromised process
AvailabilityServer may terminate unexpectedly [1]Failover churn, loss of write availability in a shard or config replica set
Authentication / authorizationTrigger needs no authentication [1]Bypass of database access controls if code runs in-process
Privilege boundaryExecution in the server process context [1]Pivot using host or network access held by the service
Data / privacy; business; regulatoryNot assessed in sourcesBreach-notification or contractual duties if data is accessed; outage of dependent applications

Affected products and versions

VendorProductAffectedFixedSource / qualification
MongoDBServer 9.0>= 9.0.0, < 9.0.79.0.7CVE record from the vendor CNA [1]
MongoDBServer 8.3>= 8.3.0, < 8.3.168.3.16[1]
MongoDBServer 8.0>= 8.0.0, < 8.0.378.0.37[1]
MongoDBServer 7.0>= 7.0.0, < 7.0.487.0.48[1]
MongoDBServer 6.0>= 6.0.0, < 6.0.306.0.30[1]
MongoDBServer 5.0>= 5.0.0, < 5.0.355.0.35[1]
MongoDBServer 4.4>= 4.4.0, < 4.4.324.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

  1. Inventory every mongod, including shard and config server members, and note which are in replica sets; standalone instances are excluded [1].
  2. 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].
  3. 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.
  4. 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).
  5. 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.

StepProtects againstLimits / side effectsVerify
Limit network access to mongod on every replica set member to application hosts and fellow membersRemote unauthenticated triggeringDoes not help against trusted-network attackers; misconfiguration breaks replication or appsTest from an unauthorized host that connections are refused
Remove any public internet exposure of membersBroad scanning and attackRequires moving clients to private pathsExternal port scan from an authorized scanner
Alert on mongod crashes and repeated primary changesLate discoveryDetection onlyFire 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

  1. Re-run mongod --version or db.version() on every member and confirm it equals or exceeds the fixed release for its line [1].
  2. Confirm all replica set, shard and config server members are covered, via rs.status() and your inventory.
  3. Confirm network restrictions remain in force with an authorized test from an unapproved source.
  4. Check logs and service health after upgrade: stable primary, no unexpected restarts, replication lag normal.
  5. Rerun an authenticated vulnerability scan only once its plugin recognizes this CVE; confirm that rather than assuming.
  6. 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

  1. Inventory all mongod instances and flag replica set, shard and config server members; exclude standalone instances from this CVE [1].
  2. Record each member's version with mongod --version or db.version() and compare to the fixed release of its line [1].
  3. 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).
  4. Remove any direct internet exposure of replica set members and confirm with an authorized external scan (Analyst assessment).
  5. 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].
  6. Include shard and config server replica sets in the upgrade so no member of a sharded cluster is left behind [1].
  7. Alert on unexpected mongod terminations and repeated primary elections, and review logs from the period since 2026-11-10 (Analyst assessment).
  8. 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

  1. 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. CVE record details: description paraphrase, status and dates, CVSS 4.0 and 3.1 scores and vectors, CWE-416, affected and fixed versions, replica set scope, ticket identifiers.
  2. 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 is not listed in the CISA KEV catalog as of 2026-11-12, which is not proof of non-exploitation.
  3. 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. Datadog Security Labs (2026-11-11) reports reproducing the flaw in primary catch-up and that unauthenticated clients can set it up.

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Critical · 9.5 CVSS 4.0 base score 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.

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

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 · CVSS 3.1 10.0 from NVD: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
MongoDB Server≥ 9.0.0, < 9.0.79.0.7
≥ 8.3.0, < 8.3.168.3.16
≥ 8.0.0, < 8.0.378.0.37
≥ 7.0.0, < 7.0.487.0.48
≥ 6.0.0, < 6.0.306.0.30
≥ 5.0.0, < 5.0.355.0.35
≥ 4.4.0, < 4.4.324.4.32

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Patches and fixed releases

Details from NVD (public domain).

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

References