CVE catalog

CVE-2026-106432

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 t

[CVE catalog]

Severity
Low · CVSS 3.6CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.17% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianphp-mongodbsid2.5.3-1vulnerable
Debianphp-mongodbforky2.5.3-1vulnerable
Debianphp-mongodbtrixie2.0.0-1vulnerable
Debianphp-mongodbtrixie-security2.0.0-1+deb13u2fixed
Debianphp-mongodbbookworm1.15.0+1.11.1+1.9.2+1.7.5-1vulnerable
Cpephp_driverNot reported2.5.4fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp-mongodbsourcesid(unfixed)not yet assignedNot reported[1150514]
Debianphp-mongodbsourceforky(unfixed)not yet assignedNot reported[1150514]
Debianphp-mongodbsourcetrixie2.0.0-1+deb13u2not yet assignedNot reported[1150514]
Debianphp-mongodbsourcebookworm(unfixed)not yet assignedNot reported[1150514]
Cpephp_drivercpeNot reported2.5.4Not reportedNVD-CVE-2026-106432Not reported

[Debian bug #1150514]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [php8.2-mongodb]Affected

    Source package: [php-mongodb]

    Details (2)
    • 1.15.0+1.11.1+1.9.2+1.7.5-1 · amd64 · bookworm

      Affected

      nvd · php-mongodb · debian · bookworm; nvd · php-mongodb · debian · 12

    • 1.15.0+1.11.1+1.9.2+1.7.5-1 · arm64 · bookworm

      Affected

      nvd · php-mongodb · debian · bookworm; nvd · php-mongodb · debian · 12

  • [php-mongodb]Affected
    Details (2)
    • 1.15.0+1.11.1+1.9.2+1.7.5-1 · amd64 · bookworm

      Affected

      nvd · php-mongodb · debian · bookworm; nvd · php-mongodb · debian · 12

    • 1.15.0+1.11.1+1.9.2+1.7.5-1 · arm64 · bookworm

      Affected

      nvd · php-mongodb · debian · bookworm; nvd · php-mongodb · debian · 12

  • Source package: [php-mongodb]

    Details (2)
    • 1.15.0+1.11.1+1.9.2+1.7.5-1 · all · bookworm

      Affected

      nvd · php-mongodb · debian · bookworm; nvd · php-mongodb · debian · 12

    • 1.15.0+1.11.1+1.9.2+1.7.5-1 · all · bookworm

      Affected

      nvd · php-mongodb · debian · bookworm; nvd · php-mongodb · debian · 12

[Debian 13 (Trixie)]

  • [php8.4-mongodb]Affected

    Source package: [php-mongodb]

    Details (4)
    • 2.0.0-1 · amd64 · trixie

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1 · arm64 · trixie

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1+deb13u1 · amd64 · trixie-security · Historical version

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1+deb13u2 · amd64 · trixie-security

      Fixed · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

  • [php-mongodb]Affected
    Details (4)
    • 2.0.0-1 · all · trixie

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1 · all · trixie

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1+deb13u1 · all · trixie-security · Historical version

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1+deb13u2 · all · trixie-security

      Fixed · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

  • Source package: [php-mongodb]

    Details (4)
    • 2.0.0-1 · all · trixie

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1 · all · trixie

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1+deb13u1 · all · trixie-security · Historical version

      Affected · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

    • 2.0.0-1+deb13u2 · all · trixie-security

      Fixed · Fixed: 2.0.0-1+deb13u2

      nvd · php-mongodb · debian · 13

Observed:

References