Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Authenticated user needs only query privileges (PR:L) to send a crafted sort over the network (AV:N/AC:L); impact is a process crash, so A:H with C:N/I:N.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
3DescriptionCVE.org
During query planning when reading the sort pattern in raw BSONObj form, in some places we don’t explicitly handle the meta expression case. This may lead to incorrect transformations leading to invariant failure.
AnalysisAI
Denial of service in MongoDB Server allows an authenticated user to crash the database process by submitting a query whose sort specification embeds a $meta expression in raw BSONObj form. Because query planning fails to explicitly handle the meta-expression case when reading the sort pattern, it performs an incorrect transformation that trips an internal invariant, terminating the mongod process. No public exploit identified at time of analysis; the issue is tracked in MongoDB's Jira as SERVER-128341 and reported by MongoDB's own CNA.
Technical ContextAI
The flaw lives in MongoDB's query planner, specifically the code path that parses the sort pattern (the ordering specification of a find/aggregate query) directly from its raw BSON representation. MongoDB supports $meta-based sort keys (e.g. sorting by textScore or searchScore), which are not ordinary field-path sort components. In several planner locations this meta-expression variant is not explicitly handled, so a raw-BSON sort containing $meta is transformed as if it were a normal key, producing an inconsistent internal state. This is a textbook CWE-617 (Reachable Assertion / invariant failure): rather than corrupting data, the inconsistency is caught by a runtime invariant() check that intentionally aborts the process. The affected component is the server-side query engine (mongod), not the drivers or client tooling.
RemediationAI
Patch status: Patch available per vendor advisory - upgrade to the fixed MongoDB Server release identified in Jira SERVER-128341 (https://jira.mongodb.org/browse/SERVER-128341); the exact patched version numbers were not included in the provided data and should be read directly from that ticket before scheduling the upgrade. As compensating controls until patching, restrict who can issue ad-hoc queries by tightening role-based access control so that only trusted application service accounts hold find/aggregate privileges (trade-off: does not protect against a compromised or malicious application account), and deploy MongoDB as a replica set so an invariant-triggered crash causes automatic failover rather than a full outage (trade-off: reduces downtime but does not prevent repeated crashing of primaries by a persistent attacker). Where feasible, review application code to ensure $meta sort expressions are only constructed server-side from trusted input, since the trigger is a specific sort-pattern shape.
Same weakness CWE-617 – Reachable Assertion
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-47775