Skip to content
OpenAdvisories

Package · Ubuntu

mongodb

156 known vulnerabilities.

155 results · Feed

  • Medium 6.5

    Aggregation Framework Memory Exhaustion Leading to Process Termination

    An authenticated user can cause a {{mongod}} process to be terminated by the operating system under memory pressure by performing a specific data type conversion operation within MongoDB's aggregation framework. The behavior stems from disproportionate memory…

  • High 7.1

    Out-of-Bounds Heap Read in BSON CodeWScope Element Parsing via Malformed BSONColumn Data

    A missing bounds check in the BSON CodeWScope element accessors allows an attacker to trigger an out-of-bounds heap read via a crafted aggregation pipeline. The vulnerability can be exploited by an authenticated user by generating a malformed BSONColumn data …

  • High 7.7
    CVE-2026-13078 Public exploit

    Local File Disclosure in MongoDB Server via MozJS Scripting Engine Module Loader

    A vulnerability was discovered in MongoDB Server where the server-side MozJS scripting engine unconditionally registered a module loading hook that enables JavaScript calls to read arbitrary files from the host filesystem using the mongod process's privileges…

  • High 8.8

    Post-authentication use-after-free in server-side JavaScript BSON-to-array conversion

    A use-after-free vulnerability exists in MongoDB Server's server-side JavaScript engine when converting BSON documents to JavaScript arrays. An authenticated user with read privileges who is able to run server-side JavaScript (for example, via $where or $func…

  • High 7.5

    Unbounded recursion in BSONColumn interleaved-reference causes pre-auth stack overflow

    A vulnerability in MongoDB Server's BSON validation logic allows an unauthenticated user to crash the mongod process by sending a specially crafted message. The BSON validator's handling of certain nested binary data structures permits uncontrolled mutual rec…

  • Medium 5.5

    Keyfile contents are in MongoDB Server logs

    MongoDB server may log authentication parameters, including credentials, to the server log during SASL authentication. When connection health metric logging is enabled, the full authentication parameters are written to the log without redaction.

  • 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

  • High 8.1

    Server crash via malformed binary diff passed to $_internalApplyOplogUpdate.

    The $_internalApplyOplogUpdate aggregation pipeline stage can be used to execute a document diff containing a malformed binary diff to return memory out-of-bounds or crash the server. $_internalApplyOplogUpdate can be executed by any authenticated user with a…

  • Medium 6.5

    GeometryCollection with strict-winding polygon causes server crash during 2dsphere index key generation

    An authorized user could trigger a server crash by running a query with a 2dsphere index on a field that stores a GeoJSON GeometryCollection containing a Polygon with a strict-winding CRS. Strict-winding polygons are intentionally unsupported for indexing, bu…

  • Medium 5.5

    Sensitive data could be written to mongod.log

    The ldapQueryPassword parameter, when set through the runtime setParameter command, will log the new password to the mongod.log file in plain text.

  • Medium 6.5

    Metadata name collision on $-prefixed fields causes post-auth server crash

    An authenticated user can cause a MongoDB server to crash or return incorrect results by creating documents that interfere with internal metadata processing during query execution. This stems from insufficient separation between user-controlled document field…

  • Medium 6.5

    Using MaxKey() may crash the server

    This issue can occur when running an aggregation pipeline that uses the internal $exchange stage configured with key-range partitioning and order-preserving delivery. If a single key range produces enough documents to fill its exchange buffer (that is, many r…

  • Medium 6.5

    $_internalConvertBucketIndexStats may crash the mongod server when working on no timeseries input

    The $_internalConvertBucketIndexStats stage used PauseExecution as a way to signal "skip this document" when an index stats conversion failed. But PauseExecution is not a general purpose skip mechanism, but rather a TeeBuffer-internal signal used solely by $f…

  • Medium 6.5

    Crafted cross-shard merge aggregation crashes MongoDB Server

    Adding fromRouter:true and runtimeConstants.userRoles could cause aggregations to crash mongodb server.

  • Medium 6.5

    Server crashes in case of the use of exchange

    When using $changestreams and $_requestReshardingResumeToken with the exchange option the server hits an invariant which causes the server to crash. There are no special privileges needed. The user must be logged in to issue the statement.

  • Medium 6.5

    Aggregation sub-pipeline null dereference may allow DoS via crafted getMore

    In MongoDB Server 8.0, an aggregation stage can leave its _subPipeline field null during processing of certain pipelines. If a getMore is subsequently issued on the same cursor, the server may dereference this null sub-pipeline when reattaching to the operati…

  • High 7.5

    Authenticate command with specific mechanism parameter can trigger server crash

    When OIDC authentication is enabled in configuration, clients may set specific values in the "mechanism" parameter of the "authenticate" command that lead to server crash. The authenticate command is accessible to unauthenticated clients, leading to pre-auth …

  • Medium 6.5

    Client side encryption fails to encrypt values in a $vectorSearch

    A bug in query analysis processing of the $vectorSearch aggregation stage for Queryable Encryption (QE) or Client-Side Field Level Encryption (CSFLE) results in literal values for encrypted fields within the $vectorSearch stage filter expressions to be sent t…

  • Medium 6.5

    Calling createIndex with certain index types can crash mongod

    Creating a "2dsphere_bucket" index on a non-timeseries bucket collection will succeed, but any subsequent attempt to insert a document which triggers updating that index will crash the server. A similar issue occurs when creating "queryable_encrypted_range" i…

  • Medium 4.3

    Post-authentication CPU utilization DoS via $trim/$ltrim/$rtrim operators

    Using a densely populated chars mask and a large input string in the MongoDB aggregation operators $trim, $ltrim, and $rtrim, an authenticated user with aggregation permissions can pin CPU utilization at 100% for an extended period of time. This issue impacts…

  • 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.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

    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.

  • 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…

  • 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 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.