CVE-2025-11695: Mongodb MongoDB Rust Driver Has Certificate Vulnerability
HIGHCVE-2025-11695 is a HIGH (CVSS 8.0) mongodb rust driver has certificate vulnerability (CWE-295: Improper Certificate Validation) affecting Mongodb libraries in the crates.io ecosystem. The issue involves mongodb rust driver has certificate validation disabled when `tlsinsecure=false` appears in connection string. Remediation is available by upgrading affected packages to version 3.2.5.
CVE-2025-11695 at a Glance
Security Impact
CVSS: 8.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2025-11695
To remediate this vulnerability, upgrade all affected Mongodb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade mongodb to 3.2.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for mongodb
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-11695, inspect your project dependencies for Mongodb:
inspect dependencies for mongodb
Analyze the terminal output to locate any version of Mongodb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Mongodb, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-11695 Affected Mongodb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mongodb
|
crates.io |
< 3.2.5
|
3.2.5
|
References
Frequently Asked Questions
What is CVE-2025-11695?
Which Mongodb versions are affected?
What version fixes CVE-2025-11695?
Is mongodb affected?
What is the CVSS score of CVE-2025-11695?
What CWE is associated with CVE-2025-11695?
How can I check crates.io dependencies for CVE-2025-11695?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3p6w-gv5g-xjw9",
"modified" : "2025-10-13T20:38:21Z",
"published" : "2025-10-13T18:31:13Z",
"aliases" : [ "CVE-2025-11695" ],
"summary" : "MongoDB Rust Driver has certificate validation disabled when `tlsInsecure=False` appears in connection string",
"details" : "When tlsInsecure=False appears in a connection string, certificate validation is disabled.\n\nThis vulnerability affects MongoDB Rust Driver versions prior to v3.2.5.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "mongodb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-11695"
}, {
"type" : "WEB",
"url" : "https://github.com/mongodb/mongo-rust-driver/pull/1453"
}, {
"type" : "WEB",
"url" : "https://github.com/mongodb/mongo-rust-driver/commit/21ed6aeeea386628621b36a6af2a1a248cc87dcf"
}, {
"type" : "WEB",
"url" : "https://github.com/mongodb/mongo-rust-driver/commit/b918cd6676331c45f26dd1acd13e230aaf17fe6d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mongodb/mongo-rust-driver"
}, {
"type" : "WEB",
"url" : "https://jira.mongodb.org/browse/RUST-2264"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-13T20:38:21Z",
"nvd_published_at" : "2025-10-13T17:15:34Z"
}
}