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.
High severity with no evidence of exploitation so far.
What to do
- Update PHP Driver to 1.21.11 or 2.1.11 or 2.5.4, whichever matches your release line, or a later version.
- Read the advisory on jira.mongodb.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| MongoDB | PHP Driver | 1.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.4 | 1.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 system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 4.0 | 2.0 | Low | CNA (mongodb.com) |
| CVSS 3.1 | 3.6 | Low | CNA (mongodb.com) |
| CVSS 3.1 | 8.2 | High | NVD |
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
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Other vulnerabilities in PHP Driver
- 7.5 High severity
- 8.1 High severity
- 7.5 High severity
- 7.8 High severity
Recent Incorrect Conversion between Numeric Types vulnerabilities
- 7.8 High severity
- 7.8 High severity
- 8.9 High severity
- 7.8 High severity
- 7.8 High severity
- 8.7 High severity
Spotted an error? Tell us.