CVE-2026-106436

Application denial of service and data truncation via unchecked BSON append failures in MongoDB PHP Driver

Published Oct 8, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
The BSON encoder in the MongoDB PHP Driver does not check some return values after a document exceeds libbson's size limit. This can leave the encoder in an invalid state. An unauthenticated actor who can cause an affected application to encode an unusually large data structure can terminate the PHP worker or cause the resulting document to omit fields. No MongoDB server connection or database authentication is required.

Analysis

AI-generated

Technical impact

The MongoDB PHP Driver’s BSON encoder fails to verify return values after a document exceeds libbson’s size limit, potentially leaving the encoder in an invalid state. Based on the description, it is inferred that an unauthenticated attacker can force an application to encode an unusually large data structure, which may terminate the PHP worker or produce a truncated document. This results in a denial of service and loss of data integrity, affecting application availability and correctness.

Affected Systems

MongoDB PHP Driver. No specific affected versions are listed; any deployment of the driver prior to the documented fix is potentially vulnerable and should be reviewed.

Risk and Exploitability

The vulnerability has a CVSS score of 6.3, indicating moderate severity. EPSS is not available and the issue is not listed in the CISA KEV catalog. Based on the description, it is inferred that the likely attack vector requires an attacker who can send a large payload to an application using the driver; because no authentication or database connection is required, the effect can be triggered by any user interacting with the application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the MongoDB PHP Driver to a version that implements proper error handling for BSON append operations.
  • Enforce input size limits on data structures before they are passed to the driver to prevent exceeding libbson size limits.
  • Validate that each BSON encoding operation succeeds before using the resulting document and gracefully handle any errors that occur.

Generated by OpenCVE AI on October 8, 2026 at 20:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb php Driver
Vendors & Products Mongodb
Mongodb php Driver
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The BSON encoder in the MongoDB PHP Driver does not check some return values after a document exceeds libbson's size limit. This can leave the encoder in an invalid state. An unauthenticated actor who can cause an affected application to encode an unusually large data structure can terminate the PHP worker or cause the resulting document to omit fields. No MongoDB server connection or database authentication is required.
Title Application denial of service and data truncation via unchecked BSON append failures in MongoDB PHP Driver
Weaknesses CWE-252
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Oct 8, 2026, 7:52 PM
Reserved
Oct 6, 2026, 4:40 PM
Status
Analyzed
Published
Oct 8, 2026, 8:17 PM
Modified
Oct 13, 2026, 8:13 PM
Severity
Moderate
Public date
Oct 8, 2026, 7:03 PM