CVE-2026-9737
MongoDB vulnerability analysis and mitigation

Overview

CVE-2026-9737 is a Denial of Service vulnerability in MongoDB Server caused by an unhandled meta expression case during query planning when reading sort patterns in raw BSONObj form. This leads to incorrect transformations and invariant failures, crashing the database service. Affected versions include MongoDB Server 7.0 before 7.0.39, 8.0 before 8.0.28, 8.2.0 before 8.2.12, and 8.3.0 before 8.3.7. The vulnerability was published on July 22, 2026, and carries a CVSS v3.1 base score of 6.5 (Medium) and a CVSS v4.0 base score of 7.1 (High) (GitHub Advisory).

Technical details

The root cause is classified as CWE-617 (Reachable Assertion): during query planning, MongoDB reads sort patterns in raw BSONObj form but does not explicitly handle the meta expression case in all code paths. This omission leads to incorrect internal transformations that trigger an invariant failure — effectively an assertion violation — causing the server process to abort. An authenticated attacker with low privileges can exploit this remotely by submitting a crafted query containing a malformed sort pattern with a meta expression, requiring no user interaction and no special deployment conditions (GitHub Advisory, MongoDB Jira).

Impact

Successful exploitation causes the MongoDB server process to crash due to an invariant failure, resulting in a complete loss of database availability for all connected clients and applications. There is no impact on confidentiality or data integrity, as the vulnerability is purely a Denial of Service condition. In environments without automatic restart or high-availability failover, this could result in extended service outages affecting all workloads dependent on the affected MongoDB instance (GitHub Advisory).

Exploitation steps

  1. Obtain low-privilege credentials: Acquire any valid MongoDB user account with at least read or query permissions on a target database instance running an affected version (7.0 < 7.0.39, 8.0 < 8.0.28, 8.2.0 < 8.2.12, or 8.3.0 < 8.3.7).
  2. Connect to the target: Use the MongoDB shell (mongosh) or a MongoDB driver to connect to the target server over the network.
  3. Craft a malicious query: Construct a query that includes a sort pattern in raw BSONObj form containing a meta expression (e.g., { $meta: "textScore" }) in a context where the query planner does not handle it, such as a sort on a collection without a text index.
  4. Submit the query: Execute the crafted query against the target database. The query planner processes the sort pattern, encounters the unhandled meta expression case, performs an incorrect transformation, and triggers an invariant failure.
  5. Achieve Denial of Service: The invariant failure causes the MongoDB server process to abort, making the database unavailable to all clients (GitHub Advisory, MongoDB Jira).

Indicators of compromise

  • Logs: MongoDB server logs (mongod.log) showing an invariant failure or assertion error during query planning, typically accompanied by a stack trace referencing sort pattern or BSONObj processing code; abrupt process termination entries.
  • Process: Unexpected termination of the mongod process without a graceful shutdown signal; automatic restart events logged by the process supervisor (e.g., systemd, Docker).
  • Logs: Repeated authentication events from a low-privilege account followed immediately by query execution and server crash events in the MongoDB audit log.
  • Network: Network connections from unexpected or external IP addresses to the MongoDB port (default 27017) shortly before crash events.

Mitigation and workarounds

MongoDB has released patched versions addressing this vulnerability: 7.0.39, 8.0.28, 8.2.12, and 8.3.7. Administrators should upgrade to the appropriate fixed version as the primary remediation. As interim workarounds, restrict database access to trusted, authenticated users only, and consider network-level controls (firewalls, VPNs) to limit exposure of the MongoDB port. Monitoring for unexpected server crashes related to query planning failures can help detect exploitation attempts (GitHub Advisory, MongoDB Jira).

Community reactions

A Reddit post in the r/pwnhub community discussed the vulnerability shortly after disclosure on July 22, 2026, though no significant expert commentary or vendor statements beyond the advisory have been identified. Community reaction appears limited, consistent with the lack of a public exploit and the requirement for authenticated access.

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-2026-9737HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026
CVE-2026-13077HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026
CVE-2026-13076HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026
CVE-2026-13075HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026
CVE-2026-13078MEDIUM6.3
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesJul 22, 2026

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