Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence part of connection string
-
DeliveryForce connection string parse failure
-
ExploitExtension emits credentials in error
-
ExecutionCredentials written to stderr/log files
-
ImpactRead logs to harvest authentication material
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error message sanitization
MITRE ATT&CK
1 technique across 1 tactic: Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) that some part of the MongoDB connection string passed to the PHP extension be influenceable by the attacker (even a non-secret portion), (2) that the supplied value cause the connection string to fail parsing so the extension raises its error, and (3) that the connection string actually contain credentials (embedded username/password) which are then rendered into the error message. Realistic abuse further requires the attacker, or a party they can observe, to have read access to the application's standard error output or log files where the message is written. Limiting factors per the CVSS 4.0 vector: the attack vector is local (AV:L), not remote network-facing, and low privileges are required (PR:L), so this is not an unauthenticated internet-facing exposure; impact is confined to disclosure of authentication material (VC:H; VI:N/VA:N). |
| Impact | This is a moderate-severity information-disclosure issue (CWE-209) whose real-world risk is driven by consequence rather than ease of exploitation. The provided CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) describes a locally-reachable, low-complexity flaw requiring low privileges, with high confidentiality impact and no integrity or availability impact - consistent with credentials being leaked into standard error and log files rather than a remote code-execution or data-tampering primitive. No EPSS score was provided, the CVE is not listed in CISA KEV, and no proof-of-concept or exploit reference is present (the only reference is MongoDB's own Jira tracker PHPC-2804, a vendor bug record, not exploit code); exploitation status is therefore 'no public exploit identified at time of analysis.' The vuln.today decision label is 'this_month,' indicating a prioritize-but-not-emergency posture that aligns with the signals: the confidentiality impact is real and the trigger (an unparseable connection string) is trivial, but the attacker must already be able to influence the connection string and someone must be able to read the error output/logs, which constrains widespread opportunistic abuse. No key signals are directly conflicting, but note the gap: there is no EPSS or KEV data to corroborate or temper the CVSS rating, so prioritization rests on the vector and vendor advisory alone. |
| Exploit ScenarioDerived | In an application where part of the MongoDB connection string is derived from attacker-influenceable input, an attacker supplies a value that makes the full string unparseable, causing the MongoDB PHP extension to raise an error that embeds the entire connection string - including the embedded username and password - into stderr and application log files. An attacker (or any party) with read access to those logs then harvests the exposed authentication material. No public proof-of-concept or working exploit code is identified; the attack is low-complexity but depends on local reachability and log-read access per the AV:L/PR:L vector. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
The MongoDB PHP extension (php_driver) renders the entire connection string - including embedded username and password credentials - into the error message it raises when that string fails to parse, with the message then flowing into the application's standard error output and log files. Exploitation requires that an attacker be able to influence some portion of the connection string (a non-secret portion is sufficient), that the resulting value break parsing, and that the connection string actually contain credentials; the attacker or someone they can observe must also be able to read the application's stderr or logs. The assessed vector is local with low privileges required and disclosure-only impact, and no public exploit or active exploitation is indicated in the available data.
RemediationAI
Track and apply the vendor fix for PHPC-2804 (https://jira.mongodb.org/browse/PHPC-2804); the supplied data does not include an exact fixed driver version, so confirm the corrected release in that advisory before upgrading the php_driver extension. Because the flaw is that unredacted connection strings reach the error message, a directly actionable compensating control is to stop passing credentials inside the connection string - supply the username and password through the driver's dedicated credential/options parameters, or load them from a secrets store at runtime - so that no parse-failure diagnostic can carry them; the trade-off is modest application changes and, for some deployments, additional secret-management plumbing. Second, redirect and restrict the application's standard error stream and log files: set the PHP error log to a path readable only by the service account and log operators, disable display of driver errors to end users, and configure log rotation/permissions accordingly; the trade-off is reduced operator convenience for debugging connection failures. Third, reduce who can influence the connection string at all - do not build host lists or URI options from request-supplied input - which removes the parser-failure trigger but may constrain legitimate dynamic configuration. Finally, rotate any MongoDB credentials that may already have been written to logs or stderr in cleartext.
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
CWE-209 (Generation of Error Message Containing Sensitive Information) is the root-cause class here: the extension's connection-string parser builds its failure diagnostic by embedding the original, unredacted connection string, so any credential material the caller supplied is reproduced verbatim in the exception text. The affected component is the MongoDB PHP driver (CPE cpe:2.3:a:mongodb:php_driver, all versions matched by the wildcard), the PHP-language binding for MongoDB that applications use to construct a client from a mongodb:// or mongodb+srv:// URI containing host lists, options, and optionally auth credentials. Because the URI grammar is complex, malformed input triggers the parse-failure path, and the diagnostic does not separate secret from non-secret components - meaning an attacker who controls even a hostname fragment, option value, or other non-sensitive segment can force the error and harvest whatever credentials the application embedded. The trigger conditions beyond string influence and parse failure are not further described in the available sources. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N) and the independent CVSS 3.1 assessment (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) agree that this is a local, low-privilege, confidentiality-only issue: no integrity or availability impact, and the practical exposure depends on who can read the application's error stream or log files.
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:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Config/connection-string-dependent and log-readable, so AV:L and PR:L; low complexity to trigger a parse failure (AC:L); high confidentiality from leaked credentials, no integrity/availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
The MongoDB PHP extension includes the full connection string it was given in the error it raises when that string cannot be parsed. A party able to influence any part of the connection string, including a part that holds no secret, can cause the resulting message to carry credentials into the application's standard error output and log files. This may result in unintended disclosure of authentication material to anyone able to read that output.
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
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
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
EUVD-2026-130676
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB