MongoDB MongoDB NoSQL Database

Don't miss out!

Thousands of developers use stack.watch to stay informed.
Get an email whenever new security vulnerabilities are reported in any MongoDB product.

RSS Feeds for MongoDB security vulnerabilities

Create a CVE RSS feed including security vulnerabilities found in MongoDB products with stack.watch. Just hit watch, then grab your custom RSS feed url.

Products by MongoDB Sorted by Most Security Vulnerabilities since 2018

MongoDB84 vulnerabilities
NoSQL Database

MongoDB C Driver13 vulnerabilities

MongoDB Ops Manager5 vulnerabilities

MongoDB Compass4 vulnerabilities

MongoDB Libbson4 vulnerabilities

MongoDB Mongocryptd1 vulnerability

MongoDB Pymongo1 vulnerability

MongoDB Mongosh1 vulnerability

Mongodb Server1 vulnerability

MongoDB Mongo Crypt V1 So1 vulnerability

Known Exploited MongoDB Vulnerabilities

The following MongoDB vulnerabilities have been marked by CISA as Known to be Exploited by threat actors.

Title Description Added
MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency Vulnerability MongoDB Server contains an improper handling of length parameter inconsistency vulnerability in Zlib compressed protocol headers. This vulnerability may allow a read of uninitialized heap memory by an unauthenticated client.
CVE-2025-14847 Exploit Probability: 58.9%
December 29, 2025
MongoDB mongo-express Remote Code Execution Vulnerability mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method.
CVE-2019-10758 Exploit Probability: 94.4%
December 10, 2021

The vulnerability CVE-2019-10758: MongoDB mongo-express Remote Code Execution Vulnerability is in the top 1% of the currently known exploitable vulnerabilities. The vulnerability CVE-2025-14847: MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency Vulnerability is in the top 5% of the currently known exploitable vulnerabilities.

By the Year

In 2026 there have been 33 vulnerabilities in MongoDB with an average score of 6.2 out of ten. Last year, in 2025 MongoDB had 23 security vulnerabilities published. That is, 10 more vulnerabilities have already been reported in 2026 as compared to last year. Last year, the average CVE base score was greater by 0.23




Year Vulnerabilities Average Score
2026 33 6.22
2025 23 6.45
2024 17 6.72
2023 6 7.03
2022 4 6.65
2021 14 5.71
2020 20 6.42
2019 3 6.87
2018 2 8.10

It may take a day or so for new MongoDB vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.

Recent MongoDB Security Vulnerabilities

