Description
The MongoDB C++ Driver discards content after an embedded NUL byte in certain field and collection names accepted by the collection API. This can cause the driver and the calling application to interpret the same name differently. An authenticated actor who can influence a name passed by an affected application can cause the application to read distinct values from an unintended field or rename an unintended collection. These operations use the application's existing database credentials.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MongoDB | C++ Driver | 3.0.0 – < 4.6.1 | 4.6.1 |
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.6.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mongo-cxx-driver | No fix yet | — |
Advisories 1
- WID-SEC-2026-3830 MongoDB Treiber: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 27, 2026