CVE-2026-106432CWE-681

CVE-2026-106432

Low · published October 9, 2026

CVSS v3.1
3.6
EPSS
0%
Percentile
6.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
3.6 · LOW
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
CVSS v4.0
2.0 · 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
EPSS
0.00170 · 6.1th percentile
Weakness
CWE-681 · Incorrect Conversion between Numeric Types
Published
2026-10-09T00:17Z
Affected products (3)
ProductVersionsFixed in
mongodb/php_driver≥ 1.3.0, < 1.21.11.21.1
mongodb/php_driver≥ 2.0.0, < 2.1.112.1.11
mongodb/php_driver≥ 2.2.0, < 2.5.42.5.4
References (1)
EPSS history
Timeline
  • 10 OCT 03:27Z
    EPSS moved — → 0%
    epss
  • 08 OCT 19:02Z
    Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
    cvelistv5
  • 08 OCT 19:02Z
    Heap buffer overflow via 32-bit string-length truncation in MongoDB PHP Driver
    cvelistv5