MongoDBGHSA-jxxg-hqjr-9h33
### 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 embedded-document relation handling of the MongoDB integration for Laravel can cause a caller-supplied embedded record identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence such an identifier may delete all embedded documents in a targeted record or overwrite an embedded document other than the intended target.
Patches
Fixed in 5.11.0.
Workarounds
Add application validation.
References
https://jira.mongodb.org/browse/PHPLARA-265
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| mongodb/laravel-mongodb Product | >= 4.0.0, < 5.11.0 | 5.11.0 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
- Severity from
- GitHub (reviewed advisory)