MongoDBGHSA-68xx-ccm2-m445
### Impact Improper neutralization of special elements in data query logic in...
Fix: upgrade to 5.11.0 or later
Impact
Improper neutralization of special elements in data query logic in the MongoDB integration for Laravel can cause an array supplied to an explicit equality filter to be interpreted as a query condition rather than as a literal value. This affects the three-argument where method when the operator is = or eq, as well as the find and delete methods that use that code path. An attacker who can cause an affected application to supply an operator-shaped array to one of these APIs may obtain a document other than the intended target or delete documents beyond the intended target.
Patches
5.11.0
Workarounds
Validate arguments.
References
https://jira.mongodb.org/browse/PHPLARA-260
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| mongodb/laravel-mongodb Product | >= 1.0.0, < 5.11.0 | 5.11.0 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
- Severity from
- GitHub (reviewed advisory)