Security Vulnerability Report
中文
CVE-2025-11695 CVSS 8.0 HIGH

CVE-2025-11695

Published: 2025-10-13 17:15:34
Last Modified: 2025-12-04 21:36:42

Description

When tlsInsecure=False appears in a connection string, certificate validation is disabled. This vulnerability affects MongoDB Rust Driver versions prior to v3.2.5

CVSS Details

CVSS Score
8.0
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:mongodb:rust_driver:*:*:*:*:*:mongodb:*:* - VULNERABLE
MongoDB Rust Driver < v3.2.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-11695 PoC - MongoDB Rust Driver TLS Certificate Validation Bypass # This PoC demonstrates how the vulnerability manifests when tlsInsecure=False is set # Vulnerable connection string (user expects secure connection, but gets insecure) # When tlsInsecure=False appears, certificate validation is unexpectedly disabled use mongodb::{Client, options::ClientOptions}; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { // Vulnerable connection string with tlsInsecure=False // Expected behavior: Certificate validation should be ENABLED // Actual behavior (vulnerable): Certificate validation is DISABLED let uri = "mongodb://localhost:27017/?tls=true&tlsInsecure=false&tlsCAFile=/path/to/ca.pem"; let client_options = ClientOptions::parse(uri).await?; let client = Client::with_options(client_options)?; // Connection will succeed even with invalid certificates // due to the vulnerability - certificate validation is bypassed let db = client.database("test"); let collection = db.collection::<Document>("users"); // Query executes despite TLS validation being incorrectly disabled let cursor = collection.find(doc! {}).await?; // Attacker performing MITM can intercept all this traffic println!("Connection established - TLS validation bypassed!"); Ok(()) } # Attacker-side MITM demonstration using mitmproxy or similar tool: # 1. Set up ARP spoofing or position on network path # 2. Intercept TLS connection from vulnerable client # 3. Present any certificate (even self-signed) # 4. Client accepts connection without validation # 5. Capture and modify all MongoDB traffic # Verification steps: # 1. Use a MongoDB server with a self-signed or invalid certificate # 2. Connect using the vulnerable driver with tlsInsecure=false # 3. Observe that the connection succeeds when it should fail # 4. Compare with fixed version (v3.2.5+) where connection correctly fails

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11695", "sourceIdentifier": "[email protected]", "published": "2025-10-13T17:15:34.190", "lastModified": "2025-12-04T21:36:42.340", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 5.8}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-295"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mongodb:rust_driver:*:*:*:*:*:mongodb:*:*", "versionEndExcluding": "3.2.5", "matchCriteriaId": "212C628C-FC4A-4C6D-9C40-33C62F39EE3D"}]}]}], "references": [{"url": "https://jira.mongodb.org/browse/RUST-2264", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}