{"id":"CVE-2026-114646","kind":"vulnerability","aliases":["CVE-2026-114646"],"related":[],"title":"MongoDB C# Driver: unchecked BSON size lets outside input alter database commands","description":"A data-validation flaw exists in the BSON handling and binary serialization path of the MongoDB C# Driver. When an application constructs a raw or lazy BSON document object from externally supplied binary data, the driver does not verify that the size quantity declared inside that data matches the amount of data actually provided, and it copies the data onto the wire unchanged. An unauthenticated party who can supply binary content to such an application can thereby cause additional elements to be inserted into, or existing elements to be removed from, the database command the application issues, without needing any database credentials of their own. This can result in unauthorized modification of stored data and disclosure of data outside the intended scope of the application's request, bounded by the database privileges the application itself holds.","summary":"The MongoDB C# Driver does not check that the declared size inside a raw or lazy BSON document built from external binary data matches the real length, and it sends the data on unchanged. An unauthenticated party who can supply that binary input can insert or remove elements in the database command the application issues, leading to unauthorized changes or data disclosure bounded by the application's own database privileges.","severity":"medium","cvss":6.9,"epss":0.00263,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["csharp","dotnet","mongodb","package","self-hosted"],"not_affected_if":["no-raw-bson-from-external-input","typed-models-only"],"how_to_check":"- Search the application code for `RawBsonDocument` or `LazyBsonDocument` constructed from data that comes from requests, uploads or other external input.\n- Check the installed driver version with `dotnet list package` and look for `MongoDB.Driver` or `MongoDB.Bson`; compare against the fixed version in the sources (unknown).","fix":"- Upgrade the MongoDB C# Driver (`MongoDB.Driver`, `MongoDB.Bson`) to the patched release; the exact version is unknown from the sources.\n- Until patched, validate the length prefix of externally supplied BSON bytes against the buffer length before building a raw or lazy document from them.","status":"open","published_at":"2026-10-22T19:17:38+00:00","first_seen_at":"2026-10-23T21:57:31+00:00","triaged_at":"2026-10-25T03:38:54+00:00","updated_at":"2026-10-25T03:38:54+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-25T03:38:54Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade the MongoDB C# Driver (`MongoDB.Driver`, `MongoDB.Bson`) to the patched release; the exact version is unknown from the sources.\n- Until patched, validate the length prefix of externally supplied BSON bytes against the buffer length before building a raw or lazy document from them.","reach":"internet","title":"MongoDB C# Driver: unchecked BSON size lets outside input alter database commands","impact":"medium","summary":"The MongoDB C# Driver does not check that the declared size inside a raw or lazy BSON document built from external binary data matches the real length, and it sends the data on unchanged. An unauthenticated party who can supply that binary input can insert or remove elements in the database command the application issues, leading to unauthorized changes or data disclosure bounded by the application's own database privileges.","category":"package","nicknames":[],"who_cares":["dotnet","mongodb","csharp","self-hosted"],"confidence":0.6,"needs_auth":"no","worst_case":"Attacker alters database commands, modifying or reading data beyond intended scope","analyst_note":"Find the patched MongoDB C# Driver version and the affected version range from the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-114646.","how_to_check":"- Search the application code for `RawBsonDocument` or `LazyBsonDocument` constructed from data that comes from requests, uploads or other external input.\n- Check the installed driver version with `dotnet list package` and look for `MongoDB.Driver` or `MongoDB.Bson`; compare against the fixed version in the sources (unknown).","needs_analyst":true,"not_affected_if":["no-raw-bson-from-external-input","typed-models-only"],"who_is_affected":"Applications written in C# that use the MongoDB C# Driver and build raw or lazy BSON documents from binary data supplied by outside parties are exposed. Applications that only use typed models or build documents from trusted server-side data are less exposed. Teams that do not use this driver can skip it.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000719,"input_tokens":3486,"output_tokens":740,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-114646':15A,18A '-2026':14A,17A 'actual':149C 'addit':175C 'alter':10A 'amount':146C 'applic':79B,91B,117C,171C,192C,221C,230C 'binari':47B,67B,107C,129C,166C 'bound':88B,224C 'bson':5A,42B,104C,123C 'built':44B 'c':2A,28B,113C 'caus':174C 'chang':84B 'check':32B 'command':12A,77B,190C 'construct':118C 'content':167C 'copi':153C 'credenti':198C 'csharp':19B 'cve':13A,16A 'data':48B,57B,86B,98C,130C,143C,148C,155C,210C,214C 'data-valid':97C 'databas':11A,76B,94B,189C,197C,227C 'declar':35B,140C 'disclosur':87B,212C 'document':43B,124C 'dotnet':20B 'driver':3A,29B,114C,132C 'element':73B,176C,183C 'exist':101C,182C 'extern':46B,127C 'flaw':100C 'handl':105C 'hold':232C 'host':25B 'input':9A,68B 'insert':70B,179C 'insid':37B,141C 'intend':217C 'issu':80B,193C 'lazi':41B,122C 'lead':81B 'length':52B 'let':7A 'match':49B,144C 'modif':207C 'mongodb':1A,21B,27B,112C 'need':195C 'object':125C 'onto':156C 'outsid':8A,215C 'packag':22B 'parti':62B,162C 'path':109C 'privileg':95B,228C 'provid':150C 'quantiti':139C 'raw':39B,120C 'real':51B 'remov':72B,186C 'request':223C 'result':204C 'scope':218C 'self':24B 'self-host':23B 'send':55B 'serial':108C 'size':6A,36B,138C 'store':209C 'suppli':65B,128C,165C 'therebi':173C 'unauthent':61B,161C 'unauthor':83B,206C 'unchang':59B,159C 'uncheck':4A 'valid':99C 'verifi':135C 'wire':158C 'without':194C","nicknames":[],"mitigations":[],"who_affected":"Applications written in C# that use the MongoDB C# Driver and build raw or lazy BSON documents from binary data supplied by outside parties are exposed. Applications that only use typed models or build documents from trusted server-side data are less exposed. Teams that do not use this driver can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-22T19:17:38+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/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-114646","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114646","severity":null,"published_at":"2026-10-22T19:17:38+00:00","modified_at":"2026-10-23T19:45:03+00:00","first_seen_at":"2026-10-23T21:57:31+00:00","fetched_at":"2026-10-23T22:29:02+00:00","note":null},{"source":"epss","external_id":"CVE-2026-114646","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-114646","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-24T07:15:51+00:00","fetched_at":"2026-10-24T07:15:51+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"}