VulnarioBlogMongoDB vulnerabilities
MongoDB Vulnerabilities: The 10 Most Critical MongoDB Security Bugs (CVEs)
MongoDB vulnerabilities are security flaws in MongoDB that attackers can abuse to steal data, take over a server or interrupt a service. MongoDB is the most popular document-oriented NoSQL database. The National Vulnerability Database (NVD) lists 188 CVEs for MongoDB, 4 of them rated critical, and 118 were published in the last 12 months. CISA lists 1 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.
This guide lists the 10 most critical MongoDB security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers MongoDB security basics, the current end-of-life dates and a free way to be told about the next MongoDB CVE as soon as it is published.
Key takeaways
- 1 CVE is in CISA's KEV catalog, so attackers have exploited it in the wild.
- 4 MongoDB CVEs are rated critical (CVSS v3), and 118 new ones were published in the last 12 months.
- The newest CVE in this guide is CVE-2026-18691, published Aug 11, 2026.
- Supported MongoDB releases today (per endoflife.date): 9.0, 8.3, 8.0. Releases not on the list are past their announced end of life.
- You can monitor MongoDB for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these MongoDB CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 10 most critical MongoDB CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2025-14847 | 7.5 High | 2025-12-19 | MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency | Yes |
| 2 | CVE-2025-3085 | 9.8 Critical | 2025-04-01 | Critical security flaw | No |
| 3 | CVE-2024-8654 | 9.8 Critical | 2024-09-10 | Critical security flaw | No |
| 4 | CVE-2024-1351 | 9.8 Critical | 2024-03-07 | Improper certificate validation | No |
| 5 | CVE-2017-15535 | 9.1 Critical | 2017-11-01 | Critical security flaw | No |
| 6 | CVE-2026-18691 | 8.8 High | 2026-08-11 | Security flaw | No |
| 7 | CVE-2026-18692 | 8.8 High | 2026-08-11 | Use after free | No |
| 8 | CVE-2026-11933 | 8.8 High | 2026-06-12 | Out-of-bounds write | No |
| 9 | CVE-2026-8053 | 8.8 High | 2026-05-13 | Out-of-bounds write | No |
| 10 | CVE-2026-8201 | 8.8 High | 2026-05-13 | Use after free | No |
Each MongoDB CVE explained
1. CVE-2025-14847: MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency
- What NVD says
- Mismatched length fields in Zlib compressed protocol headers may allow a read of uninitialized heap memory by an unauthenticated client.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality.
- Affected versions
- 3.6.0 to before 4.4.30; 5.0.0 to before 5.0.32; 6.0.0 to before 6.0.27; 7.0.0 to before 7.0.28
- What to do
- Upgrade to the fixed release for your branch (4.4.30, 5.0.32, 6.0.27) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
2. CVE-2025-3085: Critical security flaw
- What NVD says
- A MongoDB server under specific conditions running on Linux with TLS and CRL revocation status checking enabled, fails to check the revocation status of the intermediate certificates in the peer's certificate chain. In cases of MONGODB-X509, which is not enabled by default, this may lead to improper authentication. This issue may also affect intra-cluster authentication.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 5.0.0 to before 5.0.31; 6.0.0 to before 6.0.20; 7.0.0 to before 7.0.16; 8.0.0 to before 8.0.4
- What to do
- Upgrade to the fixed release for your branch (5.0.31, 6.0.20, 7.0.16) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
3. CVE-2024-8654: Critical security flaw
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 6.0.0 through 6.0.3
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
4. CVE-2024-1351: Improper certificate validation
- What NVD says
- Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which may result in untrusted connections to succeed. This may effectively reduce the security guarantees provided by TLS and open connections that should have been closed due to failing certificate validation.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 4.4.0 to before 4.4.29; 5.0.0 to before 5.0.25; 6.0.0 to before 6.0.14; 7.0.0 to before 7.0.6
- What to do
- Upgrade to the fixed release for your branch (4.4.29, 5.0.25, 6.0.14) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
5. CVE-2017-15535: Critical security flaw
- What NVD says
- MongoDB 3.4.x before 3.4.10, and 3.5.x-development, has a disabled-by-default configuration setting, networkMessageCompressors (aka wire protocol compression), which exposes a vulnerability when enabled that could be exploited by a malicious attacker to deny service or modify memory.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on integrity and availability.
- Affected versions
- 3.4.0 to before 3.4.10
- What to do
- Upgrade to 3.4.10 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
6. CVE-2026-18691: Security flaw
- What NVD says
- An issue in MongoDB Server's intra-cluster connection setup could allow a party with suitable network access to influence which authentication mechanism is used when one replica set member connects to another. Under certain conditions, this could cause the cluster's shared internal credential to be transmitted in a less-protected form, potentially allowing that credential to be recovered.
- How it can be attacked
- Can be exploited from an adjacent network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 7.0.0 to before 7.0.40; 8.0.0 to before 8.0.29; 8.2.0 through 8.2.12; 8.3.0 to before 8.3.8
- What to do
- Upgrade to the fixed release for your branch (7.0.40, 8.0.29, 8.3.8) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
7. CVE-2026-18692: Use after free
- What NVD says
- An issue in MongoDB Server's handling of timeseries bucket lifecycle could allow an authenticated user with write privileges to cause an internal reference to be used after the underlying memory has been freed. Subsequent operations could then result in a server crash or, potentially, execution of unintended code.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.0.0 to before 8.0.29; 8.2.0 through 8.2.12; 8.3.0 to before 8.3.8; 9.0.0
- What to do
- Upgrade to the fixed release for your branch (8.0.29, 8.3.8) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
8. CVE-2026-11933: Out-of-bounds write
- What NVD says
- A use-after-free vulnerability exists in MongoDB Server's server-side JavaScript engine when converting BSON documents to JavaScript arrays. An authenticated user with read privileges who is able to run server-side JavaScript (for example, via $where or $function) can cause the server to access memory that has already been freed.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 4.4.0 to before 4.4.31; 5.0.0 to before 5.0.34; 6.0.0 to before 6.0.29; 7.0.0 to before 7.0.37
- What to do
- Upgrade to the fixed release for your branch (4.4.31, 5.0.34, 6.0.29) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
9. CVE-2026-8053: Out-of-bounds write
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 5.0.0 to before 5.0.33; 6.0.0 to before 6.0.28; 7.0.0 to before 7.0.34; 8.0.0 to before 8.0.23
- What to do
- Upgrade to the fixed release for your branch (5.0.33, 6.0.28, 7.0.34) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
10. CVE-2026-8201: Use after free
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 7.0.0 to before 7.0.34; 8.0.0 to before 8.0.23; 8.2.0 to before 8.2.9; 8.3.0 to before 8.3.2
- What to do
- Upgrade to the fixed release for your branch (7.0.34, 8.0.23, 8.2.9) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
MongoDB end of life: which versions still get security fixes
Running a release that still receives security fixes is the most effective way to avoid MongoDB vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported MongoDB releases are 9.0, 8.3, 8.0.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| MongoDB 9.0 | Sep 30, 2026 | Oct 31, 2031 | 9.0.4 | Supported |
| MongoDB 8.3 | May 31, 2026 | Oct 31, 2029 | 8.3.13 | Supported |
| MongoDB 8.2 | Sep 30, 2025 | Jul 31, 2026 | 8.2.12 | End of life |
| MongoDB 8.1 | Jun 30, 2025 | Sep 30, 2025 | 8.1.3 | End of life |
| MongoDB 8.0 | Oct 31, 2024 | Oct 31, 2029 | 8.0.34 | Supported |
| MongoDB 7.3 | Mar 31, 2024 | Oct 2, 2024 | 7.3.4 | End of life |
| MongoDB 7.2 | Jan 31, 2024 | Mar 27, 2024 | 7.2.2 | End of life |
| MongoDB 7.1 | Oct 31, 2023 | Jan 23, 2024 | 7.1.1 | End of life |
Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.
How to check if your MongoDB is vulnerable
Find the exact version first, then compare it with the affected and fixed versions in each CVE above.
mongod --version
On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.
MongoDB security checklist
- Never expose the database port to the internet; allow only the application servers.
- Use strong, unique credentials and least-privilege accounts for each application.
- Apply minor and security releases on a regular cadence, after testing.
- Encrypt connections with TLS and encrypt backups.
- Restrict or remove admin tools you do not need.
- Test restoring from backup, not only creating backups.
Where you run MongoDB matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating MongoDB: on most plans the operating system and applications are yours to patch unless the plan says otherwise.
Your stack is bigger than MongoDB. A flaw anywhere in the chain can be the way in, so also review our guides to Node.js vulnerabilities, Redis vulnerabilities and Docker vulnerabilities.
How to get alerted about new MongoDB vulnerabilities
NVD received 118 new MongoDB CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose MongoDB and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run MongoDB alone. These guides cover the technologies it is most often deployed with.
- Node.js vulnerabilities: Node.js is a JavaScript runtime for building servers and tools.
- Redis vulnerabilities: Redis is an in-memory data store used as a cache, database and message broker.
- Docker vulnerabilities: Docker is the standard tool for building and running containers.
- Apache Cassandra vulnerabilities: Apache Cassandra is a distributed NoSQL database built for scale and availability.
- CouchDB vulnerabilities: Apache CouchDB is a document-oriented NoSQL database with an HTTP API.
- Express.js vulnerabilities: Express.js is the most popular web framework for Node.js.
Frequently asked questions about MongoDB vulnerabilities
What are the most critical MongoDB vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical MongoDB CVEs include CVE-2025-14847 (CVSS 7.5), CVE-2025-3085 (CVSS 9.8), CVE-2024-8654 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.
Have MongoDB vulnerabilities been exploited in real attacks?
Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 1 MongoDB CVE, including CVE-2025-14847. Treat these as the highest priority to patch.
How many vulnerabilities does MongoDB have?
As of Nov 3, 2026 the National Vulnerability Database lists 188 CVEs for MongoDB, with 4 rated critical by CVSS v3. 118 were published in the previous twelve months.
Which MongoDB versions are still supported?
As of Nov 3, 2026, endoflife.date lists these MongoDB releases as supported: 9.0, 8.3, 8.0. Releases that are not listed are past their announced end of life.
How do I check which MongoDB version I run?
Run mongod --version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.
How can I get alerted when a new MongoDB CVE is published?
Add MongoDB to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose MongoDB and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is MongoDB secure?
MongoDB is as secure as its patch level. NVD published 118 new MongoDB CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2025-14847?
CVE-2025-14847 is a high MongoDB vulnerability with a CVSS score of 7.5, published Dec 19, 2025. Mismatched length fields in Zlib compressed protocol headers may allow a read of uninitialized heap memory by an unauthenticated client.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: MongoDB (opens in a new tab), release and support dates, checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.