CVE-2026-106432
published low CVSS 4.0 · 2.0Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB | — | PHP Driver1.16.0 to < 1.21.11 · 2.0.0 to < 2.1.11 · 2.2.0 to < 2.5.4 · Other versions: unaffected | Affected | Not stated | mongodb |
| Debian | trixie | php-mongodb | Advisory build | 2.0.0-1+deb13u2 | DSA-6589-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.0 / 10
- Severity
- low
- Provider
- mongodb · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.6 | low | mongodb · cna | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB | PHP Driver | 1.16.0 to < 1.21.11 (affected · semver)2.0.0 to < 2.1.11 (affected · semver)2.2.0 to < 2.5.4 (affected · semver)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-681 CWE-681: Incorrect Conversion between Numeric Types
References
1Provider assertions
2mongodb · cna
Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 35694f6e97040e20fa0c306da859bd16ee4eef38abd05a20ea0c5c5cf9469044
- Ingested
- 09 Oct 2026, 16:25:58 UTC
- Source record
- Official CVE record