CVE-2026-106432
Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
2.0
Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
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.
- Record
CVE-2026-106432- CVSS 4.0
- 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:N - CVSS 3.1
- 3.6 Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-681
- Updated
- 2026-11-02
EUVDEUVD-2026-95234
2.0
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.
- Record
EUVD-2026-95234- CVSS 4.0
- 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:N - Updated
- 2026-11-02
NVD
2.0
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.
- Record
CVE-2026-106432- CVSS 4.0
- 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:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 3.6 Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L - CVSS 3.1
- 8.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H - Weakness
- CWE-681
- Updated
- 2026-11-02
OSV
2.0
Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
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.
- Record
CVE-2026-106432- CVSS 4.0
- 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:N - Weakness
- CWE-681
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-106432
8.2
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.
- Record
DEBIAN-CVE-2026-106432- CVSS 3.1
- 8.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-106432
2.0
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.
- Record
UBUNTU-CVE-2026-106432- CVSS 4.0
- 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:N - CVSS 3.1
- 8.2 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H - CVSS 3.1
- 3.6 Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php-mongodbDebian:12 |
All versions, plus listed versions 1.15.0+1.11.1+1.9.2+1.7.5-11.19.3-11.19.4-21.19.4-3~exp21.19.4-3~exp3 Show 8 moreShow less1.19.4-3~exp41.20.0-11.20.1-11.21.0-12.0.0-12.1.0-12.5.3-12.5.5-1 |
None known |
php-mongodbDebian:13 |
before 2.0.0-1+deb13u2, plus listed versions 2.0.0-12.0.0-1+deb13u1 |
2.0.0-1+deb13u2 |
php-mongodbDebian:14 |
before 2.5.5-1, plus listed versions 2.0.0-12.1.0-12.5.3-1 |
2.5.5-1 |
php-mongodbUbuntu:16.04:LTS |
All versions, plus listed versions 1.1.2-2~ubuntu11.1.5-1~build1 |
None known |
php-mongodbUbuntu:18.04:LTS |
All versions, plus listed versions 1.2.3-1build11.3.4-1build1 |
None known |
php-mongodbUbuntu:20.04:LTS |
All versions, plus listed versions 1.5.5-1build11.6.1-41.6.1-4build1 |
None known |
php-mongodbUbuntu:22.04:LTS |
All versions, plus listed versions 1.9.0+1.7.5-2build21.11.1+1.9.2+1.7.5-41.12.0+1.9.2+1.7.5-31.12.0+1.9.2+1.7.5-4 |
None known |
php-mongodbUbuntu:24.04:LTS |
All versions, plus listed versions 1.15.0+1.11.1+1.9.2+1.7.5-1build11.15.0+1.11.1+1.9.2+1.7.5-1ubuntu11.15.0+1.11.1+1.9.2+1.7.5-1ubuntu21.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3 |
None known |
php-mongodbUbuntu:26.10 |
All versions, plus listed versions 2.1.7-0ubuntu12.1.7-0ubuntu2 |
None known |
php-mongodbUbuntu:26.04:LTS |
All versions, plus listed versions 2.1.0-12.1.7-0ubuntu1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-106432 is a low vulnerability (CVSS 2.0) in Mongodb Php Driver, published October 8, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.17%, the 6th percentile. Fixed in php-mongodb 2.0.0-1+deb13u2.