Skip to content
CVE PROGRAM SOURCE RECORD7.0 High

CVE-2026-120806

Authorization role-graph corruption via no-op cleanup filters in dropAllRolesFromDatabase

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

MongoDB MongoDB Server

Default version status: unaffected

  • 9.0.0 to < 9.0.7affected
  • 8.3.0 to < 8.3.16affected
  • 8.0.0 to < 8.0.37affected
  • 7.0.0 to < 7.0.48affected

References