---
id: CVE-2026-112368
title: 'Unbounded Recursion in phongo_bson_visit_document/visit_array:'
summary: >-
  An uncontrolled recursion weakness in the BSON decoding logic of the MongoDB
  PHP driver may allow an unauthenticated party who can supply crafted binary
  document data to the decoder to exhaust the process stack. This may cause the
  PHP pr…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-674
vendor: MongoDB Inc.
product: PHP Driver
affected:
  - php_driver >= 1.0.0 < 1.21.12
  - php_driver >= 2.1.0 < 2.1.12
  - php_driver >= 2.5.0 < 2.5.5
published: '2026-10-19'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T15:49:16.053Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-112368'
references:
  - url: 'https://jira.mongodb.org/browse/PHPC-276'
tags:
  - cve.org
ingestedAt: '2026-10-19T16:32:30.075Z'
---

## Overview

An uncontrolled recursion weakness in the BSON decoding logic of the MongoDB PHP driver may allow an unauthenticated party who can supply crafted binary document data to the decoder to exhaust the process stack. This may cause the PHP process using the driver to terminate unexpectedly, resulting in a loss of availability for that process. The condition occurs below the PHP layer and cannot be intercepted by application-level error handling.

## Affected

- `php_driver >= 1.0.0 < 1.21.12`
- `php_driver >= 2.1.0 < 2.1.12`
- `php_driver >= 2.5.0 < 2.5.5`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
