CyberSecBulletin
CVE-2026-106432NVD status: Analyzed

PHP Driver: Incorrect Conversion between Numeric Types

CVE-2026-106432 is a high-severity incorrect conversion between numeric types vulnerability in PHP Driver from MongoDB, with a CVSS 3.1 base score of 8.2 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 1.21.11, 2.1.11, 2.5.4 as the first without the flaw, so updating PHP Driver to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.17% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update PHP Driver to 1.21.11 or 2.1.11 or 2.5.4, whichever matches your release line, or a later version.
  2. Read the advisory on jira.mongodb.org for workarounds and exact fixed builds.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
MongoDBPHP Driver1.16.0 up to, but not including, 1.21.11; 2.0.0 up to, but not including, 2.1.11; 2.2.0 up to, but not including, 2.5.41.21.11, 2.1.11, 2.5.4

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
NoneNo data is disclosed.
Integrity
LowLimited modification of data is possible.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 4.02.0LowCNA (mongodb.com)
CVSS 3.13.6LowCNA (mongodb.com)
CVSS 3.18.2HighNVD

Official description

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.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Incorrect Conversion between Numeric Types

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

How developers prevent this class of flaw

  • Avoid making conversion between numeric types. Always check for the allowed ranges.

More Incorrect Conversion between Numeric Types vulnerabilities (CWE-681)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in PHP Driver

All PHP Driver vulnerabilities

Recent Incorrect Conversion between Numeric Types vulnerabilities

Spotted an error? Tell us.