After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated users session to persist and become conflated with new accounts, if those accounts reuse the names of deleted ones. This issue affects MongoDB Server v4.0 versions prior to 4.0.9; MongoDB Server v3.6 versions prior to 3.6.13 and MongoDB Server v3.4 versions prior to 3.4.22.
Workaround: After deleting one or more users, restart any nodes which may have had active user authorization sessions.
Refrain from creating user accounts with the same name as previously deleted accounts.
The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Mongodb | Mongodb | 3.4.0 (including) | 3.4.22 (excluding) |
Mongodb | Mongodb | 3.6.0 (including) | 3.6.13 (excluding) |
Mongodb | Mongodb | 4.0.0 (including) | 4.0.9 (excluding) |
Mongodb | Ubuntu | bionic | * |
Mongodb | Ubuntu | disco | * |
Mongodb | Ubuntu | eoan | * |
Mongodb | Ubuntu | esm-apps/xenial | * |
Mongodb | Ubuntu | esm-infra-legacy/trusty | * |
Mongodb | Ubuntu | focal | * |
Mongodb | Ubuntu | trusty | * |
Mongodb | Ubuntu | trusty/esm | * |
Mongodb | Ubuntu | xenial | * |
Assuming a user with a given identity, authorization is the process of determining whether that user can access a given resource, based on the user’s privileges and any permissions or other access-control specifications that apply to the resource. When access control checks are not applied consistently - or not at all - users are able to access data or perform actions that they should not be allowed to perform. This can lead to a wide range of problems, including information exposures, denial of service, and arbitrary code execution.