Skip to content
OpenAdvisories

Product · MongoDB

MongoDB Server

203 known vulnerabilities.

203 results · Feed

  • High 7.5

    Post-authentication use-after-free error in $_internalJsEmit and mapreduce commands

    After invoking $_internalJsEmit, which is not intended to be directly accessible, or mapreduce command’s map function in a certain way, an authenticated user can subsequently crash mongod when the server-side JavaScript engine (through $where, $function, mapr…

  • Medium 6.4

    Use-After-Free in MongoDB FLE Query Analysis When Processing Positional Projections on Encrypted Fields

    A use-after-free vulnerability exists in MongoDB's Field-Level Encryption (FLE) query analysis component, affecting client-side uses of mongocryptd and crypt_shared. Triggering this vulnerability requires control over the structure of a client's FLE-related q…

  • Low 2.7

    Schema validation log messages may not redact user data

    When schema validation is enabled on a collection and an update or insert would violate the collection's schema, the local server log message generated may not have all user data redacted.  This issue impacts MongoDB Server v7.0 versions prior to 7.0.34, v8.0…

  • Medium 6.5

    Post-auth memory exhaustion via bitwise match expressions

    An authenticated user can cause excess memory usage via bitwise match expression AST processing of $bitsAllSet, $bitsAnySet, $bitsAllClear, and $bitsAnyClear. This contributes to memory pressure and may lead to availability loss by OOM. This issue impacts Mon…

  • High 8.8

    FlatBSON Duplicate Field Index Drift

    An issue in MongoDB Server's time-series collection implementation allows an authenticated user with database write privileges to trigger an out-of-bounds memory write in the mongod process. The issue results from an inconsistency in the internal field-name-t…

  • Medium 6.5

    Post-auth null pointer dereference when aggregating against a view with empty search pipeline

    An authenticated user can crash mongod when running $rankFusion or $scoreFusion with an empty pipeline on a view. When resolving a view, the server inspects the aggregation pipeline to determine whether it begins with an Atlas Search stage. For $rankFusion an…

  • Medium 6.3

    Flaw in the updateUser Command May Allow Unauthorized Configuration Change

    An authorization flaw in the user management command could allow an authenticated user to make limited changes to authentication-related data associated with another user account. This could affect how authentication is performed for the impacted account.

  • Medium 6.5

    MD5 checksum creation may cause availability loss

    Computing the MD5 checksum of a malformed BSON object under specific conditions may cause loss of availability in MongoDB server. This issue affects all MongoDB Server v8.2 versions, all MongoDB Server v8.1 versions, MongoDB Server v8.0 versions prior to 8.0.…

  • Medium 5.3

    Users could trigger a crash of mongod primaries during promotion to sharded

    A user with access to the cluster with a limited set of privilege actions can trigger a crash of a mongod process during the limited and unpredictable window when the cluster is being promoted from a replica set to a sharded cluster. This may cause a denial o…

  • Medium 6.4

    Memory safety issues in slot-based execution hash table spill

    A specially crafted aggregation query with $lookup by an authenticated user with write privileges can cause a double-free or use-after-free memory issue in the slot-based execution (SBE) engine when an in-memory hash table is spilled to disk.

  • High 8.8

    ExpressionContext use-after-free in classic engine $lookup and $graphLookup aggregation operators

    A use-after-free vulnerability can be triggered in sharded clusters by an authenticated user with the read role who issues a specially crafted $lookup or $graphLookup aggregation pipeline.

  • Medium 6.5

    Stack memory disclosure in filemd5 command

    An authenticated user with the read role may read limited amounts of uninitialized stack memory via specially-crafted issuances of the filemd5 command.

  • Medium 6.5

    An unsafe cast in the MongoDB query planner can result in a segmentation fault.

    An authorized user may disable the MongoDB server by issuing a query against a collection that contains an invalid compound wildcard index.

  • Medium 6.5

    Mongod can run out of stack memory when expressions create deeply nested documents

    MongoDB Server may experience an out-of-memory failure while evaluating expressions that produce deeply nested documents. The issue arises in recursive functions because the server does not periodically check the depth of the expression.

  • Medium 6.5

    An authorized user may disable the MongoDB server by issuing a certain type of complex query due to boolean expression simplification

    Complex queries can cause excessive memory usage in MongoDB Query Planner resulting in an Out-Of-Memory Crash.

  • Medium 5.4

    profile command may permit unauthorized configuration

    Incorrect validation of the profile command may result in the determination that a request altering the 'filter' is read-only.

  • Medium 6.5

    Invalid $geoNear index hint may cause server crash

    An authorized user may trigger a server crash by running a $geoNear pipeline with certain invalid index hints.

  • High 7.5

    Connections received from the proxy port may not count towards total accepted connections

    Connections received from the proxy port may not count towards total accepted connections, resulting in server crashes if the total number of connections exceeds available resources. This only applies to connections accepted from the proxy port, pending the p…

  • Medium 6.5

    MongoDB Server may crash when inserting large documents

    Inserting certain large documents into a replica set could lead to replica set secondaries not being able to fetch the oplog from the primary. This could stall replication inside the replica set leading to server crash.

  • Medium 6.5

    Internal ResourceId collision may affect unrelated collections

    The internal locking mechanism of the MongoDB server uses an internal encoding of the resources in order to choose what lock to take. Collections may inadvertently collide with one another in this representation causing unavailability between them due to conf…

  • High 7.5

    Pre-Authentication Memory Exhaustion Denial of Service in MongoDB Server

    A series of specifically crafted, unauthenticated messages can exhaust available memory and crash a MongoDB server.

  • High 7.5
    CVE-2025-14847 Exploited Public exploit Scanner template EPSS 83%

    Zlib compressed protocol header length confusion may allow memory read

    Mismatched length fields in Zlib compressed protocol headers may allow a read of uninitialized heap memory by an unauthenticated client. This issue affects all MongoDB Server v7.0 prior to 7.0.28 versions, MongoDB Server v8.0 versions prior to 8.0.17, MongoDB…

    KEV Dec 29, 2025
  • Medium 4.2

    Cross-Shard Failovers May Lead to Partial Transaction Commit in MongoDB Server

    A post-authentication flaw in the network two-phase commit protocol used for cross-shard transactions in MongoDB Server may lead to logical data inconsistencies under specific conditions which are not predictable and exist for a very short period of time. Thi…

  • Medium 6.5

    MongoDB may be susceptible to Invariant Failure due to batched delete

    MongoDB Server may experience an invariant failure during batched delete operations when handling documents. The issue arises when the server mistakenly assumes the presence of multiple documents in a batch based solely on document size exceeding BSONObjMaxSi…

  • Low 3.1

    MongoDB Server may allow queries to be terminated by unauthorized users

    A user with access to the cluster with a limited set of privilege actions may be able to terminate queries that are being executed by other users. This may cause a denial of service by preventing a fraction of queries from successfully completing. This issue …

  • Medium 4.2

    Improper Certificate Validation May Allow Successful TLS Handshaking Despite Invalid Extended Key Usage Fields in MongoDB Server

    Clients may successfully perform a TLS handshake with a MongoDB server despite presenting a client certificate not aligning with the documented Extended Key Usage (EKU) requirements. A certificate that specifies extendedKeyUsage but is missing extendedKeyUsag…

  • Medium 6.5

    Time-series operations may cause internal BSON size limit to be exceed

    Inconsistent object size validation in time series processing logic may result in later processing of oversized BSON documents leading to an assert failing and process termination. This issue impacts MongoDB Server v7.0 versions prior to 7.0.26, v8.0 versions…

  • Medium 5.0

    Malformed KMIP response may result in access violation

    The KMIP response parser built into mongo binaries is overly tolerant of certain malformed packets, and may parse them into invalid objects. Later reads of this object can result in read access violations.

  • High 7.8

    MongoDB Windows installation MSI may leave ACLs unset on custom installation directories

    The MongoDB Windows installation MSI may leave ACLs unset on custom installation directories allowing a local attacker to introduce executable code to MongoDB's process via DLL hijacking. This issue affects MongoDB Server v6.0 version prior to 6.0.25, MongoDB…

  • Medium 6.5

    Malformed $group Query May Cause MongoDB Server to Crash

    An authorized user can cause a crash in the MongoDB Server through a specially crafted $group query. This vulnerability is related to the incorrect handling of certain accumulator functions when additional parameters are specified within the $group operation.…

  • Medium 6.5

    MongoDB may be susceptible to Invariant Failure in Transactions due Upsert Operation

    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. Thi…

  • Medium 6.5

    MongoDB Server router will crash when incorrect lsid is set on a sharded query

    An improper setting of the lsid field on any sharded query can cause a crash in MongoDB routers. This issue occurs when a generic argument (lsid) is provided in a case when it is not applicable. This affects MongoDB Server v6.0 versions prior to 6.0.x, MongoD…

  • Medium 6.5

    Certain Queries with Duplicate _id Fields May Cause MongoDB Server to Crash

    An authorized user can issue queries with duplicate _id fields, that leads to unexpected behavior in MongoDB Server, which may result to crash. This issue can only be triggered by authorized users and cause Denial of Service. This issue affects MongoDB Server…

  • High 7.5

    Incorrect Handling of incomplete data may prevent mongoS from Accepting New Connections

    MongoDB Server's mongos component can become unresponsive to new connections due to incorrect handling of incomplete data. This affects MongoDB when configured with load balancer support. This issue affects MongoDB Server v6.0 prior to 6.0.23, MongoDB Server …

  • High 7.7
    CVE-2025-6713 Public exploit

    MongoDB Server may be susceptible to privilege escalation due to $mergeCursors stage

    An unauthorized user may leverage a specially crafted aggregation pipeline to access data without proper authorization due to improper handling of the $mergeCursors stage in MongoDB Server. This may lead to access to data without further authorisation. This i…

  • Medium 6.5

    MongoDB Server may be susceptible to DoS due to Accumulated Memory Allocation

    MongoDB Server may be susceptible to disruption caused by high memory usage, potentially leading to server crash. This condition is linked to inefficiencies in memory management related to internal operations. In scenarios where certain internal processes per…

  • Medium 4.4

    Incomplete Redaction of Sensitive Information in MongoDB Server Logs

    An issue has been identified in MongoDB Server where unredacted queries may inadvertently appear in server logs when certain error conditions are encountered. This issue affects MongoDB Server v8.0 versions prior to 8.0.5, MongoDB Server v7.0 versions prior t…

  • High 7.5

    Pre-authentication Denial of Service Stack Overflow Vulnerability in JSON Parsing via Excessive Recursion in MongoDB

    MongoDB Server may be susceptible to stack overflow due to JSON parsing mechanism, where specifically crafted JSON inputs may induce unwarranted levels of recursion, resulting in excessive stack space consumption. Such inputs can lead to a stack overflow that…

  • High 7.5

    Pre-Authentication Denial of Service Vulnerability in MongoDB Server's OIDC Authentication

    The MongoDB Server is susceptible to a denial of service vulnerability due to improper handling of specific date values in JSON input when using OIDC authentication. This can be reproduced using the mongo shell to send a malicious JSON payload leading to an i…

  • Medium 4.2

    Race condition in privilege cache invalidation cycle

    Under certain conditions, an authenticated user request may execute with stale privileges following an intentional change by an authorized administrator. This issue affects MongoDB Server v5.0 version prior to 5.0.31, MongoDB Server v6.0 version prior to 6.0.…