Unbounded recursion in MongoDB PHP driver BSON decoding
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-674.
Summary
MongoDB PHP Driver from 1.0.0 before 1.21.12, from 2.1.0 before 2.1.12, and from 2.5.0 before 2.5.5 is affected. Uncontrolled recursion (CWE-674) in BSON decoding lets an unauthenticated party exhaust the process stack with crafted binary document data. The PHP process using the driver terminates, and application error handling cannot intercept this.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | PHP Driver | 1.0.0 to before 1.21.12; 2.1.0 to before 2.1.12; 2.5.0 to before 2.5.5 | 1.21.12, 2.1.12, 2.5.5 | Patch available | CNA |
- PHP Driver VendorMongoDB Affected 1.0.0 to before 1.21.12; 2.1.0 to before 2.1.12; 2.5.0 to before 2.5.5 Fixed in 1.21.12, 2.1.12, 2.5.5 Patch available CNA
Remediation
Upgrade the MongoDB PHP Driver to 1.21.12, 2.1.12, or 2.5.5, whichever matches the release line in use.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
- Fix · CNA PHP Driver (MongoDB Inc.) Fixed in 1.21.12, 2.1.12, 2.5.5
Vendor assessments
Timeline
- 2026-10-19 Threatist record created from CVE-2026-112368
- 2026-10-20 Alias added: GHSA-69c3-9c25-6gj9
- 2026-10-20 CISA SSVC decision points changed
- 2026-10-20 Priority changed: MEDIUM → LOW
- 2026-10-21 Priority changed: LOW → MEDIUM
- 2026-10-21 Affected versions changed · Red Hat
- 2026-10-21 CVSS score added · Red Hat
References
More MongoDB vulnerabilities
- TI-2019-08023 Code injection in mongo-express KEVCVSS 3.1CRITICAL 9.9
- TI-2025-13542 Zlib compressed protocol header length confusion may allow memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79422 Unbounded memory growth in MongoDB C# Driver BSON deserialization CVSS 4.0HIGH 8.2
- TI-2026-79427 Authentication bypass via issuer-and-serial-only certificate equality CVSS 4.0HIGH 7.6
Sources
- CVE-2026-112368 · CVE Program
- CVE-2026-112368 · NVD
- FIRST EPSS
- GHSA-69c3-9c25-6gj9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-112368 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences