CVE-2026-106435
Description
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.
How to fix
- mongodb python_driver4.18.3 or later
- pymongo4.18.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mongodb python_driver | v < 4.18.3 | 4.18.3 |
| pymongoPyPI | 3.9.0 ≤ v < 4.18.3 | 4.18.3 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.