CVE-2026-106432: CWE-681: Incorrect Conversion between Numeric Types in MongoDB PHP Driver
Description
CVE-2026-106432 is a low-severity vulnerability in the MongoDB PHP Driver where the BSON encoder incorrectly converts string lengths to a 32-bit value without validation. This can cause a heap buffer overflow when encoding strings near 4 GiB in size, potentially corrupting process memory or terminating the PHP process. Exploitation requires a non-default runtime configuration that allows multi-gigabyte values, and no interaction with the MongoDB server is needed.
CVSS v4.0
Score 2.0low
Affected software
MongoDB
PHP Driver
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The BSON encoder in the MongoDB PHP Driver converts string lengths to a 32-bit integer without validating the size. When encoding very large strings close to 4 GiB, the allocation size can wrap around due to integer overflow, but the copy operation uses the original length. This mismatch leads to a heap buffer overflow, which can corrupt memory or crash the PHP process. Exploiting this requires a non-default runtime configuration permitting multi-gigabyte values. The vulnerability affects multiple version ranges of the PHP Driver and does not require MongoDB server interaction.
Potential Impact
A heap buffer overflow caused by incorrect numeric conversion can lead to process memory corruption or termination of the PHP process. The impact is limited by the requirement for a non-default runtime configuration that allows multi-gigabyte string values. There are no known exploits in the wild and the CVSS score is low, indicating limited risk under typical usage scenarios.
Mitigation Recommendations
No official patch or remediation details are provided in the available data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid configurations that permit multi-gigabyte string values in the BSON encoder until a fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-10-06T16:40:35.016Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac7feec2cdf04f656318be5
Added to database: 10/08/2026, 20:37:00 UTC
Last enriched: 10/08/2026, 21:04:55 UTC
Last updated: 10/09/2026, 00:28:09 UTC
Views: 9
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.