Skip to main content

MongoDB PHP Driver EUVDEUVD-2026-95234

| CVE-2026-106432 LOW
Incorrect Conversion between Numeric Types (CWE-681)
2026-10-08 mongodb
2.0
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Gain low-privilege local access
  2. Exploit
    Trigger encoding of ~4 GiB string
  3. Execution
    Overflow heap via 32-bit length wrap
  4. Impact
    Corrupt memory or crash PHP process

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Exploitation requires a non-default runtime configuration of the MongoDB PHP Driver that permits multi-gigabyte values, plus an application code path that BSON-encodes a string near 4 GiB whose length the attacker can influence. The vector is local (AV:L) and needs low privileges (PR:L), and per CVSS 4.0 AT:P a specific attack requirement must be met - namely that oversized-value configuration. No MongoDB server interaction is required. Limiting factors: default configurations are not affected, the attacker must be able to drive allocation of a ~4 GiB string (significant memory and data-control prerequisites), and no user interaction is needed (UI:N) but local access and the enabling configuration sharply narrow the exposed population.

Impact

All exploitation-probability signals point to low real-world risk. The vendor-assigned CVSS 4.0 base score is only 2.0 (Low), driven by AV:L (local vector), AT:P (a specific attack requirement - the non-default multi-gigabyte configuration), PR:L (low privileges required), and limited impact (VC:N/VI:L/VA:L). No EPSS score, no CISA KEV listing, and no public POC were provided, so the only confirmed signal is the vendor report itself (MongoDB, via JIRA PHPC-2741) - there is no public exploit identified at time of analysis. The signals are internally consistent rather than conflicting: a local, config-dependent integer-truncation bug (CWE-681) that at worst corrupts memory or crashes the PHP process is correctly rated Low. The practical ceiling here is a denial of service / memory corruption of the local PHP process, not remote compromise. This is NOT a priority patch for most environments; it matters only where applications are deliberately configured to handle multi-gigabyte BSON string values. Note: the realistic impact appears to be primarily availability (process termination) with possible integrity effects from heap corruption, matching VI:L/VA:L.

Exploit ScenarioDerived

A PHP application running the MongoDB PHP Driver is configured in a non-default mode that permits multi-gigabyte values, and it BSON-encodes attacker-influenced data. An actor with low-privilege local access supplies (or causes the application to construct) a string near 4 GiB, so the 32-bit length truncation under-allocates the buffer while the copy uses the full length, producing a heap overflow that corrupts memory or crashes the PHP process. No public exploit code is known, and no MongoDB server interaction is required.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 08, 2026

Heap buffer overflow in the MongoDB PHP Driver's BSON encoder can corrupt process memory or crash the PHP process when an application encodes a string near 4 GiB under a non-default runtime configuration that permits multi-gigabyte values. The vulnerability requires local access (AV:L) and low privileges (PR:L), and per the independent assessment, exploitation hinges on a specific attack requirement (AT:P) - the enabling configuration - making real-world risk low. No public exploit code or active exploitation (KEV) has been identified at time of analysis. The CVSS 4.0 base score is 2.0, and the independent CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L) confirms limited impact (low integrity and availability) with no confidentiality loss.

RemediationAI

No vendor-released patch identified at time of analysis; monitor MongoDB JIRA PHPC-2741 (https://jira.mongodb.org/browse/PHPC-2741) for a fix. Until a patch is available, revert to the default runtime configuration that disallows multi-gigabyte values (e.g., ensure memory_limit and any driver-specific settings prevent allocating strings near 4 GiB). Application code should validate string lengths before BSON encoding and reject or safely truncate values approaching 4 GiB, though this may alter application behavior. Because exploitation requires local access and low privileges, restrict local access to trusted users and avoid running the affected application with untrusted input. These are compensatory controls and do not fully eliminate the vulnerability.

Affected VersionsENISA

PHP Driver 2.0.0 <2.1.11
PHP Driver 2.2.0 <2.5.4
PHP Driver 1.16.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 MongoDB PHP Driver is a PHP extension that allows PHP applications to interact with MongoDB, including encoding data to BSON. CVE-2026-106432 is a CWE-681 (Incorrect Conversion between Numeric Types) issue: the BSON encoder converts a string length to a 32-bit value without validation. When an application encodes a string near 4 GiB, the allocation size wraps around while the subsequent copy operation uses the original 64-bit length, leading to a heap buffer overflow. This can corrupt memory or terminate the PHP process. Reaching this requires a non-default runtime configuration that permits multi-gigabyte values and a code path where an attacker can influence the string length. The CPE (cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:*:*:*) indicates all versions of the driver are potentially affected. No MongoDB server interaction is needed; the flaw is entirely client-side in the PHP driver.

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

Local, config-dependent trigger needing a ~4 GiB value maps to AV:L and AC:H; low-privilege local actor gives PR:L; impact is process crash/heap corruption, so no confidentiality and only limited integrity/availability.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
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 converts a string length to a 32-bit value without validation. When an affected application encodes a string near 4 GiB, the allocation size can wrap while the copy operation uses the original length. The resulting heap buffer overflow can corrupt process memory or terminate the PHP process. Reaching this issue requires a non-default runtime configuration that permits multi-gigabyte values. No MongoDB server interaction is required.

Threat Intelligence Overview

EPSS Score
0.1%
Top 100% exploitable
Prevalence
Medium
widely used MongoDB PHP library, but only PHP apps using MongoDB
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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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

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