MongoDBGHSA-65fr-j4p9-vc33
Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver
Fix: upgrade to 1.21.4 or later (2 fixed versions below)
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 PHP library 1.21.4 and 2.4.1.
Workarounds
Validate database and collection names prior to passing into APIs.
References
https://jira.mongodb.org/browse/PHPLIB-1927
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| mongodb/mongodb Product | < 1.21.4 | 1.21.4 |
| >= 2.0.0, < 2.4.1 | 2.4.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)