V-265906
SV-265906r1028504_rule
CAT I
MongoDB must enforce approved authorizations for logical access to information and system resources in accordance with applicable access control policies.
From: MongoDB Enterprise Advanced 7.x Security Technical Implementation Guide (V1R1)
Description
<VulnDiscussion>MongoDB must enforce approved authorizations for logical access to information and system resources in accordance with applicable access control policies.</VulnDiscussion><FalsePositives></FalsePositives><FalseNegatives></FalseNegatives><Documentable>false</Documentable><Mitigations></Mitigations><SeverityOverrideGuidance></SeverityOverrideGuidance><PotentialImpacts></PotentialImpacts><ThirdPartyTools></ThirdPartyTools><MitigationControl></MitigationControl><Responsibility></Responsibility><IAControls></IAControls>
Check Procedure
The MongoDB administrator must ensure that additional application access control is enforced.
Review the system documentation to determine the required levels of protection for MongoDB server securables by type of login.
Review the permissions actually in place on the server.
Run the command to view roles and privileges in a particular <database> :
use <database>
db.getRoles(
{
rolesInfo: 1,
showPrivileges: true,
showBuiltinRoles: true
}
)
If the permissions do not match the documented requirements, this is a finding.
Fix Text
Use the following statements to add and remove permissions on MongoDB server securables, bringing them into line with the documented requirements:
createRole(),
updateRole(),
dropRole(),
grantRolesToUser()
MongoDB commands for role management can be found here:
https://www.mongodb.com/docs/v7.0/reference/method/js-role-management/
CCI Reference
CCI-000213- Created
- 2026-04-07 20:08:27
- Last Updated
- 2026-04-07 20:08:27