Skip to content
OpenAdvisories

Product · MongoDB

MongoDB Server

203 known vulnerabilities.

132 results · Clear filters · Feed

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

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

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

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

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

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

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

  • Medium 5.0

    Running certain aggregation operations with the SBE engine may lead to unexpected behavior on MongoDB Server

    An authenticated user may trigger a use after free that may result in MongoDB Server crash and other unexpected behavior, even if the user does not have authorization to shut down a server. The crash is triggered on affected versions by issuing an aggregation…

  • Medium 6.5

    MongoDB Server may crash due to improper validation of explain command

    When run on commands with certain arguments set, explain may fail to validate these arguments before using them. This can lead to crashes in router servers. This affects MongoDB Server v5.0 prior to 5.0.31, MongoDB Server v6.0 prior to 6.0.20, MongoDB Server …

  • Medium 6.8

    Improper neutralization of null bytes may lead to buffer over-reads in MongoDB Server

    An authorized user may trigger crashes or receive the contents of buffer over-reads of Server memory by issuing specially crafted requests that construct malformed BSON in the MongoDB Server. This issue affects MongoDB Server v5.0 versions prior to 5.0.30 , M…

  • Medium 6.5

    MongoDB Server secondaries may crash due to forced index constraints

    prepareUnique index may cause secondaries to crash due to incorrect enforcement of index constraints on secondaries, where in extreme cases may cause multiple secondaries crashing leading to no primaries. This issue affects MongoDB Server v6.0 versions prior …

  • Medium 5.0

    MongoDB Server may access non-initialized region of memory leading to unexpected behaviour

    MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are called in internal aggregation stage. This issue affected MongoDB Server v6.0 version 6.0.3.

  • Medium 6.4

    MongoDB Server binaries may load potentially insecure shared libraries from specific relative paths

    In certain highly specific configurations of the host system and MongoDB server binary installation on Linux Operating Systems, it may be possible for a unintended actor with host-level access to cause the MongoDB Server binary to load unintended actor-contro…

  • Medium 5.3

    Backup files may be downloaded by underprivileged users in MongoDB Enterprise Server

    "Hot" backup files may be downloaded by underprivileged users, if they are capable of acquiring a unique backup identifier. This issue affects MongoDB Enterprise Server v6.0 versions prior to 6.0.16, MongoDB Enterprise Server v7.0 versions prior to 7.0.11 and…

  • Medium 5.4

    Missing authorization check may lead to shard key refinement

    A command for refining a collection shard key is missing an authorization check. This may cause the command to run directly on a shard, leading to either degradation of query performance, or to revealing chunk boundaries through timing side channels. This aff…

  • Medium 5.3

    MongoDB Server (mongod) may crash when generating ftdc

    An unauthenticated user can trigger a fatal assertion in the server while generating ftdc diagnostic metrics due to attempting to build a BSON object that exceeds certain memory sizes. This issue affects MongoDB Server v5.0 versions prior to and including 5.0…

  • Medium 5.3

    Certificate validation issue in MongoDB Server running on Windows or macOS

    If the MongoDB Server running on Windows or macOS is configured to use TLS with a specific set of configuration options that are already known to work securely in other platforms (e.g. Linux), it is possible that client certificate validation may not be in ef…

  • Medium 6.5

    MongoDB Server (mongod) may crash in response to unexpected requests

    An authenticated user may trigger an invariant assertion during command dispatch due to incorrect validation on the $external database. This may result in mongod denial of service or server crash. This issue affects: MongoDB Inc. MongoDB Server v5.0 versions,…

  • Medium 6.5

    Large aggregation pipelines with a specific stage can crash mongod under default configuration

    It may be possible to have an extremely long aggregation pipeline in conjunction with a specific stage/operator and cause a stack overflow due to the size of the stack frames used by that stage. If an attacker could cause such an aggregation to occur, they co…

  • Medium 5.4

    Denial of Service and Data Integrity vulnerability in features command

    An authenticated user without any specific authorizations may be able to repeatedly invoke the features command where at a high volume may lead to resource depletion or generate high lock contention. This may result in denial of service and in rare cases coul…

  • Medium 6.5

    Specific replication command with malformed oplog entries can crash secondaries

    An attacker with basic CRUD permissions on a replicated collection can run the applyOps command with specially malformed oplog entries, resulting in a potential denial of service on secondaries. This issue affects MongoDB Server v4.0 versions prior to 4.0.27;…

  • Medium 6.5

    User may trigger invariant when allowed to send commands directly to shards

    An authorized user may trigger an invariant which may result in denial of service or server exit if a relevant aggregation request is sent to a shard. Usually, the requests are sent via mongos and special privileges are required in order to know the address o…

  • Medium 5.3

    Server log entry spoofing via newline injection

    Sending specially crafted commands to a MongoDB Server may result in artificial log entries being generated or for log entries to be split. This issue affects MongoDB Server v3.6 versions prior to 3.6.20; MongoDB Server v4.0 versions prior to 4.0.21 and Mongo…

  • Medium 6.5

    Specially crafted query may result in a denial of service of mongod

    A user authorized to performing a specific type of find query may trigger a denial of service. This issue affects MongoDB Server v4.4 versions prior to 4.4.4.

  • Medium 4.9

    Invariant failure when explaining a find with a UUID

    A user authorized to performing a specific type of query may trigger a denial of service by issuing a generic explain command on a find query. This issue affects MongoDB Server v4.0 versions prior to 4.0.6 and MongoDB Server v3.6 versions prior to 3.6.11.

  • Medium 6.5

    Specially crafted regex query can cause DoS

    A user authorized to perform database queries may trigger denial of service by issuing specially crafted query contain a type of regex. This issue affects MongoDB Server v3.6 versions prior to 3.6.21 and MongoDB Server v4.0 versions prior to 4.0.20.

  • Medium 6.5

    Infinite loop in aggregation expression

    A user authorized to perform database queries may trigger denial of service by issuing specially crafted queries, which loop indefinitely in mathematics processing while retaining locks. This issue affects MongoDB Server v4.0 versions prior to 4.0.5; MongoDB …