NetSight
high7.0

CVE-2026-120806

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.

Impact

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.

An attacker can exploit this over the network, with an administrator account, without any action by a user. If it succeeds: low risk of data being read, high risk of data or systems being changed.

Affected products

VendorProductAffected versions
MongoDBMongoDB Server
from 9.0.0 before 9.0.7
from 8.3.0 before 8.3.16
from 8.0.0 before 8.0.37
from 7.0.0 before 7.0.48
MongoDB, Inc.MongoDB Server
from 8.0.0 before 8.0.37
from 8.3.0 before 8.3.16
from 9.0.0 before 9.0.7
from 7.0.0 before 7.0.48

Weakness classification

References