Skip to main content

MongoDB Server CVE-2025-10060

HIGH
Operation on a Resource after Expiration or Release (CWE-672)
2025-09-05 cna@mongodb.com
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain authenticated DB write access
  2. Delivery
    Open multi-document transaction
  3. Exploit
    Issue upsert that triggers retry
  4. Execution
    Violate unique index via bad WriteUnitOfWork state
  5. Persist
    Invariant failure crashes mongod at commit
  6. Impact
    Service 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 19:10 CVSS 6.5

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

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
Analysis Updated
Sep 30, 2026 - 23:56 vuln.today
v2 - CVSS changed
Severity Changed
Sep 30, 2026 - 23:23 NVD
MEDIUM HIGH
CVSS changed
Sep 30, 2026 - 23:23 NVD
6.5 (MEDIUM) 7.5 (HIGH)
CVE Published
Sep 05, 2025 - 21:15 nvd
MEDIUM 6.5

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 47% exploitable
Prevalence
High
MongoDB is one of the most widely deployed NoSQL databases in production
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)NVD

cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*
cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*
cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*
CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy