CVE-2026-135897: 
Rust Análisis y mitigación de vulnerabilidades

Vista general

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).

Detalles técnicos

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).

Impacto

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).

Explotabilidad

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).

Pasos de explotación

  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).

Indicadores de compromiso

  • 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).

Mitigación y soluciones alternativas

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).

Recursos adicionales

Estado de corrección de la distribución Linux

Arreglar la disponibilidad en las principales distribuciones de Linux y sus lanzamientos.

RHEL / CentOS

Desconocido

Fuente: Este informe se generó usando IA

Relacionado Rust Vulnerabilidades:

CVE ID

Gravedad

Puntuación

Tecnologías

Nombre del componente

Exploit CISA KEV

Tiene solución

Fecha de publicación

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

Evaluación gratuita de vulnerabilidades

Haz un benchmark de tu postura de seguridad en la nube

Evalúa tus prácticas de seguridad en la nube en 9 dominios de seguridad para evaluar tu nivel de riesgo e identificar brechas en tus defensas.

Evaluación de solicitudes

Recursos adicionales de Wiz

Obtén una demostración personalizada

¿Listo para ver a Wiz en acción?

"La mejor experiencia de usuario que he visto en mi vida, proporciona una visibilidad completa de las cargas de trabajo en la nube."
David EstlickCISO
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
Adam FletcherJefe de Seguridad
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."
Greg PoniatowskiJefe de Gestión de Amenazas y Vulnerabilidades