Vulnerability · Published Sep 5, 2025 · Assigned by mongodb
CVE-2025-10060MongoDB may be susceptible to Invariant Failure in Transactions due Upsert Operation
Medium 6.5
In plain English
A medium-severity security flaw in MongoDB Server from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities).
Official description
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
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc | MongoDB Server | 6.0 – before 6.0.257.0 – before 7.0.228.0 – before 8.0.12 |
Weakness: CWE-672 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H