Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain low-privilege local access
-
ExploitTrigger encoding of ~4 GiB string
-
ExecutionOverflow heap via 32-bit length wrap
-
ImpactCorrupt 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.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
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
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.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
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
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
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-95234
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB