MongoDB Server
Authorization role-graph corruption via no-op cleanup filters in dropAllRolesFromDatabase
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9.0.0, < 9.0.7
- >= 8.3.0, < 8.3.16
- >= 8.0.0, < 8.0.37
- >= 7.0.0, < 7.0.48
Fixed in 9.0.7, 8.3.16, 8.0.37, 7.0.48
Mitigation
Upgrade MongoDB Server to 9.0.7 or 8.3.16 or 8.0.37 or 7.0.48 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.