STIGhubSTIGhub
STIGsRMF ControlsCompare
STIGhub— A free STIG search and compliance tool·STIGs updated 3 days ago
Powered by Pylon·Privacy·Terms·© 2026 Beacon Cloud Solutions, Inc.
← Back to MongoDB Enterprise Advanced 4.x Security Technical Implementation Guide

V-252138

CAT II (Medium)

Unused database components that are integrated in MongoDB and cannot be uninstalled must be disabled.

Rule ID

SV-252138r960966_rule

STIG

MongoDB Enterprise Advanced 4.x Security Technical Implementation Guide

Version

V1R4

CCIs

CCI-000382

Discussion

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.

Check Content

Inspect the MongoDB database configuration file (default location: /etc/mongod.conf) for any net.http options similar in construct to the following:

net:
   http:
      option 1: value
      option 2: value

Example:

It may appear similar to the following (having one or more options):

net:
   http:
      enabled: true
      port: port number
      JSONPEnabled: true
      RESTInterfaceEnabled: true

If the configuration file contains any "http:" options under "net:", this is a finding.

Fix Text

MongoDB 3.6 removed the following deprecated HTTP interface and REST API to MongoDB and should not be used.

net.http.enabled
net.http.JSONPEnabled
net.http.port
net.http.RESTInterfaceEnabled

In the MongoDB database configuration file (default location: /etc/mongod.conf), remove all http: options underneath net: from the configuration file.