CVE-2026-106436: CWE-252: Unchecked Return Value in MongoDB PHP Driver
Description
CVE-2026-106436 is a medium severity vulnerability in the MongoDB PHP Driver where the BSON encoder fails to check certain return values after a document exceeds libbson's size limit. This can cause the encoder to enter an invalid state, potentially terminating the PHP worker or causing the encoded document to omit fields. Exploitation does not require authentication or a MongoDB server connection.
CVSS v4.0
Score 6.3medium
Affected software
MongoDB
PHP Driver
pkg:composer/mongodb/mongodbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The BSON encoder component of the MongoDB PHP Driver does not verify some return values when encoding documents that exceed the size limit imposed by libbson. This unchecked return value issue can leave the encoder in an invalid state. An unauthenticated attacker able to induce encoding of an unusually large data structure can cause denial of service by terminating the PHP worker process or cause data integrity issues by omitting fields in the resulting BSON document. No database authentication or server connection is necessary for exploitation. The vulnerability affects multiple version ranges of the PHP Driver.
Potential Impact
An unauthenticated attacker can cause denial of service by terminating the PHP worker or cause data corruption by omitting fields in BSON documents during encoding. This impacts availability and data integrity of applications using the affected MongoDB PHP Driver versions. No authentication or database connection is required, increasing the attack surface.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid encoding unusually large data structures or implement application-level size checks to prevent triggering the vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-10-06T16:40:35.017Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac7feec2cdf04f656318be6
Added to database: 10/08/2026, 20:37:00 UTC
Last enriched: 10/08/2026, 21:04:51 UTC
Last updated: 10/09/2026, 00:08:26 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.