Skip to content
Heist/ feed
Low

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-106432

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-106432

PHP Driver

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "MongoDB",
    "product": "PHP Driver",
    "versions": [
      {
        "status": "affected",
        "version": "1.16.0",
        "lessThan": "1.21.11",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "2.0.0",
        "lessThan": "2.1.11",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "2.2.0",
        "lessThan": "2.5.4",
        "versionType": "semver"
      }
    ],
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-106432

Source reference: /cveMetadata/cveId

Publisher severity

low

Source reference: /containers/cna/metrics

Event
#15701 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement