{"id":"CVE-2026-93395","published":"2026-09-17T20:34:57Z","modified":"2026-09-18T14:31:41Z","title":"Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()","vendor":"MongoDB Inc.","product":"C Driver","tier":"tail","description":{"text":"A missing lower-bound validation in the bson_new_from_buffer() function of libbson allows an integer underflow when processing BSON data with a zero-length prefix. The function reads a 32-bit document length from the input buffer but does not verify that the value is at least 5 (the minimum valid BSON document size) before using it in an array index calculation. When the length field is zero, the expression used to check the document's null terminator wraps to UINT32_MAX, causing a heap out-of-bounds read that crashes the process. An unauthorized party who can supply crafted BSON input to an application using this API can cause a denial of service.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00402,"percentile":0.3534,"provenance":"source"},"cwes":[{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"}],"references":[{"url":"https://jira.mongodb.org/browse/CDRIVER-6343","tags":[]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":7.07},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"mongodb","affectedVersions":[{"vendor":"MongoDB Inc.","product":"C Driver","versions":[">= 2.0.0, < 2.3.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-18T14:27:39.885031Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-82471","exploited":false,"provenance":"source"}}