High severity · published Oct 8, 2026
CVE-2026-106432
Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
8.2
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 6% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MO
MongoDB · MongoDB
1.16.0 before 1.21.11; 2.0.0 before 2.1.11; 2.2.0 before 2.5.4 · source: vendor
PD
Php Driver · Mongodb
1.3.0 before 1.21.1; 2.0.0 before 2.1.11; 2.2.0 before 2.5.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-106432
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-106432
jira.mongodb.org
https://jira.mongodb.org/browse/PHPC-2741
More from MongoDB
9.9
CVE-2019-10758
MongoDB mongo-express Remote Code Execution Vulnerability
7.5
CVE-2025-14847
Zlib compressed protocol header length confusion may allow memory read
9.8
CVE-2026-19001
MongoDB BI Connector ODBC driver may write outside an allocated buffer when handling oversized catalog object names
9.8
CVE-2025-3085
A MongoDB server under specific conditions running on Linux with TLS and CRL revocation status checking enabled, fails to check the revocation status of the intermediate…
9.8
CVE-2024-8654
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour
