Skip to main content

MongoDB Rust Driver CVE-2025-11695

HIGH
Improper Certificate Validation (CWE-295)
2025-10-13 cna@mongodb.com
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain network MITM position on DB path
  2. Delivery
    Present forged TLS certificate
  3. Exploit
    Driver skips validation (tlsInsecure=False bug)
  4. Execution
    Intercept/alter MongoDB traffic
  5. Impact
    Capture credentials and tamper with data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Exploitation requires that the affected application constructs a MongoDB connection string containing the literal option tlsInsecure=False (a non-default, deliberately-set value) on MongoDB Rust Driver versions prior to v3.2.5; this is the exact trigger that erroneously disables certificate validation. Beyond that configuration, the attacker must also hold an active man-in-the-middle position on the network path between the driver and the MongoDB server to present a forged certificate - without interception capability the flaw is latent. Limiting factors: it does not affect default configurations (which are unaffected or correctly validate), requires the specific inverted option to be present, and requires network interception, which together substantially narrow real-world exploitability despite the network attack vector.

Impact

This is a certificate-validation bypass (CWE-295) in the MongoDB Rust Driver caused by an inverted boolean: supplying tlsInsecure=False in a connection string - the setting a security-conscious operator would use to REQUIRE validation - instead disables it. The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:N/I:H/A:N, 7.5) rates this network-reachable and low-complexity, but this is misleading: realistic exploitation requires an active man-in-the-middle position on the network path between the driver and the MongoDB server, which is better modeled as AC:H, so the raw 'low complexity / network' framing overstates ease of attack. Exploitation signals are weak-to-moderate: EPSS is only 0.18% (7th percentile), there is no CISA KEV listing, and no public exploit was identified - so there is no public exploit identified at time of analysis and no evidence of active exploitation. The practical risk is real but conditional: it matters only where operators explicitly set tlsInsecure=False (expecting hardened TLS) AND an attacker can intercept traffic; absent both, exposure is low. Note a signal conflict worth flagging to the vendor: CVSS sets C:N (no confidentiality impact) yet the assigned Tag is 'Information Disclosure' and a TLS MITM inherently exposes credentials and query data - the C:N rating appears understated. Treat as a medium-urgency patch priority, not an emergency.

Exploit ScenarioDerived

An operator hardens a Rust service by adding tlsInsecure=False to the MongoDB connection string, believing this enforces certificate validation, but the driver silently accepts any certificate. An attacker positioned on the network (e.g., ARP spoofing, rogue gateway, or compromised intermediary) presents a forged certificate, completes the TLS handshake, and transparently intercepts and alters database traffic including authentication credentials and query results. No public exploit code is known, but the MITM technique required is standard and well-understood.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 08, 2026

MongoDB Rust Driver releases prior to v3.2.5 treat the connection-string option tlsInsecure=False as if it were tlsInsecure=True, silently disabling TLS certificate validation exactly when an operator intended to require it. Because the inverted setting only takes effect when an application explicitly writes that non-default option, and because a successful attack additionally requires the adversary to occupy a man-in-the-middle position on the network path to the MongoDB server, real-world exploitability is substantially narrower than the raw network vector suggests; the primary impact is loss of confidentiality and integrity of data in transit through certificate spoofing. Exploitation status: no public exploit identified at time of analysis, and EPSS is low at 0.18% (7th percentile), consistent with the narrow configuration and interception prerequisites.

RemediationAI

Upgrade the MongoDB Rust Driver to v3.2.5 or later, which corrects the inverted handling of tlsInsecure and restores proper certificate validation; vendor-released patch: v3.2.5, with details in the MongoDB advisory at https://jira.mongodb.org/browse/RUST-2264. The most important immediate action is to audit connection strings and remove or correct any literal tlsInsecure=False entry until the upgrade is applied - omitting the option entirely leaves default TLS validation behavior intact, so dropping the parameter is a safe interim step, whereas leaving it in place keeps validation disabled. Where upgrading cannot be done promptly and the option must remain for configuration-management reasons, compensating controls should target the interception prerequisite rather than the driver: pin the expected server certificate or CA via the driver's TLS CA file options, or, if the connection traverses untrusted networks, route MongoDB traffic through a mutually authenticated tunnel or private link so a forged certificate cannot be presented in the first place - noting these add operational complexity and certificate-rotation overhead. After upgrading, verify enforcement by connecting to a server presenting a self-signed certificate and confirming the connection is refused. There is no indication that network filtering or port blocking mitigates this issue, since it is a client-side validation defect rather than an exposed service.

Affected Packages

cargo mongodb fix: 3.2.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a logic inversion in how the MongoDB Rust Driver parses TLS-related connection-string options, classed as CWE-295 (Improper Certificate Validation). Rather than honoring the explicitly supplied tlsInsecure=False as an instruction to enforce certificate chain and hostname validation, the driver's option handling disables validation, meaning the client will accept self-signed, expired, or attacker-supplied certificates without complaint. This is not a cryptographic break in TLS itself; the transport layer remains intact, but the authenticity guarantee it provides is discarded. Affected artifacts are identified by CPE cpe:2.3:a:mongodb:rust_driver:*:*:*:*:*:mongodb:*:*: - any Rust application built against an affected driver release and connecting with that literal option is exposed. As a result, an attacker who can intercept or redirect the connection (DNS poisoning, ARP spoofing, BGP hijack, rogue proxy) can present a forged server certificate, terminate TLS, and read or modify queries and results in transit, yielding high confidentiality and integrity impact. Configurations that omit the option or use default TLS settings are unaffected or validate correctly, and the flaw is latent against an attacker with no ability to interpose on the network path.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 7.4 HIGH

AC:H because a MITM position and the specific tlsInsecure=False config are required; PR:N/UI:N as no auth or victim action beyond the config; C:H/I:H since TLS interception exposes and alters DB traffic.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 8.0 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

DescriptionNVD

When tlsInsecure=False appears in a connection string, certificate validation is disabled.

This vulnerability affects MongoDB Rust Driver versions prior to v3.2.5

Executive ViewAI

Why It Matters

MongoDB Rust Driver versions before v3.2.5 carry a high-severity configuration flaw that can undermine TLS protections for database connections, potentially exposing sensitive data in transit. The practical risk is limited to environments that use a specific explicit setting and face a man-in-the-middle threat, but affected teams may not realize their traffic is unprotected. No public exploit identified at time of analysis, yet leadership should prioritize an inventory of affected applications and enforce interim TLS validation controls until a vendor patch is released.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include removing explicit tlsInsecure=False from connection strings (rely on default TLS validation), enforcing certificate validation through a validating TLS proxy or network-level mutual TLS, restricting network access to MongoDB servers, and monitoring for man-in-the-middle activity.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
official MongoDB Rust driver, moderate adoption among Rust backend services
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:a:mongodb:rust_driver:*:*:*:*:*:mongodb:*:*
CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy