Skip to main content

MongoDB PHP Driver CVE-2026-129928

| EUVDEUVD-2026-130676 MEDIUM
Error Message Information Leak (CWE-209)
2026-11-19 mongodb
6.8
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Influence part of connection string
  2. Delivery
    Force connection string parse failure
  3. Exploit
    Extension emits credentials in error
  4. Execution
    Credentials written to stderr/log files
  5. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PHP Driver 1.16.0 <1.21.14
PHP Driver 1.22.0 <2.1.14
PHP Driver 2.2.0 <2.5.8

Affected Packages

euvd php_driver fix: 1.21.14, 2.1.14, 2.5.8

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

Vendor (mongodb) PRIMARY 6.8 MEDIUM
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
vuln.today AI 5.5 MEDIUM

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 19, 2026 - 21:19 EUVD

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

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
official MongoDB PHP driver, common in PHP apps using MongoDB but not universal
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy