The MongoDB Python Driver's binary accelerator can read outside a buffer when an application decodes malformed BSON containing a truncated regular-expression element without a trailing NUL byte. An actor who can supply BSON to the documented decode or decode_all API can cause the application process to terminate when the C extension is loaded. The driver's normal database wire-protocol path does not reach this code.
CVE-2026-106435
CVSS base score
5.1 (v3.1)
Severity
MEDIUM
Attack vector
Local
Weakness
CWE-125
Last modified
October 15, 2026
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
mongodb python driver
References
- jira.mongodb.org Vendor Advisory