Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-106436
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 03:44 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 8 Oct 2026, 19:03 UTC

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.

osv:CVE-2026-106436
Complete source record
{
  "id": "e65659becb0625ab4cc15353529c2f45d14e254415077ced45f9463820ef4e75",
  "url": "https://osv.dev/vulnerability/CVE-2026-106436",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Application denial of service and data truncation via unchecked BSON append failures in MongoDB PHP Driver",
    "summary": "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.",
    "evidence": "osv:CVE-2026-106436",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-106436",
      "aliases": [
        "CVE-2026-106436"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mongodb/mongo-php-driver",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e003449e31ac91842a217498874c04c2db72245f"
                },
                {
                  "fixed": "f085d80e0425ed29acaba735fd4d942c3c41938a"
                },
                {
                  "introduced": "5a7adc35edf11107e8266146413d69b83de33d3f"
                },
                {
                  "fixed": "919b00b280b999507388dd714fe6a4de0326e693"
                },
                {
                  "introduced": "c63f6f23f087a5c33d70e47539372f2d8e429343"
                },
                {
                  "fixed": "7fc68847e9c8972fdf8a2b1672d54d1a2f1af55d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*",
                    "range": [
                      {
                        "introduced": "1.3.0"
                      },
                      {
                        "fixed": "1.21.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "2.1.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*",
                    "range": [
                      {
                        "introduced": "2.2.0"
                      },
                      {
                        "fixed": "2.5.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.5.3",
            "2.1.10",
            "2.1.9",
            "2.5.2",
            "2.5.1",
            "2.5.0",
            "2.2.0",
            "2.1.8",
            "2.1.7",
            "2.1.4",
            "2.1.3",
            "2.1.2",
            "2.1.1",
            "2.1.0",
            "1.21.0",
            "1.18.0",
            "1.17.0",
            "1.15.0",
            "1.14.0",
            "1.14.0beta1",
            "1.13.0",
            "1.12.0",
            "1.11.0",
            "1.11.0alpha1",
            "1.10.0alpha1",
            "1.6.0RC1",
            "1.6.0alpha3",
            "1.6.0alpha2",
            "1.6.0alpha1",
            "1.5.0",
            "1.4.0RC1",
            "1.4.0beta1",
            "1.3.1",
            "1.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-106436.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.315499974Z",
      "provider": "osv",
      "references": [
        "https://jira.mongodb.org/browse/PHPC-2739",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106436.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-106436"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-252"
        ],
        "cna_assigner": "mongodb",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.3.0"
                  },
                  {
                    "fixed": "1.21.11"
                  },
                  {
                    "introduced": "2.0.0"
                  },
                  {
                    "fixed": "2.1.11"
                  },
                  {
                    "introduced": "2.2.0"
                  },
                  {
                    "fixed": "2.5.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106436.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-106436",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 522318,
  "published_at": "2026-10-08T19:03:31.934+00:00"
}