Authorization role-graph corruption via no-op cleanup filters in dropAllRolesFromDatabase
- State
- Published
- Severity
- 7.0 High
- Published
- Nov 10, 2026
- Updated
- Nov 13, 2026
- Reserved
- Nov 2, 2026
Description
A flaw in MongoDB Server's user management commands may lead to incomplete cleanup of role authorization data when roles are dropped from a database. Due to incorrect internal query predicates, the drop operation removes role definitions but fails to remove stale references in user and role documents. If a role with the same name is subsequently recreated with different privileges, previously associated users may silently inherit the new role's privileges without an explicit grant or corresponding audit event. Exploitation requires authenticated access with database administrative privileges on the target database.
| Product | Versions |
|---|---|
| MongoDB Server MongoDB | 9.0.0 to before 9.0.7 Affected8.3.0 to before 8.3.16 Affected8.0.0 to before 8.0.37 Affected7.0.0 to before 7.0.48 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.0 High | mongodb | |
| 3.1 | 5.5 Medium | mongodb |
Weaknesses
- CWE-459 Incomplete Cleanup
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.