STIGUI
V-265905CAT I — High severitySV-265905r1043176_rule

MongoDB must integrate with an organization-level authentication/access mechanism providing account management and automation for all users, groups, roles, and any other principals.

Rule version MD7X-00-000200 · STIG v1 · 2026-05-23

Discussion

MongoDB must integrate with an organization-level authentication/access mechanism providing account management and automation for all users, groups, roles, and any other principals.

Check

Verify that the MongoDB configuration file (default location: /etc/mongod.conf) contains the following:

security: authorization: "enabled"

If this parameter is not present, this is a finding.

If using organization-mandated authorization:

Verify that the MongoDB configuration file (default location: /etc/mongod.conf) contains the following to ensure LDAP auth is enabled as well:

security: ldap: servers: [list of ldap servers]

If this parameter is not present, this is a finding.

Refer to Security LDAP configuration documentation for additional details: https://www.mongodb.com/docs/v7.0/core/security-ldap-external/#configuration

Fix

Edit the MongoDB configuration file (default location: /etc/mongod.conf) to include the following:

security: authorization: "enabled"

This will enable SCRAM-SHA-256 authentication (default).

Instruction on configuring the default authentication is provided here: https://www.mongodb.com/docs/v7.0/tutorial/enable-authentication/

The high-level steps described by the above will require the following:

1. Start MongoDB without access control. 2. Connect to the instance. 3. Create the user administrator. 4. Restart the MongoDB instance with access control. 5. Connect and authenticate as the user administrator. 6. Create additional users as needed for the deployment.

Configuration information for LDAP for MongoDB can be found here: https://www.mongodb.com/docs/v7.0/core/security-ldap-external/

https://www.mongodb.com/docs/v7.0/core/security-ldap-external/#configuration

Identifiers

Group ID
V-265905
Group title
SRG-APP-000023-DB-000001
Rule ID
SV-265905r1043176_rule
Check ID
C-69823r1028499_chk
Fix ID
F-69727r1028704_fix