Mongodb C Driver vulnerabilities
63 vulnerabilities
Known vulnerabilities in Mongodb C Driver, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.
PrioritiseCVE-2026-135134mongodb · c driver +1 moreNULL pointer dereference when parsing server hello replies in the C DriverA NULL pointer dereference and invalid memory release in the server discovery component of the MongoDB C Driver may allow an unauthenticated party that controls a server endpoint, or that can alter unencrypted network traffic, to cause a client application to terminate by sending a crafted discovery response.CVSS8.2HighEPSS0.56%RoutineCVE-2026-135222mongodb · c driver +2 moreIncorrect authorization in AWS credential selection in the C DriverMongoDB C Driver contains an incorrect authorization weakness in the credential-selection logic used by its AWS authentication mechanism. A process-wide credential cache can take precedence over the credentials supplied for an individual connection, so a connection configured with one set of credentials may instead be authenticated under an identity cached earlier in the same process. A party able to cause the application process to open an additional connection may thereby obtain unintended privileges.CVSS3.3LowEPSS0.25%PrioritiseCVE-2026-135224mongodb · c driver +2 moreImproper validation of OCSP responder authorization in the C DriverThe MongoDB C Driver does not confirm that the party signing a supplied certificate revocation status response is authorized to answer for the certificate being checked. An unauthenticated party that operates the TLS endpoint a client connects to can therefore have a withdrawn certificate accepted. This may result in unintended disclosure of the application's database traffic and in the loss of the revocation decision.CVSS9.3CriticalEPSS0.35%RoutineCVE-2026-129936mongodb · c driverCredential exposure via unmasked connection string in driver parse-error messagesA MongoDB C# Driver component that interprets connection configuration supplied by the hosting application can include the caller-supplied configuration value in the text of the error it raises when that value cannot be interpreted. The redaction applied to that text does not cover all forms in which secret material may appear, so authentication material embedded in the configuration value can be preserved in the resulting error text and in anything that records it. Exploitation requires only the low privilege needed to observe the application's own error output or logs on the system where the driver runs; no database credentials or server connectivity are required. The result is disclosure of sensitive information to parties whose access to error output is broader than their intended access to the configuration secret.CVSS5.7MediumEPSS0.14%PrioritiseCVE-2026-129938mongodb · c driverAttacker able to redirect a client's database traffic to a host they control via a comma in an SRV target, bypassing the SRV parent-domain guardAn improper neutralization of delimiters in the MongoDB C# driver's DNS SRV connection-string resolution lets an unauthenticated party who can answer the client's DNS SRV query place a host outside the trusted domain into the client's server list. When an application resolves the connection string through the affected API and connects with the result, application data, authentication credentials and query results may pass through that host. This may result in unintended disclosure of data and credentials and in forged query results.CVSS9.1CriticalEPSS0.36%RoutineCVE-2026-129937mongodb · c driverAuthentication identity confusion via NUL-byte injection in SASL PLAIN credentialsThe MongoDB C# Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the driver can alter where the fields of that message begin and end. This may result in a receiving system reading a login name and secret that differ from the values the application supplied. Authenticating as a different account still requires that account's password. Only deployments that use SASL PLAIN authentication are affected.CVSS6.3MediumEPSS0.27%RoutineCVE-2026-129939mongodb · c driver +3 moreCredential exposure via unmasked connection string in driver parse-error messages for the C driverThe MongoDB C Driver places a submitted connection-string option value into a diagnostic message without redaction when that option fails validation. The message is returned to the calling application and is also written to the process's standard error by the driver's default logging behavior. A party that can influence the connection string given to an application using the driver may cause that field's contents to be recorded, which may result in unintended disclosure of information the application placed in that field.CVSS6.8MediumEPSS0.15%RoutineCVE-2026-126982mongodb · c driverRemote code execution via generic-type allow-list bypass in BSON object deserializationA type allow-list bypass in the BSON serialization library of the MongoDB C# Driver allows a type-restriction check to be circumvented when polymorphic data is deserialized into loosely typed members. An unauthorized party who can supply or plant BSON/JSON data that the application later deserializes can cause the application process to instantiate .NET types outside the intended allow-list and populate them with unauthorized party-controlled values. In applications that contain a suitable gadget type, this can lead to arbitrary code execution in the context of the application, with corresponding loss of confidentiality, integrity, and availability. No special privileges beyond the ability to introduce data the application reads are required.CVSS7.7HighEPSS0.40%RoutineCVE-2026-126839mongodb · c driverDeserialization allow-list bypass via anonymous-type misdetection in BSON object deserializationA deserialization type-restriction control in the BSON serialization component can be bypassed because the check used to recognize a class of compiler-generated types relies on an overly permissive heuristic rather than a precise identification. An unauthorized party able to supply BSON content that an application later deserializes into a loosely typed member can cause types outside the intended allow-list to be constructed and populated with unauthorized party-supplied values inside the consuming application. This can lead to unexpected object state and errors in downstream application logic. No elevated privileges beyond the ability to place unauthorized party-influenced content in the deserialization path are required.CVSS4.2MediumEPSS0.24%RoutineCVE-2026-120954mongodb · c driver +2 moreSilent element-count truncation via 32-bit bit-length overflow in packed-bit vector viewsA weakness in the BSON library's handling of a specialized binary vector data type allows an arithmetic wraparound when computing the number of elements described by an oversized attacker-supplied value. On builds where the platform word size is 32 bits, an application that parses untrusted BSON data can be made to process only a small fraction of the supplied elements while the operation reports success, producing results that disagree with byte-oriented accessors and with 64-bit builds of the same library. No authentication or user interaction is required beyond getting the application to parse the data. The impact is limited to data integrity; memory safety is not affected and no information is disclosed.CVSS6.3MediumEPSS0.23%PrioritiseCVE-2026-120955mongodb · c driver +2 moreMongoDB C Driver Modern GridFS mongoc_gridfs_bucket_download_to_stream() Aborts Application on Malformed GridFS MetadataThe GridFS file download API in the MongoDB C Driver does not check the result of an internal operation under certain error conditions during file retrieval. This can cause the process to terminate when stream operations continue. A user who can influence file download parameters can trigger this condition, which may result in service unavailability for applications using the affected API.CVSS8.7HighEPSS0.36%RoutineCVE-2026-120956mongodb · c driver +2 moreremote abort and memory disclosure from a malformed cursor.nsThe MongoDB C Driver does not validate the type or format of a namespace field returned by the server in a query response. A MongoDB endpoint that a client application connects to, without needing any credentials, can return a malformed value in that field. This causes the client application process to terminate, and can also cause the driver to read memory outside an allocated buffer and to send a small amount of the application's own uninitialized heap memory back to the endpoint in a follow-up command. The impact is limited to the process that embeds the driver.CVSS7.1HighEPSS0.25%RoutineCVE-2026-120684mongodb · c driver +2 moreMongoDB C Driver GridFS gap lets a shared writer recover a protected client's passwordA 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 can arrange conditions under which an application later appends to such a file and writes that memory into records the same user is permitted to read, which may result in unintended disclosure of sensitive information from the application's process, including credentials.CVSS6.5MediumEPSS0.32%PrioritiseCVE-2026-120678mongodb · c driver +2 moreMongoDB C Driver leaks the decompressed reply buffer when an OP_COMPRESSED reply fails to parse (denial of service)A memory management flaw in the MongoDB C Driver's handling of compressed responses may cause the client library to hold on to memory that is never released. An unauthenticated party that controls the database endpoint a client application connects to may cause repeated, unbounded memory growth in that application, which may result in the application becoming unavailable. No credentials, transport security settings, or user interaction are required.CVSS8.7HighEPSS0.39%RoutineCVE-2026-114654mongodb · c driverBSON output corruption via out-of-range binary subtype bypassing UUID and OldBinary guardsA 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 encoded, it is narrowed to a smaller wire representation, producing binary elements that misdeclare their type or length. An unauthenticated party able to supply text parsed by an affected application can cause it to emit and persist malformed binary data, which subsequent readers either reject with an error or silently interpret as shorter than the data that was validated.CVSS6.9MediumEPSS0.38%RoutineCVE-2026-114653mongodb · c driverSilent client-side encryption bypass via unescaped field-name regex in CSFLE schema builderA 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 designates certain fields for client-side field-level encryption may have the protection silently fail to apply, so data intended to be encrypted is stored and returned in cleartext; conversely, the rule may apply more broadly than intended. No user action is required to cause the condition, and any party with ordinary read access to the stored data — without possession of the encryption keys — can observe the unprotected values.CVSS7.1HighEPSS0.22%RoutineCVE-2026-114652mongodb · c driverUpdate operator injection via single-element list rewriting in the update builderA 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 the content of values that the application passes into the affected builder surface, without any special privilege beyond ordinary read-write application access, may cause stored data to be modified or removed in ways the application never intended. The result is unauthorized integrity impact on the affected application data; there is no direct loss of confidentiality or availability of the database service.CVSS7.1HighEPSS0.31%RoutineCVE-2026-114651mongodb · c driverCross-document data leak via malformed BSON array parsing in reused thread bufferA 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 serialized data to an application that maps certain primitive collection types can cause residual bytes from unrelated data processed earlier on the same execution thread to be surfaced as legitimate values. This can result in disclosure of a limited amount of information belonging to other requests or principals of the consuming application. No authentication or special privileges within the application are required.CVSS6.3MediumEPSS0.41%RoutineCVE-2026-114650mongodb · c driver +1 morePlaintext exposure of encrypted fields via ANSI code-page corruption of database nameA 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 loses information, so the encryption layer fails to associate the operation with its configured encryption rules and the operation proceeds without an error being raised. An application user with the ability to write data through an affected application can therefore have sensitive fields persisted in plaintext, defeating the confidentiality guarantee that client-side encryption is intended to provide. No integrity or availability impact was observed.CVSS6.9MediumEPSS0.11%RoutineCVE-2026-114649mongodb · c driverAuthentication bypass via issuer-and-serial-only certificate equality in shared cluster cacheThe 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 certificate copying another user's issuer and serial number, without that user's private key, can be given connections authenticated with the other user's certificate. Database operations can then run under the other user's identity, affecting the confidentiality and integrity of data that identity can access.CVSS7.6HighEPSS0.21%