Vulnerabilities

CVE-2026-106432

High 8.2 CVSS 3.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.

Description as published by the source, in English.

Key facts

Published
2026-10-08
Last modified
2026-10-13
Assigned by
cna@mongodb.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Scored by
nvd@nist.gov (NVD Primary)
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Mongodb Php Driver ≥ 1.3.0, < 1.21.1 Affected
Mongodb Php Driver ≥ 2.0.0, < 2.1.11 Affected
Mongodb Php Driver ≥ 2.2.0, < 2.5.4 Affected

Weakness type

  • CWE-681: Incorrect Conversion between Numeric Types

    When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous…

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities