Skip to main content

CVE-2026-106432: CWE-681: Incorrect Conversion between Numeric Types in MongoDB PHP Driver

0
Low
VulnerabilityCVE-2026-106432cvecve-2026-106432cwe-681
Published: 10/08/2026 (10/08/2026, 19:02:25 UTC)
Source: CVE Database V5
Vendor/Project: MongoDB
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

MongoDB

PHP Driver

Affected versions
>=1.16.0 <1.21.11>=2.0.0 <2.1.11>=2.2.0 <2.5.4

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 21:04:55 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses