CVEfocus › CVE database › CVE-2026-106432

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

CVSS 3.6 LowEPSS 0.2% (higher than 8% of CVEs)Published 2026-10-08Updated 2026-10-08Assigner: mongodb

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.

CWE-681

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
5Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10php-mongodbFix pendingUBUNTU-CVE-2026-106432
Ubuntu 26.04php-mongodbUnder investigationUBUNTU-CVE-2026-106432
Ubuntu 24.04php-mongodbUnder investigationUBUNTU-CVE-2026-106432
Ubuntu 22.04php-mongodbUnder investigationUBUNTU-CVE-2026-106432
Ubuntu 20.04php-mongodbFix pendingUBUNTU-CVE-2026-106432
Ubuntu 18.04php-mongodbFix pendingUBUNTU-CVE-2026-106432
Ubuntu 16.04php-mongodbFix pendingUBUNTU-CVE-2026-106432
Debian 14php-mongodbFixed2.5.5-1DEBIAN-CVE-2026-106432
Debian 13php-mongodbFixed2.0.0-1+deb13u2DEBIAN-CVE-2026-106432
Debian 12php-mongodbFix pendingDEBIAN-CVE-2026-106432

What the vendor says

As published in the CVE record by mongodb, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.