Vulnerability DatabaseCVE-2026-135897

CVE-2026-135897: 
Rust vulnerability analysis and mitigation

Overview

CVE-2026-135897 is an information disclosure vulnerability in the MongoDB Rust Driver's connection-string parser that can expose database passwords and authentication property values in error messages when a malformed connection string is provided. The optional error-redaction feature fails to fully suppress this sensitive text, meaning any party with read access to application logs or error output may obtain partial or complete database credentials. Affected versions span from 2.0 up to (but not including) 3.10.2 of the MongoDB Rust Driver. It carries a CVSS v3.1 base score of 5.5 (Medium) and a CVSS v4.0 base score of 5.7 (Medium), and was published on November 25, 2026 (Feedly, EUVD).

Technical details

The root cause is classified as CWE-209 (Generation of Error Message Containing Sensitive Information). When the Rust Driver's connection-string parser encounters a malformed URI, it constructs error messages that may embed the raw password field or authentication-related property values from the connection string. Although MongoDB provides an optional error-redaction mechanism, it does not comprehensively sanitize all code paths where credentials can appear in error output. Exploitation requires that an attacker already have local read access to the application's log files or error streams, and that the application use a malformed connection string (e.g., due to misconfiguration or attacker-influenced input) (Feedly, MongoDB JIRA).

Impact

The primary impact is a confidentiality breach: database credentials (passwords and authentication properties) may be exposed to any party with read access to application logs or error output, with no impact on integrity or availability. In environments where logs are aggregated, shared, or insufficiently access-controlled, this could allow unauthorized users or attackers to harvest valid database credentials and subsequently authenticate directly to the MongoDB instance. This creates a risk of lateral movement or privilege escalation within the data tier if the exposed credentials grant broad database access (Feedly).

Exploitability

There are no known public proof-of-concept exploits or reports of in-the-wild exploitation as of the disclosure date. The EPSS score is 0.0, and the SSVC assessment indicates exploitation is currently "none" and the vulnerability is not automatable. The CVE is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation is constrained by the requirement for local access to logs or error output and the need for a malformed connection string to trigger the vulnerable code path (Feedly, EUVD).

Exploitation steps

  1. Identify target application: Locate an application using the MongoDB Rust Driver (versions 2.0–3.10.1) that writes error output or logs to a location accessible to the attacker.
  2. Trigger malformed connection string: Cause the application to attempt a MongoDB connection using a malformed URI — this could occur via misconfiguration, environment variable manipulation, or attacker-controlled configuration input that introduces a syntax error into the connection string.
  3. Access error output or logs: Read the application's log files, stderr output, or error reporting system (e.g., centralized log aggregator, crash reports) to which the attacker has local read access.
  4. Extract credentials: Parse the error messages for embedded password text or authentication property values that the parser failed to redact, obtaining partial or complete database credentials.
  5. Authenticate to MongoDB: Use the recovered credentials to authenticate directly to the MongoDB instance, potentially gaining unauthorized data access (Feedly, MongoDB JIRA).

Indicators of compromise

  • Logs: Application log entries containing MongoDB connection error messages that include plaintext password strings or authentication property values (e.g., authSource, authMechanism values alongside credential text) in error output.
  • Logs: Repeated or unusual connection errors from the MongoDB Rust Driver referencing malformed URIs, which may indicate an attempt to trigger the vulnerable code path.
  • File System: Unexpected access or reads of application log files by non-application user accounts, which may indicate credential harvesting from logs.
  • Network: Subsequent unauthorized authentication attempts to MongoDB instances using credentials that match those embedded in error messages (Feedly).

Mitigation and workarounds

Upgrade the MongoDB Rust Driver to version 3.10.2 or later, which resolves the incomplete redaction in the connection-string parser. Until an upgrade is possible, ensure that application logs and error output are strictly access-controlled and not exposed to untrusted parties. Additionally, rotate any database credentials that may have been logged by vulnerable driver versions, and audit log access permissions to limit exposure (MongoDB JIRA, Feedly).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-135897MEDIUM5.7
  • Rust logoRust
  • mongodb
NoYesNov 25, 2026
GHSA-9gx9-5rq5-8523HIGHN/A
  • Rust logoRust
  • necrassrs
NoYesNov 25, 2026
GHSA-hq2r-87c2-972jHIGHN/A
  • Rust logoRust
  • reed-compiler
NoYesNov 25, 2026
GHSA-x8vc-9h5c-gh55LOWN/A
  • Rust logoRust
  • kulyrax-adapter-elasticsearch
NoYesNov 25, 2026
GHSA-6chh-gx4c-448gHIGHN/A
  • Rust logoRust
  • kulyrax-core
NoYesNov 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management