CVE-2026-106432MongoDB PHP Driver Incorrect Conversion between Numeric Types
NVD
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 2.0 (LOW)
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:NAttack VectorLocal
Attack ComplexityLow
Attack RequirementsPresent
Privileges RequiredLow
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)Low
Availability (Vulnerable System)Low
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 3.6)
CVSS v3.1 Base Metrics — Score 3.6 (LOW)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:LAttack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityLow
Affected & Patched Versions
- MongoDB PHP Driver >= 1.16.0 and < 1.21.11
- MongoDB PHP Driver >= 2.0.0 and < 2.1.11
- MongoDB PHP Driver >= 2.2.0 and < 2.5.4
- MongoDB PHP Driver 1.21.11
- MongoDB PHP Driver 2.1.11
- MongoDB PHP Driver 2.5.4
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run MongoDB PHP Driver and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Oct 8, 2026Published
- Oct 8, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new MongoDB PHP Driver CVEsYou are reading CVE-2026-106432. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Issue Trackinghttps://jira.mongodb.org/browse/PHPC-2741
Data last checked: Nov 24, 2026 15:36 UTC