MongoDB Server
CVE-2025-10060
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain authenticated DB write access
-
DeliveryOpen multi-document transaction
-
ExploitIssue upsert that triggers retry
-
ExecutionViolate unique index via bad WriteUnitOfWork state
-
PersistInvariant failure crashes mongod at commit
-
ImpactService denial until restart
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Operation on resource after expiration or release
|
| Exploitation Conditions | Exploitation requires the ability to run an upsert operation within a multi-document transaction against MongoDB Server 6.0 (<6.0.25), 7.0 (<7.0.22), or 8.0 (<8.0.12), where an internal retry of that upsert mismanages WriteUnitOfWork state and violates a unique index constraint at commit. This is gated by having a database session with write privileges (multi-document transactions and upserts are authenticated write operations in any non-anonymous deployment), so despite the PR:N in the published vector, practical exploitation needs at least low-privilege authenticated DB access. Impact is limited to denial of service (process crash); there is no data disclosure or modification, no user interaction is required, and it works against default configurations once a write-capable session is available. |
| Impact | This is a genuine but bounded availability-only issue, not a critical priority. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5) scores availability impact at HIGH with no confidentiality or integrity impact, consistent with the CWE-672 (operation on resource after expiry/release) invariant-failure crash described. The headline signals conflict in one important way: the vector claims PR:N (unauthenticated), yet the described trigger - an upsert operation retried inside a multi-document transaction - requires an authenticated database session with write privileges in any properly secured MongoDB deployment. Treat the PR:N as optimistic/theoretical; realistic exploitation needs at least low-privilege DB access. EPSS is low-to-moderate at 0.29% (53rd percentile), there is NO CISA KEV listing and NO public exploit code identified, so this is no public exploit identified at time of analysis and no evidence of active exploitation. Net: a real, vendor-confirmed crash bug worth patching in the normal cycle, but not an emergency - the availability-only impact, need for DB access, and absence of exploitation signals all lower real-world urgency below what the 7.5 score alone suggests. |
| Exploit ScenarioDerived | An authenticated user (or a compromised application service account) with write access opens a multi-document transaction and issues an upsert that gets retried, driving improper WriteUnitOfWork state so a unique-index constraint is violated at commit time, tripping a server invariant and crashing the mongod process. Repeating this denies service to every client on that node until it restarts. No public proof-of-concept exists; the only public artifact is the MongoDB SERVER-95524 ticket. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 30, 2026
MongoDB Server 6.0 (<6.0.25), 7.0 (<7.0.22), and 8.0 (<8.0.12) can be crashed by a write-capable database session that performs an upsert operation which is internally retried inside a multi-document transaction: the retry mismanages WriteUnitOfWork state, violates a unique index constraint, and triggers an invariant failure during commit that terminates the server process. Impact is availability-only - there is no data disclosure or modification - but it works against default configurations and requires no user interaction. A vendor advisory (jira.mongodb.org/browse/SERVER-95524) and fixed versions are available; EPSS is 0.29% (53rd percentile) and no public exploit code or confirmed active exploitation has been identified at time of analysis. Note that the published CVSS vector claims PR:N, whereas independent assessment rates it PR:L because multi-document transactions and upserts require an authenticated write session in any non-anonymous deployment.
Earlier versions of this analysis (1)
MongoDB Server may allow upsert operations retried within a transaction to violate unique index constraints, potentially causing an invariant failure and server crash during commit. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, low attack complexity. No vendor patch available.
RemediationAI
Vendor-released patch: upgrade to MongoDB Server 6.0.25, 7.0.22, or 8.0.12 respectively, as documented in the vendor advisory at https://jira.mongodb.org/browse/SERVER-95524. Because exploitation is availability-only but achievable by any session with write privileges, the primary compensating control for systems that cannot be upgraded immediately is to constrain who can write: enforce authentication and role-based access control so that only trusted application accounts hold readWrite on the affected databases, since the trigger path requires running an upsert inside a multi-document transaction - the trade-off is reduced operational flexibility for multi-tenant or shared clusters but no functional loss for read-only clients. Where the application does not depend on multi-document transaction semantics, disabling retryable writes (retryWrites=false on the client) and avoiding upserts inside sessions/transactions removes the specific retry-in-transaction state transition; the cost is losing automatic retry on transient network errors. Network-level restrictions (bind to private interfaces, firewall mongod's default port 27017, and require TLS plus strong credentials) further raise the bar but do not eliminate the bug for legitimate writers, so they should be treated as defense in depth rather than a substitute for upgrading. Monitor mongod logs for invariant-failure or fassert crash signatures tied to unique index violations during commit as an early indicator. There is no indication of active exploitation, so upgrade scheduling can follow normal patch cadence, but the fault is trivially reproducible by any authorized writer, making the patched releases the only complete fix.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The defect is classified as CWE-672 (Operation on a Resource after Expiration or Release) and stems from improper WriteUnitOfWork state management in the MongoDB storage engine. WriteUnitOfWork is the internal unit that tracks the set of writes buffered for a storage-engine transaction; when an upsert within a multi-document transaction is retried (for example by retryable-write semantics), the retry can leave stale or incorrectly released WriteUnitOfWork state. At commit time that corrupted state causes a unique index constraint check to be evaluated against inconsistent write intents, producing a server-side invariant failure rather than a handled write conflict, and the mongod process aborts. The attack surface is not a memory-safety flaw and does not reach stored data; it is a logic/state-machine bug whose only consequence is process termination. Affected builds are represented by generic MongoDB CPE wildcard entries (cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*), with the real gating factor being the server minor release line: 6.0 before 6.0.25, 7.0 before 7.0.22, and 8.0 before 8.0.12. The behavior depends on the multi-document transaction and retry code paths, so single-document writes and deployments that never use transactions are not exposed.
Know when MongoDB gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Triggering an upsert inside a multi-document transaction requires an authenticated write-capable DB session, so PR:L not PR:N; impact is a crash only, hence A:H with C:N/I:N.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
MongoDB Server may allow upsert operations retried within a transaction to violate unique index constraints, potentially causing an invariant failure and server crash during commit. This issue may be triggered by improper WriteUnitOfWork state management. This issue affects MongoDB Server v6.0 versions prior to 6.0.25, MongoDB Server v7.0 versions prior to 7.0.22 and MongoDB Server v8.0 versions prior to 8.0.12
Executive ViewAI
MongoDB Server deployments on versions 6.0, 7.0, and 8.0 prior to their fixed releases are exposed to a high-severity availability flaw that can terminate the database process, potentially causing production outages for applications and users relying on those databases. The issue requires a write-capable database session and no public exploit or active exploitation has been identified, but default configurations are affected, so leadership should prioritize inventory and remediation to prevent avoidable service disruption.
Apply vendor patch to MongoDB Server 6.0.25, 7.0.22, or 8.0.12. If patching is delayed, restrict write-capable sessions, disable multi-document transactions where operationally feasible, and monitor for abnormal server terminations.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)NVD
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB