Description
An incorrect numeric type conversion in the BSON document building component of the MongoDB C++ Driver may cause a length value to be interpreted incorrectly. When an application supplies an extremely large, non-terminated field name to the builder, the library may read memory outside the intended buffer and terminate the calling process. No authentication is required, but the calling application must pass the oversized name in a specific form.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MongoDB | C++ Driver | 3.2.0 – < 4.5.2 | 4.5.2 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mongo-cxx-driver | 4.5.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mongo-cxx-driver | No fix yet | — |
Advisories 1
- WID-SEC-2026-3209 MongoDB: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 4, 2026