Skip to main content

MongoDB PHP Driver CVE-2026-106436

| EUVDEUVD-2026-95236 MEDIUM
Unchecked Return Value (CWE-252)
2026-10-08 mongodb
6.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Send oversized input to PHP app
  2. Exploit
    Driver BSON-encodes document past libbson limit
  3. Execution
    Unchecked return leaves encoder invalid
  4. Impact
    PHP worker terminates or fields silently omitted

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Return value checking
Exploitation Conditions

The affected application must accept attacker-influenced data and pass it to the MongoDB PHP driver's BSON encoder such that the resulting document exceeds libbson's size limit (the BSON document maximum, nominally ~16MB). No MongoDB server connection and no database authentication are required (PR:N confirmed), so any network-reachable code path that encodes attacker-controlled data into BSON is exposed. Limiting factors: the attacker needs to be able to make the encoded structure 'unusually large' (reflected by AT:P), which depends on the application exposing an input path that reaches encoding without a prior size cap; applications that validate or bound input size before encoding, or that never encode untrusted data, are not realistically exploitable.

Impact

This is a genuine but moderate-priority issue, consistent with its 6.3 MEDIUM CVSS 4.0 score. The vector (AV:N/AC:L/AT:P/PR:N/UI:N) confirms network-reachable, unauthenticated triggering, which raises exposure, but the AT:P (Attack Requirements: Present) metric and the description's precondition - the attacker must cause the application to encode an 'unusually large data structure' exceeding libbson's size limit - materially constrain reliable exploitation. Impact is limited to VI:L/VA:L (partial integrity and availability): either a terminated PHP worker (localized DoS) or a silently truncated BSON document with omitted fields; there is NO confidentiality impact (VC:N), despite the 'Information Disclosure' tag. On the exploitation-status axis there is no public exploit identified at time of analysis and no CISA KEV listing, and no EPSS score was provided in the input - so there is no evidence of active or at-scale exploitation. SSVC-style reading: exploitation=none observed, automatable likely no (requires application-specific data flows that reach the encoder with oversized input), technical impact=partial. Net: a real correctness/robustness bug worth patching in affected deployments, not an emergency. The main conflict to note is the 'Information Disclosure' tag versus the CVSS impact metrics, which show integrity/availability rather than confidentiality harm.

Exploit ScenarioDerived

An unauthenticated attacker submits an oversized or deeply nested payload (for example a large array via a public HTTP API) to a PHP application that uses the MongoDB PHP driver to BSON-encode that data. Because the encoder does not check return values once the document exceeds libbson's size limit, it enters an invalid state, crashing the PHP worker (denial of service) or producing a document that silently drops fields (data integrity loss). No public proof-of-concept exploit is identified at time of analysis.

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

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

Alert me

AnalysisAIv1 – Oct 08, 2026

Encoding an oversized document with the MongoDB PHP Driver can leave the BSON encoder in an invalid state because libbson size-limit return values are not checked, allowing an unauthenticated remote actor to terminate PHP workers or cause fields to be omitted from the serialized document when an application encodes attacker-influenced data that exceeds the BSON size limit. The affected component is the MongoDB PHP Driver (mongodb:php_driver), and no MongoDB server connection or database authentication is required because the failure occurs during client-side BSON encoding. Exploitation is limited to applications that accept attacker-influenced data and pass it to the encoder without a prior size cap; this is a genuine but moderate-priority issue consistent with its 6.3 MEDIUM CVSS 4.0 score, and no public exploit was identified at time of analysis.

RemediationAI

No exact patched version is identified in the supplied data; consult the MongoDB vendor advisory at https://jira.mongodb.org/browse/PHPC-2739 for fix availability and release information, and upgrade the MongoDB PHP Driver as soon as a patched version is published. Until a fix is applied, enforce strict maximum request, body, and document sizes before data reaches the BSON encoder, reject or truncate inputs that would produce BSON documents exceeding libbson's nominal 16 MB limit, and avoid encoding unsanitized or unbounded attacker-controlled structures. These compensating controls reduce exposure but have trade-offs: aggressive size caps can break legitimate large-document workflows, and truncation can silently alter data, so prefer rejection with logging. Also monitor PHP worker crashes and BSON serialization anomalies, and limit network exposure of endpoints that pass user input into MongoDB driver encoding.

Affected VersionsENISA

PHP Driver 2.2.0 <2.5.4
PHP Driver 2.0.0 <2.1.11
PHP Driver 1.3.0 <1.21.11

Affected Packages

euvd php_driver fix: 1.21.11, 2.1.11, 2.5.4

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

The vulnerability is in the MongoDB PHP Driver's BSON encoder, which serializes PHP data structures into BSON for use with MongoDB. When a document exceeds libbson's maximum BSON document size (nominally 16 MB), some return values from libbson are unchecked (CWE-252), leaving the encoder in an invalid state rather than failing cleanly. The supplied CPE, cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:*:*:*, identifies the MongoDB PHP Driver with no version restriction, so all releases should be considered potentially affected until the vendor advisory narrows the range. The impact is integrity and availability only, specifically field omission for integrity and PHP worker termination for availability, with no confidentiality impact, matching the assessed CVSS:3.1 vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L and the reported CVSS:4.0 6.3 MEDIUM score.

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.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.8 MEDIUM

Network-reachable and unauthenticated (AV:N, PR:N), but requires attacker to force an oversized encode so AC:H; no confidentiality (C:N), partial integrity from dropped fields and partial availability from worker crash.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

1
Patch available
Oct 08, 2026 - 21:17 EUVD

DescriptionCVE.org

The BSON encoder in the MongoDB PHP Driver does not check some return values after a document exceeds libbson's size limit. This can leave the encoder in an invalid state. An unauthenticated actor who can cause an affected application to encode an unusually large data structure can terminate the PHP worker or cause the resulting document to omit fields. No MongoDB server connection or database authentication is required.

Threat Intelligence Overview

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Medium
official MongoDB PHP driver, common only in PHP-plus-MongoDB application stacks
Data Quality
6 sources
Confidence: High

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.3%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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-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-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

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

Vendor StatusVendor

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