Incorrect authorization in has_many delete_all in Mongoid
- State
- Published
- Severity
- 6.0 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 23, 2026
Description
Mongoid contains an incorrect authorization weakness in the handling of caller-supplied filters for bulk removal through a referenced association. Conditions already attached to the association can take precedence over the filter the caller supplied, so records the caller did not select may be removed. A user with basic privileges in an application built on the library may cause unintended removal of records belonging to the same parent record.
| Product | Versions |
|---|---|
| Ruby Driver MongoDB | 2.1.0 to before 9.1.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.0 Medium | mongodb | |
| 3.1 | 6.5 Medium | mongodb |
Weaknesses
- CWE-863 Incorrect Authorization
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.