Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain read access to app logs/output
-
ExploitLocate driver object serialized to text
-
ExecutionExtract clear-text key-protecting value
-
ImpactReuse credential for further access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
|
| Exploitation Conditions | Exploitation requires two conditions to coincide: (1) the embedding application must convert a MongoDB Python Driver object to text - via its string/repr representation - and emit that into its own stdout/stderr or log files (a debug line, error trace, or diagnostic dump), and (2) a configuration option holding private-key-protecting material (the secret that guards the private key) must be set. The attacker gains nothing remotely; exploitation is limited by the need for read access to the application's local output or log files (PR:L, AV:L) and by the fact that the secret is only exposed if the application actually serializes and records the object (AT:P). Default behavior that never logs the driver object leaves no exposure. |
| Impact | This is a moderate-severity information-disclosure weakness (CWE-532), not a high-priority emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:L/UI:N/VC:H) and the 5.7 base score agree with the description: impact is confined to confidentiality (VC:H / VI:N / VA:N), the attack is local (AV:L), requires some privilege (PR:L - read access to the application's output or log files), and carries an attack requirement (AT:P) because the sensitive value is only exposed if the application actually serializes the driver object to text and records it. No EPSS score and no SSVC automatable/technical-impact breakdown were supplied, and the only decision signal is vuln.today's 'this_month' priority - consistent with a real but non-urgent issue. This is not in CISA KEV and no exploit code was provided (the sole reference is the MongoDB Jira tracker PYTHON-6058, an advisory/tracking link, not a PoC). The realistic risk is a secondary credential-leak: an attacker who already has read access to logs can harvest a private-key-protecting value, so it functions as a privilege-escalation/lateral-movement enabler rather than an initial-access vulnerability. Treat as a genuine but low-urgency fix prioritized this month, not a drop-everything event. |
| Exploit ScenarioDerived | An application using the MongoDB Python Driver logs or prints its client/driver object (for example via a debug log line, an error trace, or a diagnostics dump), causing the configuration value that protects the private key material to be written in clear text. A party with read access to those local output or log files - a co-located operator, a log-aggregation account, or an attacker who has already gained local file read - then reads the recorded value and obtains the credential. No public exploit code was identified; the mechanism is the driver's text conversion emitting the secret rather than redacting it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
The MongoDB Python Driver (PyMongo) can write a configuration option value that protects private key material in clear text into the embedding application's own output and log records when a driver object is converted to its text (string/repr) representation. An attacker who can read those local log files or captured stdout/stderr can recover the credential; exploitation requires both that the application serializes a driver object into its logs and that the key-protecting option is actually configured. There is no confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis; the exposure is local, requires read access to application output, and does not affect deployments that never log driver objects.
RemediationAI
No vendor-released patch or fixed version is identified in the available data; the authoritative tracking reference is the MongoDB Jira ticket PYTHON-6058 (https://jira.mongodb.org/browse/PYTHON-6058), which should be monitored and the driver upgraded to the first release that stops emitting the option value in its text representation. Until then, the exposure is bounded by the two prerequisites: restrict read access to the embedding application's log files and captured stdout/stderr to the smallest set of operators and services (trade-off: complicates troubleshooting workflows that rely on shared log access), and stop emitting stringified MongoDB Python Driver objects in debug lines, error traces, and diagnostic dumps or pass them through a redaction/sanitization step before logging (trade-off: reduced diagnostic detail when investigating driver errors). Rotating the affected key-protecting credential and the private key it guards is warranted wherever logs containing the driver object were broadly accessible.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a CWE-532 (insertion of sensitive information into log file) weakness in the MongoDB Python Driver, an official client library used by Python applications to connect to MongoDB. The defect is that an object-to-string conversion path in the driver renders the value of a configuration option that protects private key material in plaintext, so any debug line, error traceback, or diagnostic dump that stringifies a driver object propagates the secret into the embedding application's stdout/stderr or log records. The assessed CVSS:3.1 vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N describes an attacker with local access and low privileges who gains high confidentiality impact only; the CVSS:4.0 vector adds AT:P (attack requirements present), reflecting that the secret is exposed only when the application actually serializes and records the driver object. There is no integrity or availability impact, no remote attack path, and the available sources do not state whether a single named option is involved or how broadly the stringification path is reachable.
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
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Disclosure requires read access to local log/output files (AV:L, PR:L); only confidentiality is affected (C:H, I:N, A:N) and the private-key-protecting secret is fully exposed in clear text.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
A credential-handling weakness in the MongoDB Python Driver allows a configuration option value that protects private key material to be written in clear text into the embedding application's own output and log records when a driver object is converted to text. A party able to read that output may obtain the credential. Obtaining it requires read access to the application's local output or log files.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-130684
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB