CVE-2026-106432

Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver

State
Published
Severity
2.0 Low
Published
Oct 8, 2026
Updated
Oct 8, 2026
Reserved
Oct 6, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.02.0 LowCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:Nmongodb
3.13.6 LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:Lmongodb

Weaknesses

  • CWE-681 Incorrect Conversion between Numeric Types

Affected Products

ProductVersions
PHP DriverMongoDB
  • 1.16.0 to before 1.21.11Affected
  • 2.0.0 to before 2.1.11Affected
  • 2.2.0 to before 2.5.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.