MongoDBGHSA-69mq-vf3m-pgj6
Cross-tenant database retargeting via dot/NUL injection in namespace strings in the C++ Driver
Fix: upgrade to 4.5.1 or later
Impact
Passing untrusted input as part of a database or collection name may result in targeting a different database or collection than specified.
Patches
Fixed in C++ driver 4.5.1.
Workarounds
Validate database and collection names prior to passing into APIs.
References
https://jira.mongodb.org/browse/CXX-3552
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| MongoDB C++ Driver Product | < 4.5.1 | 4.5.1 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Severity from
- GitHub (reviewed advisory)