Skip to content
OpenAdvisories

Vendor

MongoDB

387 known vulnerabilities.

387 results · Feed

  • Low 3.7

    mongorestore may restore encoded collection names into an unintended collection

    MongoDB Database Tools mongorestore incorrectly URL-decodes an original collection name read from metadata when the corresponding dump filename has been truncated. A database user who can create and populate a suitably encoded collection can cause a later aut…

  • Low 2.8

    mongofiles may write outside the working directory through a symlink

    MongoDB Database Tools mongofiles does not resolve existing parent-directory symlinks when validating output paths for get_regex. An unauthorized user who can both upload a GridFS file and place a symlink in the operator's download working directory can cause…

  • Medium 4.8

    mongofiles may disclose GridFS content to standard output through a stored filename

    MongoDB Database Tools mongofiles uses a database-stored GridFS filename as the output destination for get_id when --local is not specified. A user who can modify the file metadata can set the stored filename to '-', causing a later authorized retrieval to wr…

  • High 8.6

    mongorestore may bypass collection guards through a system.buckets prefix

    MongoDB Database Tools mongorestore inconsistently handles the system.buckets. prefix when validating collection names in an untrusted dump. A specially crafted collection name can bypass special-collection guards and operator namespace filters, causing a res…

  • High 7.0

    MongoDB Node.js driver: Connection pool desynchronization after operation timeout can expose other user's data

    A flaw in the connection management layer of the MongoDB Node.js driver can leave a pooled network connection in the pool for reuse while data from an earlier operation is still outstanding on it. In applications that enable an optional client-side operation …

  • Medium 6.8

    The DB Tools trust certificates issued by recoverable eMudhra intermediate CAs

    The DB Tools rely on the TLS implementation in Golang’s standard library, which generally uses the system CA store. However, the crypto/x509 package also has its own internal denylist of known-bad CA certificates. Golang 1.27.3 adds the eMudhra certificates t…

  • Medium 6.5

    NoSQL injection via mismatched BSON size prefix in raw document splice to the wire protocol

    A BSON encoding component of the MongoDB Java Driver does not verify that an externally supplied raw document's self-declared length agrees with the extent of the byte range it is given before that range is copied into an outgoing database command. An applica…

  • High 8.8

    Laravel MongoDB `whereDoesntHave` misses deny records for numeric string IDs

    A type-handling flaw in the relationship query building of this MongoDB integration library can cause a check for the absence of a related record to be compiled with an identifier of the wrong data type. In an application that relies on such a check to decide…

  • Medium 6.8

    MongoDB Shell (mongosh) bundled with Node.js trusts certificates issued by recoverable eMudhra intermediate CAs

    The MongoDB Shell (mongosh) relies on Node.js as a third-party runtime that carries its own TLS root certificate store. This certificate store has the recoverable eMudhra intermediate CA certificates. This issue impacts MongoDB Shell (mongosh) versions prior …

  • Medium 6.8

    MongoDB Compass trusts certificates issued by recoverable eMudhra intermediate CAs

    MongoDB Compass relies on Electron, a third-party runtime that carries its own TLS root certificate store. This root certificate store has the recoverable eMudhra intermediate CA certificates. Issue is resolved by updating to Compass 1.53.1, which includes El…

  • Medium 5.9

    KMS request injection via unsanitized key vault and provider values in libmongocrypt

    libmongocrypt builds requests to external key management services (AWS, Azure and GCP) by inserting values from key vault documents, KMS provider configuration and KMS responses into request lines, headers and signed request bodies without validating or encod…

  • Medium 6.5

    BSON output corruption via out-of-range binary subtype bypassing UUID and OldBinary guards

    A numeric-type conversion flaw in the BSON handling library of the MongoDB C# Driver allows an out-of-range binary subtype value supplied through untrusted textual input to bypass the library's binary-element integrity checks. When such a value is later encod…

  • Medium 6.5

    Silent client-side encryption bypass via unescaped field-name regex in CSFLE schema builder

    A client-side encryption schema construction component in the MongoDB C# Driver places caller-supplied field identifiers into a position that is interpreted as a pattern expression, without normalizing or validating them. As a result, an application that desi…

  • Medium 6.5

    Update operator injection via single-element list rewriting in the update builder

    A data-query-logic neutralization weakness in the update-statement construction component of the MongoDB C# Driver can cause application-supplied values to be interpreted as query/update logic rather than as literal data. An application user who can influence…

  • Medium 4.0

    Cross-document data leak via malformed BSON array parsing in reused thread buffer

    A memory-handling weakness in the BSON deserialization component of the MongoDB C# Driver may cause data left over from previously processed content to be returned when specially crafted serialized input is parsed. An unauthenticated party able to supply seri…

  • Medium 5.9

    Plaintext exposure of encrypted fields via ANSI code-page corruption of database name

    A flaw in the client-side encryption support of the MongoDB .NET/C# driver can cause data designated for client-side field-level encryption to be written without encryption. Under certain platform text-encoding configurations, an internal name conversion lose…

  • Medium 6.8

    Authentication bypass via issuer-and-serial-only certificate equality in shared cluster cache

    The MongoDB C# Driver compares TLS client certificates by issuer and serial number only when deciding whether two clients can share cached connections. In an application that creates clients from certificates supplied by different users, a user who provides a…

  • High 7.6

    NoSQL injection via dot and dollar characters in LINQ filter field names and dictionary keys

    The MongoDB C# Driver does not neutralize dot and dollar characters in dictionary keys, field names and array-filter identifiers used in LINQ queries before placing them into the field paths it sends to the server. An application user whose input reaches thes…

  • Medium 4.3

    NoSQL operator injection via unvalidated replacement document in findOneAndReplace

    The MongoDB C# Driver does not reject replacement documents whose top-level field names begin with a dollar sign in FindOneAndReplace, unlike other replace operations. An application that builds such a document from user-supplied field names can have the serv…

  • Medium 6.5

    NoSQL command injection via mismatched raw BSON length prefix written verbatim to the wire

    A data-validation flaw exists in the BSON handling and binary serialization path of the MongoDB C# Driver. When an application constructs a raw or lazy BSON document object from externally supplied binary data, the driver does not verify that the size quantit…

  • Medium 5.2

    Heap overflow via 32-bit length wrap of the URI username in Windows Kerberos auth message wrapping

    A 32-bit integer wraparound in the MongoDB C Driver's Windows-only Kerberos/SSPI authentication code can cause an undersized heap buffer to be allocated when an excessively long credential value is supplied in the client's connection configuration. A party ab…

  • Medium 5.9

    Memory-exhaustion denial of service via unbounded symbol interning during BSON/JSON deserialization

    The MongoDB C# Driver's BSON library contains an uncontrolled resource consumption weakness in its deserialization handling of one BSON value type. An application that deserializes untrusted content with the library retains data derived from that content for …

  • Medium 5.4

    Duplicate geometry fields via unvalidated GeoJSON extra members

    The MongoDB C# Driver writes GeoJSON extra members without checking whether their names collide with reserved GeoJSON members such as type and coordinates. An application that places user-supplied field names into these extra members can store documents with …

  • High 8.8

    Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing

    MongoDB Compass improperly escapes certain BSON values when converting a stored view’s aggregation pipeline into editable source. When a user connects to a MongoDB deployment containing a specially crafted view and opens that view for editing, the values can …

  • High 7.5

    Unbounded Recursion in phongo_bson_visit_document/visit_array:

    An uncontrolled recursion weakness in the BSON decoding logic of the MongoDB PHP driver may allow an unauthenticated party who can supply crafted binary document data to the decoder to exhaust the process stack. This may cause the PHP process using the driver…

  • Medium 6.5

    Incorrect authorization in MongoDB Server router for bulk writes to system namespaces

    A security issue was discovered in MongoDB mongos (the sharded cluster router) where an authenticated user with readWrite privileges could crash the mongos process by crafting a specially formed aggregation pipeline. The issue leverages an internal aggregatio…

  • Medium 6.5

    Collection validators using collation-accepting expressions can crash MongoDB Server on insert

    MongoDB Server's collection validation feature may not properly handle certain expressions stored in a validator. In some cases, this can cause the server process to stop running when a document is later inserted. The behavior can occur for authenticated user…

  • Medium 5.4

    Fixed values in MongoDB Server $bucket stage may be misread as field references

    An issue in MongoDB Server's aggregation framework can cause certain constant values to be handled incorrectly during internal query rewriting. Under certain conditions, an authenticated user with read access may receive field values in aggregation output tha…

  • Medium 6.5

    Missing Authorization Check on Internal Aggregation Stage in MongoDB Server mongos Leads to Denial of Service

    A security issue was discovered in MongoDB mongos (the sharded cluster router) where an authenticated user with readWrite privileges could crash the mongos process by crafting a specially formed aggregation pipeline. The issue leverages an internal aggregatio…

  • Medium 6.5

    MongoDB Server may disclose process memory via a crafted `$_internalApplyOplogUpdate` aggregation pipeline

    Use of freed memory in the aggregation feature of MongoDB Server can cause the server to read data from a memory area after it has been released. When an internal aggregation stage is combined with a batch size of 0, the server may read from memory that is no…

  • Medium 5.3

    Ops Manager Sensitive MFA Enrollment Information Exposure in User Listings

    An authenticated Ops Manager organization member can retrieve another member's pending authenticator enrollment seed through user-listing endpoints while that member's enrollment is unconfirmed. This results in disclosure of secret authentication material to …

  • Low 3.1

    Ops Manager Improper Authorization in Daily Host Monitoring Retrieval

    An authenticated Ops Manager user with a read-only project role can retrieve a daily host monitoring record associated with a different project when they possess the required record identifier. Insufficient ownership validation can expose deployment metadata,…

  • Medium 5.3

    Ops Manager Uncontrolled Resource Consumption in Monitoring Endpoints

    An unauthenticated user with network access to the Ops Manager web port can repeatedly request monitoring endpoints that perform costly work without rate limiting. This can temporarily slow other traffic served by the same process while requests continue.

  • Medium 5.1

    Application denial of service via out-of-bounds read in BSON Regex decoding in MongoDB Python Driver

    The MongoDB Python Driver's binary accelerator can read outside a buffer when an application decodes malformed BSON containing a truncated regular-expression element without a trailing NUL byte. An actor who can supply BSON to the documented decode or decode_…

  • Medium 4.8

    Application denial of service and data truncation via unchecked BSON append failures in MongoDB PHP Driver

    The BSON encoder in the MongoDB PHP Driver does not check some return values after a document exceeds libbson's size limit. This can leave the encoder in an invalid state. An unauthenticated actor who can cause an affected application to encode an unusually l…

  • Low 3.6

    Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver

    The BSON encoder in the MongoDB PHP Driver converts a string length to a 32-bit value without validation. When an affected application encodes a string near 4 GiB, the allocation size can wrap while the copy operation uses the original length. The resulting h…

  • Medium 5.9

    Application denial of service via missing BSON array length validation in MongoDB Go Driver

    Improper validation of a BSON array length in the MongoDB Go Driver can cause an out-of-bounds index and runtime panic when an application calls bson.RawArray.Validate or bsoncore.Array.Validate on a malformed four-byte array. An unauthenticated actor who can…

  • Medium 5.9

    Application denial of service via integer overflow in BSON value-length validation in MongoDB Go Driver

    An integer overflow in BSON value-length handling in the MongoDB Go Driver can cause a runtime panic when an application validates or accesses a malformed BSON document. An unauthenticated actor who can supply BSON bytes to an affected application may termina…

  • Medium 4.3

    Unrecognized payload acceptance in explicit decryption in MongoDB libmongocrypt

    The explicit decryption component of MongoDB libmongocrypt can return an unrecognized encrypted payload unchanged instead of returning a decryption error. An actor who can modify stored encrypted fields, such as a database writer, server, or network intermedi…

  • High 8.8

    Heap corruption via duplicate masterKey fields in MongoDB libmongocrypt

    Improper state management in MongoDB libmongocrypt can cause provider-specific data to be treated as an incompatible type when cleaning up a key document containing duplicate masterKey fields. An authenticated actor who can modify key vault documents, or a se…