CVE Date Vulnerability Products
CVE-2026-9101 May 20, 2026
MongoDB Compass: CSV import prototype pollution leads to 1click exec Prototype pollution in csv parsing logic during import can lead to untrusted file paths (but not arguments) entering shell.openExternal after specific user behavior leading to "1-click" command execution.
Compass
CVE-2026-9100 May 20, 2026
MongoDB C Driver GridFS API divisionzero via malformed metadata 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 division-by-zero) or silently leak process memory contents (via an out-of-bounds read).
C Driver
CVE-2026-8843 May 18, 2026
MongoDB 7.0 (pre-7.0.32) | 2dsphere_bucket Index Crash on Non-TS Buckets 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" indices. This issue affects MongoDB Server v7.0 versions prior to 7.0.32, v8.0 versions prior to 8.0.21 and v8.2 versions prior to 8.2.6
MongoDB
CVE-2026-6811 May 14, 2026
MongoDB PHP Driver Stack Exhaustion from Deeply Nested BSON Stack exhaustion vulnerability in the MongoDB PHP driver can cause application crashes when processing deeply nested BSON documents in unusual circumstances when the source of these BSON documents is not MongoDB Server.
CVE-2026-8202 May 13, 2026
DoS via $trim/$ltrim/$rtrim in MongoDB 7.0-8.3 (pre 7.0.34, 8.0.23, 8.2.9, 8.3.2) 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 MongoDB Server v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.
MongoDB
CVE-2026-8336 May 13, 2026
MongoDB Server <7.0.34/8.0.23/8.2.9/8.3.2: Auth DoS via _internalJsEmit After invoking $_internalJsEmit, which is not intended to be directly accessible, or mapreduce commands map function in a certain way, an authenticated user can subsequently crash mongod when the server-side JavaScript engine (through $where, $function, mapreduce reduce stage, etc.) is used also in a specific way, resulting in a post-authentication denial-of-service. This issue impacts MongoDB Server v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.
MongoDB
CVE-2026-8201 May 13, 2026
Use-After-Free in MongoDB mongocryptd FLE query (v7.0<7.0.34/8.0<8.0.23) 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 query. This issue impacts MongoDB Servers mongocryptd component v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.
MongoDB
CVE-2026-8200 May 13, 2026
MongoDB Server 7.0 log message data leak via schema validation prior to 7.0.34 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 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.
MongoDB
CVE-2026-8199 May 13, 2026
MongoDB Server OOM via Bitwise Expr AST (7.0.33,8.0.22,8.2.8,8.3.1) 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 MongoDB Server v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.
MongoDB
CVE-2026-8053 May 12, 2026
MongoDB Server <=8.3.2 OOB EDR via TimeSeries Bucket Catalog 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-to-index mapping within the time-series bucket catalog. Under certain conditions this can result in arbitrary code execution. This issue impacts MongoDB Server v5.0 versions prior to 5.0.33, v6.0 versions prior to 6.0.28, v7.0 versions prior to 7.0.34, v8.0 versions prior to 8.0.23, v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.
MongoDB
CVE-2026-8431 May 12, 2026
Arbitrary Cmd Exec via Webhook FreeMarker in MongoDB Ops Manager 7.x & 8.0.22- An administrative user with access to configure webhooks can execute arbitrary commands by configuring and then triggering webhooks containing specific FreeMarker template syntax.  This issue affects all MongoDB Ops Manager 7.0 versions and MongoDB Ops Manager versions 8.0.22 and prior.
Ops Manager
CVE-2026-8063 May 07, 2026
Atlas Search $rankFusion/$scoreFusion Null Ptr Crash (MongoDB 8.2<8.2.7) An authenticated user can crash mongod when running $rankFusion or $scoreFusion with an empty pipeline on a view. When resolving a view, the server inspects the aggregation pipeline to determine whether it begins with an Atlas Search stage. For $rankFusion and $scoreFusion, this inspection reads the first element on each stages input pipeline array without first verifying that the array is non-empty. Supplying an empty pipeline causes a null pointer dereference and crashes the server. This issue affects MongoDB Server 8.2 versions prior to 8.2.7.
MongoDB
CVE-2026-6691 May 06, 2026
MongoDB C Driver GSSAPI Username Canonicalization Heap Overflow The MongoDB C Driver's Cyrus SASL integration performs unsafe string copying during username canonicalization, enabling a heap buffer overflow before any authentication or network traffic. This may be triggered by passing untrusted input in the username of a MongoDB URI with authMechanism=GSSAPI.
C Driver
CVE-2026-6915 Apr 29, 2026
MongoDB Auth Flaw: Auth'd User Can Alter Another User's Auth Data 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.
MongoDB
CVE-2026-6914 Apr 29, 2026
MongoDB Server v7-8.2 DoS via MD5 on Malformed BSON 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.21, MongoDB Server v7.0 versions prior to 7.0.32
MongoDB
CVE-2026-6231 Apr 13, 2026
MongoDB C Driver <1.30.5, 2.0.x: bson_validate Skips Validation Bypass 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. The issue may affect applications that rely on these functions to validate untrusted BSON data before further processing. This issue affects MongoDB C Driver versions prior to 1.30.5, MongoDB C Driver version 2.0.0 and MongoDB C Driver version 2.0.1
C Driver
CVE-2026-5170 Mar 30, 2026
MongoDB Server <=8.2.2 DDoS: mongod Crash during Replica Set Promotion 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 of service by taking down the primary of the replica set. This issue affects MongoDB Server v8.2 versions prior to 8.2.2, MongoDB Server v8.0 versions between 8.0.18, MongoDB Server v7.0 versions between 7.0.31.
MongoDB
CVE-2026-4359 Mar 17, 2026
MongoDB C Driver Crash via Malformed HTTP Response (CVE-2026-4359) A compromised third party cloud server or man-in-the-middle attacker could send a malformed HTTP response and cause a crash in applications using the MongoDB C driver.
C Driver
CVE-2026-4358 Mar 17, 2026
MongoDB SBE: $lookup Auth Query Can Trigger Double-Free/UAF 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.
MongoDB
CVE-2026-4148 Mar 17, 2026
UAF in MongoDB $lookup Aggregation Pipeline 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.
MongoDB
CVE-2026-4147 Mar 17, 2026
MongoDB: FileMD5 Command Allows Authenticated Read of Uninitialized Stack Memory An authenticated user with the read role may read limited amounts of uninitialized stack memory via specially-crafted issuances of the filemd5 command.
MongoDB
CVE-2026-2303 Feb 10, 2026
Heap OOB Read in mongo-go-driver GSSAPI CGo Bindings The mongo-go-driver repository contains CGo bindings for GSSAPI (Kerberos) authentication on Linux and macOS. The C wrapper implementation contains a heap out-of-bounds read vulnerability due to incorrect assumptions about string termination in the GSSAPI standard. Since GSSAPI buffers are not guaranteed to be null-terminated or have extra padding, this results in reading one byte past the allocated heap buffer.
CVE-2026-2302 Feb 10, 2026
Mongoid::Criteria.from_hash allows ARB Ruby code exec via crafted Hash Under specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code.
MongoDB
CVE-2026-25613 Feb 10, 2026
MongoDB Crash via Invalid Compound Wildcard Index An authorized user may disable the MongoDB server by issuing a query against a collection that contains an invalid compound wildcard index.
MongoDB
CVE-2026-1849 Feb 10, 2026
MongoDB Server OOM via deep nested expression evaluation 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.
MongoDB
CVE-2026-1850 Feb 10, 2026
MongoDB Query Planner OOM via Complex Queries Complex queries can cause excessive memory usage in MongoDB Query Planner resulting in an Out-Of-Memory Crash.
MongoDB
CVE-2026-25609 Feb 10, 2026
Profile cmd validation flaw enables readonly misclassification (CVE202625609) Incorrect validation of the profile command may result in the determination that a request altering the 'filter' is read-only.
MongoDB
CVE-2026-25610 Feb 10, 2026
MongoDB Server Crash via $geoNear Pipeline Index Hints An authorized user may trigger a server crash by running a $geoNear pipeline with certain invalid index hints.
MongoDB
CVE-2026-1848 Feb 10, 2026
MongoDB: proxy_protocol header miscount leads to server crash Connections received from the proxy port may not count towards total accepted connections, resulting in server crashes if the total number of connections exceeds available resources. This only applies to connections accepted from the proxy port, pending the proxy protocol header.
MongoDB
CVE-2026-1847 Feb 10, 2026
MongoDB Replica Set Oplog Fetch Failure Causing Crash 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.
MongoDB
CVE-2026-25612 Feb 10, 2026
MongoDB Server Lock Collision Unavailability Vulnerability 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 conflicting locks.
MongoDB
CVE-2026-25611 Feb 10, 2026
MongoDB Server Memory Exhaustion via Unauthenticated Messages A series of specifically crafted, unauthenticated messages can exhaust available memory and crash a MongoDB server.
MongoDB
CVE-2025-14911 Jan 27, 2026
MongoDB GridFS chunkSize OOB buffer overflow User-controlled chunkSize metadata from MongoDB lacks appropriate validation allowing malformed GridFS metadata to overflow the bounding container.
C Driver
CVE-2025-14847 Dec 19, 2025
MongoDB Server Uninit Heap Read via Zlib Header Len Mismatch <4.2.0 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 Server v8.2 versions prior to 8.2.3, MongoDB Server v6.0 versions prior to 6.0.27, MongoDB Server v5.0 versions prior to 5.0.32, MongoDB Server v4.4 versions prior to 4.4.30, MongoDB Server v4.2 versions greater than or equal to 4.2.0, MongoDB Server v4.0 versions greater than or equal to 4.0.0, and MongoDB Server v3.6 versions greater than or equal to 3.6.0.
MongoDB
CVE-2025-14345 Dec 09, 2025
MongoDB Server 7.0/8.0/8.2 Before x.x: Post-Auth Tx Commit Flaw 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. This error can cause the transaction coordination logic to misinterpret the transaction as committed, resulting in inconsistent state on those shards. This may lead to low integrity and availability impact. This issue impacts MongoDB Server v8.0 versions prior to 8.0.16, MongoDB Server v7.0 versions prior to 7.0.26 and MongoDB server v8.2 versions prior to 8.2.2.
MongoDB
CVE-2025-13644 Nov 25, 2025
MongoDB invariant failure in batched delete (v7.0<26, v8.0<13, v8.1<2) 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 BSONObjMaxSize. This issue affects MongoDB Server v7.0 versions prior to 7.0.26, MongoDB Server v8.0 versions prior to 8.0.13, and MongoDB Server v8.1 versions prior to 8.1.2
MongoDB
CVE-2025-13643 Nov 25, 2025
MongoDB Denial-of-Service via Query Termination Privileges before 7.0.26/8.0.14 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 affects MongoDB Server v7.0 versions prior to 7.0.26 and MongoDB Server v8.0 versions prior to 8.0.14
MongoDB
CVE-2025-12893 Nov 25, 2025
TLS EKU Bypass CVE-2025-12893: MongoDB Server v7.0/8.0/8.2 Pre-Fix 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 extendedKeyUsage = clientAuth may still be successfully authenticated via the TLS handshake as a client. This issue is specific to MongoDB servers running on Windows or Apple as the expected validation behavior functions correctly on Linux systems. Additionally, MongoDB servers may successfully establish egress TLS connections with servers that present server certificates not aligning with the documented Extended Key Usage (EKU) requirements. A certificate that specifies extendedKeyUsage but is missing extendedKeyUsage = serverAuth may still be successfully authenticated via the TLS handshake as a server. This issue is specific to MongoDB servers running on Apple as the expected validation behavior functions correctly on both Linux and Windows systems. This vulnerability affects MongoDB Server v7.0 versions prior to 7.0.26, MongoDB Server v8.0 versions prior to 8.0.16 and MongoDB Server v8.2 versions prior to 8.2.2
MongoDB
CVE-2025-13507 Nov 25, 2025
MongoDB Server <=7.0.26/8.0.16/8.2.1: Timeseries Oversized BSON Crash 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 prior to 8.0.16 and MongoDB server v8.2 versions prior to 8.2.1.
MongoDB
CVE-2025-12119 Nov 18, 2025
Memory Disclosure via Large Options in MongoDB C Driver (mongoc_bulk_operation_t) A mongoc_bulk_operation_t may read invalid memory if large options are passed.
C Driver
CVE-2025-12657 Nov 03, 2025
MongoDB KMIP Parser Tolerant to Malformed Packets Causing Read 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.
MongoDB
CVE-2025-12100 Oct 23, 2025
MongoDB BI Connector ODBC Driver Default-Perm Priv Escalation v1.0.01.4.6 Incorrect Default Permissions vulnerability in MongoDB BI Connector ODBC driver allows Privilege Escalation.This issue affects BI Connector ODBC driver: from 1.0.0 through 1.4.6.
C Driver
CVE-2025-11575 Oct 23, 2025
Privilege Escalation in MongoDB Atlas SQL ODBC Driver 1.0.0-2.0.0 (Win) Incorrect Default Permissions vulnerability in MongoDB Atlas SQL ODBC driver on Windows allows Privilege Escalation.This issue affects MongoDB Atlas SQL ODBC driver: from 1.0.0 through 2.0.0.
C Driver
CVE-2025-11979 Oct 20, 2025
MongoDB Server v7.0 Xbefore 7.0.25: Buffer Overread Crash by Authorized User An authorized user may crash the MongoDB server by causing buffer over-read. This can be done by issuing a DDL operation while queries are being issued, under some conditions. This issue affects MongoDB Server v7.0 versions prior to 7.0.25, MongoDB Server v8.0 versions prior to 8.0.15, and MongoDB Server version 8.2.0.
MongoDB
CVE-2025-11695 Oct 13, 2025
MongoDB Rust Driver <3.2.5: tlsInsecure=False disables cert validation When tlsInsecure=False appears in a connection string, certificate validation is disabled. This vulnerability affects MongoDB Rust Driver versions prior to v3.2.5
CVE-2025-11535 Oct 08, 2025
MongoDB Connector for BI MSI ACL Misconfig PrivEsc (2.0.0-2.14.24) MongoDB Connector for BI installation via MSI on Windows leaves ACLs unset on custom install directories allows Privilege Escalation.This issue affects MongoDB Connector for BI: from 2.0.0 through 2.14.24.
MongoDB
CVE-2025-10491 Sep 15, 2025
DLL Hijack via ACL Misconfig in MongoDB <6.0.25 / <7.0.21 / <8.0.5 (Windows MSI) The MongoDB Windows installation MSI may leave ACLs unset on custom installation directories allowing a local attacker to introduce executable code to MongoDB's process via DLL hijacking. This issue affects MongoDB Server v6.0 version prior to 6.0.25, MongoDB Server v7.0 version prior to 7.0.21 and MongoDB Server v8.0 version prior to 8.0.5
MongoDB
CVE-2025-7259 Jul 07, 2025
MongoDB 8.1 Duplicate _id Queries Causing Crash (DOS) 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 v8.1 version 8.1.0.
MongoDB
CVE-2025-6713 Jul 07, 2025
MongoDB $mergeCursors RCE: Access without auth in 6.0-8.0 < 6.0.22/7.0.19/8.0.7 An unauthorized user may leverage a specially crafted aggregation pipeline to access data without proper authorization due to improper handling of the $mergeCursors stage in MongoDB Server. This may lead to access to data without further authorisation. This issue affects MongoDB Server MongoDB Server v8.0 versions prior to 8.0.7, MongoDB Server v7.0 versions prior to 7.0.19 and MongoDB Server v6.0 versions prior to 6.0.22
MongoDB
CVE-2025-6709 Jun 26, 2025
MongoDB Server DoS via Malformed Date in OIDC JSON (v6.0 <6.0.21, v7.0 <7.0.17, v8.0 <8.0.5) The MongoDB Server is susceptible to a denial of service vulnerability due to improper handling of specific date values in JSON input when using OIDC authentication. This can be reproduced using the mongo shell to send a malicious JSON payload leading to an invariant failure and server crash. This issue affects MongoDB Server v7.0 versions prior to 7.0.17 and MongoDB Server v8.0 versions prior to 8.0.5. The same issue affects MongoDB Server v6.0 versions prior to 6.0.21, but an attacker can only induce denial of service after authenticating.
MongoDB
Built by Foundeo Inc., with data from the National Vulnerability Database (NVD). Privacy Policy. Use of this site is governed by the Legal Terms
Disclaimer
CONTENT ON THIS WEBSITE IS PROVIDED ON AN "AS IS" BASIS AND DOES NOT IMPLY ANY KIND OF GUARANTEE OR WARRANTY, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. YOUR USE OF THE INFORMATION ON THE DOCUMENT OR MATERIALS LINKED FROM THE DOCUMENT IS AT YOUR OWN RISK. Always check with your vendor for the most up to date, and accurate information.