CVE-2025-10059
MongoDB vulnerability analysis and mitigation

Overview

An improper setting of the lsid field on any sharded query can cause a crash in MongoDB routers. This vulnerability (CVE-2025-10059) occurs when a generic argument (lsid) is provided in a case when it is not applicable. The vulnerability affects MongoDB Server v6.0 versions prior to 6.0.x, MongoDB Server v7.0 versions prior to 7.0.18, and MongoDB Server v8.0 versions prior to 8.0.6 (NVD).

Technical details

The vulnerability stems from an invariant on a matching uid in the lsid of the opCtx and command request in shardingtaskexecutor.cpp. This issue has led to several application failures involving server crashes. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating network accessibility with low attack complexity and requiring low privileges (NVD, MongoDB Jira).

Impact

When exploited, this vulnerability can cause MongoDB routers to crash, potentially disrupting database operations. The issue specifically affects the server's ability to handle sharded queries when certain lsid configurations are present (NVD).

Mitigation and workarounds

The issue has been addressed in MongoDB Server versions 6.0.x, 7.0.18, and 8.0.6. The fix involves relaxing the user digest invariant to a tassert in the ShardingTaskExecutor and implementing proper caching of the lsid value when constructing the AsyncResultsManager (MongoDB Jira, MongoDB Jira).

Additional resources


SourceThis report was generated using AI

Related MongoDB vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-11695HIGH8
  • MongoDBMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesOct 13, 2025
CVE-2025-10491HIGH7.8
  • MongoDBMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesSep 15, 2025
CVE-2025-10060HIGH7.5
  • MongoDBMongoDB
  • mongodb
NoYesSep 05, 2025
CVE-2025-10061MEDIUM6.5
  • MongoDBMongoDB
  • mongod-8.0
NoYesSep 05, 2025
CVE-2025-10059MEDIUM6.5
  • MongoDBMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesSep 05, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management