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
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: 71.2% |
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 16 vulnerabilities in MongoDB with an average score of 6.4 out of ten. Last year, in 2025 MongoDB had 23 security vulnerabilities published. If vulnerabilities keep coming in at the current rate, it appears that number of security vulnerabilities in MongoDB in 2026 could surpass last years number. Last year, the average CVE base score was greater by 0.03
| Year | Vulnerabilities | Average Score |
|---|---|---|
| 2026 | 16 | 6.41 |
| 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-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. |
|
| CVE-2026-4358 | Mar 17, 2026 |
MongoDB SBE: $lookup Auth Query Can Trigger Double-Free/UAFA 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. |
|
| CVE-2026-4148 | Mar 17, 2026 |
UAF in MongoDB $lookup Aggregation PipelineA 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. |
|
| CVE-2026-4147 | Mar 17, 2026 |
MongoDB: FileMD5 Command Allows Authenticated Read of Uninitialized Stack MemoryAn authenticated user with the read role may read limited amounts of uninitialized stack memory via specially-crafted issuances of the filemd5 command. |
|
| CVE-2026-2303 | Feb 10, 2026 |
Heap OOB Read in mongo-go-driver GSSAPI CGo BindingsThe 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 HashUnder specific conditions when processing a maliciously crafted value of type Hash r, Mongoid::Criteria.from_hash may allow for executing arbitrary Ruby code. |
|
| CVE-2026-25613 | Feb 10, 2026 |
MongoDB Crash via Invalid Compound Wildcard IndexAn authorized user may disable the MongoDB server by issuing a query against a collection that contains an invalid compound wildcard index. |
|
| CVE-2026-1849 | Feb 10, 2026 |
MongoDB Server OOM via deep nested expression evaluationMongoDB 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. |
|
| CVE-2026-1850 | Feb 10, 2026 |
MongoDB Query Planner OOM via Complex QueriesComplex queries can cause excessive memory usage in MongoDB Query Planner resulting in an Out-Of-Memory Crash. |
|
| 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. |
|
| CVE-2026-25610 | Feb 10, 2026 |
MongoDB Server Crash via $geoNear Pipeline Index HintsAn authorized user may trigger a server crash by running a $geoNear pipeline with certain invalid index hints. |
|
| CVE-2026-1848 | Feb 10, 2026 |
MongoDB: proxy_protocol header miscount leads to server crashConnections 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. |
|
| CVE-2026-1847 | Feb 10, 2026 |
MongoDB Replica Set Oplog Fetch Failure Causing CrashInserting 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. |
|
| CVE-2026-25612 | Feb 10, 2026 |
MongoDB Server Lock Collision Unavailability VulnerabilityThe 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. |
|
| CVE-2026-25611 | Feb 10, 2026 |
MongoDB Server Memory Exhaustion via Unauthenticated MessagesA series of specifically crafted, unauthenticated messages can exhaust available memory and crash a MongoDB server. |
|
| CVE-2025-14911 | Jan 27, 2026 |
MongoDB GridFS chunkSize OOB buffer overflowUser-controlled chunkSize metadata from MongoDB lacks appropriate validation allowing malformed GridFS metadata to overflow the bounding container. |
|
| CVE-2025-14847 | Dec 19, 2025 |
MongoDB Server Uninit Heap Read via Zlib Header Len Mismatch <4.2.0Mismatched 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. |
|
| CVE-2025-14345 | Dec 09, 2025 |
MongoDB Server 7.0/8.0/8.2 Before x.x: Post-Auth Tx Commit FlawA 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. |
|
| 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 |
|
| CVE-2025-13643 | Nov 25, 2025 |
MongoDB Denial-of-Service via Query Termination Privileges before 7.0.26/8.0.14A 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 |
|
| CVE-2025-12893 | Nov 25, 2025 |
TLS EKU Bypass CVE-2025-12893: MongoDB Server v7.0/8.0/8.2 Pre-FixClients 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 |
|
| CVE-2025-13507 | Nov 25, 2025 |
MongoDB Server <=7.0.26/8.0.16/8.2.1: Timeseries Oversized BSON CrashInconsistent 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. |
|
| 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. |
|
| CVE-2025-12657 | Nov 03, 2025 |
MongoDB KMIP Parser Tolerant to Malformed Packets Causing Read Access ViolationThe 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. |
|
| CVE-2025-12100 | Oct 23, 2025 |
MongoDB BI Connector ODBC Driver Default-Perm Priv Escalation v1.0.01.4.6Incorrect 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. |
|
| 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. |
|
| CVE-2025-11979 | Oct 20, 2025 |
MongoDB Server v7.0 Xbefore 7.0.25: Buffer Overread Crash by Authorized UserAn 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. |
|
| CVE-2025-11695 | Oct 13, 2025 |
MongoDB Rust Driver <3.2.5: tlsInsecure=False disables cert validationWhen 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. |
|
| 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 |
|
| 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. |
|
| 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.7An 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 |
|
| CVE-2025-6706 | Jun 26, 2025 |
MongoDB SBE UAF (v6.0<6.0.21, v7.0<7.0.17, v8.0<8.0.4)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 framework operation using a specific combination of rarely-used aggregation pipeline expressions. This issue affects MongoDB Server v6.0 version prior to 6.0.21, MongoDB Server v7.0 version prior to 7.0.17 and MongoDB Server v8.0 version prior to 8.0.4 when the SBE engine is enabled. |
|
| 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. |
|
| CVE-2025-6710 | Jun 26, 2025 |
MongoDB Server <7.0.17 & <8.0.5 Recursion JSON Parsing Stack OverflowMongoDB Server may be susceptible to stack overflow due to JSON parsing mechanism, where specifically crafted JSON inputs may induce unwarranted levels of recursion, resulting in excessive stack space consumption. Such inputs can lead to a stack overflow that causes the server to crash which could occur pre-authorisation. 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. |
|
| CVE-2025-3083 | Apr 01, 2025 |
MongoDB mongos Crash via Malicious Wire Msgs Before 5.0.31/6.0.20/7.0.16Specifically crafted MongoDB wire protocol messages can cause mongos to crash during command validation. This can occur without using an authenticated connection. This issue affects MongoDB v5.0 versions prior to 5.0.31, MongoDB v6.0 versions prior to 6.0.20 and MongoDB v7.0 versions prior to 7.0.16 |
|
| CVE-2025-3082 | Apr 01, 2025 |
MongoDB Collation Pwn via Unauth View Access (5.x<5.0.31,6.x<6.0.20,7.x<7.0.14)A user authorized to access a view may be able to alter the intended collation, allowing them to access to a different or unintended view of underlying data. This issue affects MongoDB Server v5.0 version prior to 5.0.31, MongoDB Server v6.0 version prior to 6.0.20, MongoDB Server v7.0 version prior to 7.0.14 and MongoDB Server v7.3 versions prior to 7.3.4. |
|
| CVE-2025-0755 | Mar 18, 2025 |
MongoDB C Driver <1.27.5: Buffer Overflow via bson_appendThe various bson_append functions in the MongoDB C driver library may be susceptible to buffer overflow when performing operations that could result in a final BSON document which exceeds the maximum allowable size (INT32_MAX), resulting in a segmentation fault and possible application crash. This issue affected libbson versions prior to 1.27.5, MongoDB Server v8.0 versions prior to 8.0.1 and MongoDB Server v7.0 versions prior to 7.0.16 |
|
| CVE-2025-1756 | Feb 27, 2025 |
mongosh <2.3.0: LPE via crafted file in C:\node_modulesmongosh may be susceptible to local privilege escalation under certain conditions potentially enabling unauthorized actions on a user's system with elevated privilege, when a crafted file is stored in C:\node_modules\. This issue affects mongosh prior to 2.3.0 |
|
| CVE-2024-10921 | Nov 14, 2024 |
MongoDB Server: BSON Parsing Vulnerability Leading to Buffer Over-ReadAn 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 , MongoDB Server v6.0 versions prior to 6.0.19, MongoDB Server v7.0 versions prior to 7.0.15 and MongoDB Server v8.0 versions prior to and including 8.0.2. |
|
| CVE-2024-8013 | Oct 28, 2024 |
MongoDB Encrypted via mongocryptd $lookup Bug v5.0-5.0.28,6.0-6.0.16,7.0-7.0.11A bug in query analysis of certain complex self-referential $lookup subpipelines may result in literal values in expressions for encrypted fields to be sent to the server as plaintext instead of ciphertext. Should this occur, no documents would be returned or written. This issue affects mongocryptd binary (v5.0 versions prior to 5.0.29, v6.0 versions prior to 6.0.17, v7.0 versions prior to 7.0.12 and v7.3 versions prior to 7.3.4) and mongo_crypt_v1.so shared libraries (v6.0 versions prior to 6.0.17, v7.0 versions prior to 7.0.12 and v7.3 versions prior to 7.3.4) released alongside MongoDB Enterprise Server versions. |
|
| CVE-2024-8305 | Oct 21, 2024 |
MongoDB Server v6/v7 Index Constraint Bug Causes Secondary CrashesprepareUnique 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 to 6.0.17, MongoDB Server v7.0 versions prior to 7.0.13 and MongoDB Server v7.3 versions prior to 7.3.4 |
|
| CVE-2024-8654 | Sep 10, 2024 |
MongoDB Server 6.0.3: Agg Stage Null Mem Access (Zero-Arg)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. |
|
| CVE-2024-8207 | Aug 27, 2024 |
MongoDB Server v5.0/6.0: Unix Shared Library Hijack (5.0.13/6.0.2)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-controlled shared libraries when the server binary is started, potentially resulting in the unintended actor gaining full control over the MongoDB server process. This issue affects MongoDB Server v5.0 versions prior to 5.0.14 and MongoDB Server v6.0 versions prior to 6.0.3. Required Configuration: Only environments with Linux as the underlying operating system is affected by this issue |
|
| CVE-2024-6384 | Aug 13, 2024 |
MongoDB Enterprise <6.0.16 Hot Backup Download by Undepri Users"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 MongoDB Enterprise Server v7.3 versions prior to 7.3.3 |
|
| CVE-2024-7553 | Aug 07, 2024 |
MongoDB Server LPE: Untrusted File Validation on Windows (before 7.3.3)Incorrect validation of files loaded from a local untrusted directory may allow local privilege escalation if the underlying operating systems is Windows. This may result in the application executing arbitrary behaviour determined by the contents of untrusted files. This issue affects MongoDB Server v5.0 versions prior to 5.0.27, MongoDB Server v6.0 versions prior to 6.0.16, MongoDB Server v7.0 versions prior to 7.0.12, MongoDB Server v7.3 versions prior 7.3.3, MongoDB C Driver versions prior to 1.26.2 and MongoDB PHP Driver versions prior to 1.18.1. Required Configuration: Only environments with Windows as the underlying operating system is affected by this issue |
|
| CVE-2024-6383 | Jul 03, 2024 |
MongoDB C Driver libbson buffer overflow vuln (pre1.27.1)The bson_string_append function in MongoDB C Driver may be vulnerable to a buffer overflow where the function might attempt to allocate too small of buffer and may lead to memory corruption of neighbouring heap memory. This issue affects libbson versions prior to 1.27.1 |
|
| CVE-2024-6381 | Jul 02, 2024 |
Integer Overflow in libbson <1.26.2 causing memory corruptionThe bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the function will try to free memory at a negative offset. This may result in memory corruption. This issue affected libbson versions prior to 1.26.2 |
|
| CVE-2024-6375 | Jul 01, 2024 |
MongoDB Server Shard Key Refine Cmd Auth Bypass (5.0-5.0.21, 6.0-6.0.10, 7.0-7.0.2)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 affects MongoDB Server v5.0 versions, prior to 5.0.22, MongoDB Server v6.0 versions, prior to 6.0.11 and MongoDB Server v7.0 versions prior to 7.0.3. |
|
| CVE-2024-6376 | Jul 01, 2024 |
MongoDB Compass Code Injection via EJSON Shell Parser Before 1.42.2MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of ejson shell parser in Compass' connection handling. This issue affects MongoDB Compass versions prior to version 1.42.2 |
|