Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend oversized input to PHP app
-
ExploitDriver BSON-encodes document past libbson limit
-
ExecutionUnchecked return leaves encoder invalid
-
ImpactPHP 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.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
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
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-95236
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB