Skip to content
OpenAdvisories

Product · MongoDB

C Driver

46 known vulnerabilities.

32 results · Clear filters · Feed

  • Medium 6.5

    MongoDB C Driver GridFS gap lets a shared writer recover a protected client's password

    A memory-initialization flaw in the legacy GridFS file handling of the MongoDB C Driver can cause uninitialized process memory to be treated as valid file content and stored on the server. A database user holding ordinary write access to a shared storage area…

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

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

  • Medium 5.9

    Query and rename target confusion via embedded NUL truncation in MongoDB C++ Driver

    The MongoDB C++ Driver discards content after an embedded NUL byte in certain field and collection names accepted by the collection API. This can cause the driver and the calling application to interpret the same name differently. An authenticated actor who c…

  • Medium 4.0

    Silent Decimal128 value corruption via incorrect exactness check in MongoDB C Driver

    An incorrect calculation in Decimal128 string parsing in the MongoDB C Driver can accept certain over-precision inputs containing leading zeros instead of rejecting them. This produces a value different from the supplied text. An actor who can provide a decim…

  • Medium 6.2

    Out-of-bounds read and write via undersized BSON buffer reservation in MongoDB C Driver

    The BSON buffer-reservation API in the MongoDB C Driver can record a length smaller than the five-byte BSON minimum. Later append or comparison operations can underflow unsigned length calculations and read or write outside the document buffer. An actor who c…

  • Medium 5.7

    One-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver

    An off-by-one error in the BSON bulk document writer in the MongoDB C Driver can write one zero byte immediately past a heap allocation when a document ends at a specific buffer boundary. An actor who can influence the size of documents serialized by an embed…

  • Medium 6.5

    Heap buffer overflow via mid-scan command list growth in client topology monitoring

    An out-of-bounds write in the connection-monitoring logic of the MongoDB C Driver may allow an unauthenticated party who controls name resolution and the responses of the hosts named in a client's connection string to write beyond the end of a heap buffer. Th…

  • Medium 5.3

    Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()

    A missing lower-bound validation in the bson_new_from_buffer() function of libbson allows an integer underflow when processing BSON data with a zero-length prefix. The function reads a 32-bit document length from the input buffer but does not verify that the …

  • Medium 4.7

    Heap buffer overflow via wrapped size check during SASL username canonicalization in MongoDB C Driver

    A size check in the client-side authentication path of the MongoDB C Driver can wrap around, so an unusually large user-name value is accepted and copied past the end of a small buffer. A party able to set the driver's connection settings may cause the applic…

  • Medium 6.5

    Regular expression injection via unescaped characters in LINQ query translation in MongoDB C# Driver

    Improper neutralization of regular-expression metacharacters in the LINQ query translation component of the MongoDB C# Driver can cause a caller-supplied character sequence to alter a regular-expression predicate generated by an affected application. An authe…

  • Medium 5.3

    Silent field truncation via unchecked int cast of huge JSON string values in JSON-to-BSON parser

    An incorrect numeric conversion in the JSON parsing component of the MongoDB C Driver's BSON library may cause an unusually large text value to be silently shortened, or the corresponding field to be omitted, while the parsing operation still reports success …

  • Medium 5.9

    Heap corruption via OCSP request double free from crafted multi-URL certificate in TLS client

    A double free in the OpenSSL-based TLS certificate revocation checking path of the MongoDB C Driver can be reached by a TLS endpoint that the client already trusts. During the handshake, specially formed certificate data can cause the same heap object to be r…

  • Medium 5.1

    Heap write primitive via size round-up wrap during JSON parsing on 32-bit builds

    An integer wraparound in an allocation size calculation in the BSON library's JSON parsing code can cause a buffer to be released while a following copy operation still writes through the stale pointer. On builds where sizes are 32 bits, an unauthenticated pa…

  • Medium 5.1

    BSON element injection via NUL-embedded document keys in builder append

    An incorrect numeric type conversion in the BSON document building component of the MongoDB C++ Driver may cause a length value to be interpreted incorrectly. When an application supplies an extremely large, non-terminated field name to the builder, the libra…

  • Medium 6.2

    Heap over-read or silent misparse via 32-bit truncation of JSON length in BSON JSON parser

    A numeric truncation weakness exists in the JSON parsing component of the MongoDB C++ Driver's BSON library. An actor who controls the text that an embedding application hands to the library's public JSON parsing interface, when that text is very large, can c…

  • Medium 5.6

    KMS master key exposure via unredacted credential serialization in driver settings string

    A weakness in the client-side encryption configuration surface of the MongoDB C# Driver causes sensitive key-management credential material supplied by the application to be reproduced verbatim in the driver's human-readable diagnostic representation of its c…

  • Medium 5.4

    NoSQL injection via array replacement bypassing update shape validation in driver write path

    A MongoDB C# driver document-replacement code path omits the element-name/shape validation that the equivalent write paths apply, so a value supplied as a replacement is forwarded to the server without neutralization of query-language special elements. An app…

  • Medium 6.5

    NoSQL injection via unquoted constant GroupBy keys in LINQ pipeline translation

    A NoSQL/expression injection weakness exists in the LINQ-to-aggregation query translation layer of the MongoDB C# Driver, in both aggregation expression and query filter translation. When application-supplied values are embedded in certain query constructs, s…

  • Medium 5.4

    Cross-tenant database retargeting via dot/NUL injection in namespace strings in the C Driver

    A weakness in the MongoDB C Driver allows special elements in caller-supplied database and collection name components to pass without sanitization when the driver composes the target namespace for an operation. An application that incorporates untrusted input…

  • Medium 5.9

    Heap memory out of bounds read and crash in C Driver legacy GridFS file reader

    The MongoDB C Driver's legacy GridFS API accepts malformed file metadata from the database without adequate validation. Crafted documents in a GridFS collection may cause any application that reads those files via the legacy API to either crash (via a divisio…

  • Medium 4.3

    bson_validate may skip validation when processing certain inputs

    The bson_validate function may return early on specific inputs and incorrectly report success. This behavior could result in skipping validation for BSON data, allowing malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. Th…

  • Medium 6.8

    Bulk write with options may read invalid memory

    A mongoc_bulk_operation_t may read invalid memory if large options are passed.