MD4X-00-000400 - Unused database components that are integrated in MongoDB and cannot be uninstalled must be disabled.


Information systems are capable of providing a wide variety of functions and services. Some of the functions and services, provided by default, may not be necessary to support essential organizational operations (e.g., key missions, functions).

It is detrimental for software products to provide, or install by default, functionality exceeding requirements or mission objectives.

DBMSs must adhere to the principles of least functionality by providing only essential capabilities.

Unused, unnecessary DBMS components increase the attack vector for MongoDB by introducing additional targets for attack. By minimizing the services and applications installed on the system, the number of potential vulnerabilities is reduced. Components of the system that are unused and cannot be uninstalled must be disabled. The techniques available for disabling components will vary by DBMS product, OS, and the nature of the component and may include DBMS configuration settings, OS service settings, OS file access security, and DBMS user/role permissions.


MongoDB 3.6 removed the following deprecated HTTP interface and REST API to MongoDB.


In the MongoDB database configuration file (default location: /etc/mongod.conf), remove the entire http option (and any sub-options) under the net: settings from the configuration file.

See Also

Item Details


References: 800-53|CM-7a., CAT|II, CCI|CCI-000381, Rule-ID|SV-252137r879587_rule, STIG-ID|MD4X-00-000400, Vuln-ID|V-252137

Plugin: Unix

Control ID: a44837f9d0a4e7e5e4ad4328276b298eee66d591497c9758c76a8ff9a91c2aa9