{"id":"CVE-2026-112368","kind":"vulnerability","aliases":["CVE-2026-112368"],"related":[],"title":"MongoDB PHP driver: crafted BSON input crashes PHP process via stack exhaustion","description":"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.","summary":"The MongoDB PHP driver's BSON decoder recurses without limit, so a crafted binary document can exhaust the process stack. The PHP process using the driver then terminates, causing a denial of service.","severity":"high","cvss":8.2,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["mongodb","package","php","self-hosted"],"not_affected_if":["no-untrusted-bson-input"],"how_to_check":"- Check the installed driver version with `php -i | grep -i mongodb` or `php --ri mongodb`\n- Check `composer.lock` for `mongodb/mongodb` and the `ext-mongodb` version the project pins\n- unknown for whether the sources list affected version ranges","fix":"- Upgrade the MongoDB PHP extension (`ext-mongodb`) to the patched release named in the MongoDB advisory; unknown for the exact version in the sources\n- Upgrade the `mongodb/mongodb` library if it is in use; unknown for the exact version","status":"open","published_at":"2026-10-19T16:17:07+00:00","first_seen_at":"2026-10-23T21:57:18+00:00","triaged_at":"2026-10-25T03:04:18+00:00","updated_at":"2026-10-25T03:04:18+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-25T03:04:18Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade the MongoDB PHP extension (`ext-mongodb`) to the patched release named in the MongoDB advisory; unknown for the exact version in the sources\n- Upgrade the `mongodb/mongodb` library if it is in use; unknown for the exact version","reach":"internet","title":"MongoDB PHP driver: crafted BSON input crashes PHP process via stack exhaustion","impact":"low","summary":"The MongoDB PHP driver's BSON decoder recurses without limit, so a crafted binary document can exhaust the process stack. The PHP process using the driver then terminates, causing a denial of service.","category":"package","nicknames":[],"who_cares":["php","mongodb","self-hosted"],"confidence":0.6,"needs_auth":"no","worst_case":"Attacker crashes the PHP process handling requests, causing denial of service.","analyst_note":"Find the MongoDB advisory and NVD entry for CVE-2026-112368 to get the affected and patched driver versions.","how_to_check":"- Check the installed driver version with `php -i | grep -i mongodb` or `php --ri mongodb`\n- Check `composer.lock` for `mongodb/mongodb` and the `ext-mongodb` version the project pins\n- unknown for whether the sources list affected version ranges","needs_analyst":true,"not_affected_if":["no-untrusted-bson-input"],"who_is_affected":"Applications that pass binary BSON data from untrusted sources to the MongoDB PHP driver's decoder can be crashed by a single crafted document. Systems that only read BSON from trusted databases or internal services are less exposed. unknown whether the sources name specific driver versions.","user_interaction":"no","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000646,"input_tokens":3365,"output_tokens":619,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-112368':15A,18A '-2026':14A,17A 'allow':73C 'applic':126C 'application-level':125C 'avail':109C 'binari':38B,81C 'bson':5A,30B,64C 'cannot':121C 'caus':53B,94C 'condit':114C 'craft':4A,37B,80C 'crash':7A 'cve':13A,16A 'data':83C 'decod':31B,65C,86C 'denial':55B 'document':39B,82C 'driver':3A,28B,50B,71C,100C 'error':128C 'exhaust':12A,41B,88C 'handl':129C 'host':24B 'input':6A 'intercept':123C 'layer':119C 'level':127C 'limit':34B 'logic':66C 'loss':107C 'may':72C,93C 'mongodb':1A,19B,26B,69C 'occur':115C 'packag':20B 'parti':76C 'php':2A,8A,21B,27B,46B,70C,96C,118C 'process':9A,43B,47B,90C,97C,112C 'recurs':32B,60C 'result':104C 'self':23B 'self-host':22B 'servic':57B 'stack':11A,44B,91C 'suppli':79C 'termin':52B,102C 'unauthent':75C 'uncontrol':59C 'unexpect':103C 'use':48B,98C 'via':10A 'weak':61C 'without':33B","nicknames":[],"mitigations":[],"who_affected":"Applications that pass binary BSON data from untrusted sources to the MongoDB PHP driver's decoder can be crashed by a single crafted document. Systems that only read BSON from trusted databases or internal services are less exposed. unknown whether the sources name specific driver versions.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-19T16:17:07+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"cna@mongodb.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-112368","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112368","severity":null,"published_at":"2026-10-19T16:17:07+00:00","modified_at":"2026-10-20T20:17:16+00:00","first_seen_at":"2026-10-23T21:57:18+00:00","fetched_at":"2026-10-23T22:28:57+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}