STIGUI
V-222951CAT II — Medium severitySV-222951r1264541_rule

The shutdown port must be disabled.

Rule version TCAT-AS-000490 · STIG v3 · 2026-08-26

Discussion

Tomcat listens on TCP port 8005 to accept shutdown requests. By connecting to this port and sending the SHUTDOWN command, all applications within Tomcat are halted. The shutdown port is not exposed to the network as it is bound to the loopback interface. Set the shutdown attribute in $CATALINA_BASE/conf/server.xml.

Check

From the Tomcat server run the following OS command:

$ sudo grep -i shutdown $CATALINA_BASE/conf/server.xml

Ensure the server shutdown port attribute in $CATALINA_BASE/conf/server.xml is set to -1.

EXAMPLE: <Server port="-1" shutdown="SHUTDOWN">

If Server port not = "-1" shutdown="SHUTDOWN", this is a finding.

Fix

From the Tomcat server as a privileged user, edit the $CATALINA_BASE/conf/server.xml file: set the Server port setting to -1 and restart the Tomcat server.

<Server port="-1" shutdown="SHUTDOWN">

sudo systemctl restart tomcat
sudo systemctl daemon-reload

Identifiers

Group ID
V-222951
Group title
SRG-APP-000141-AS-000095
Rule ID
SV-222951r1264541_rule
Check ID
C-24623r426297_chk
Fix ID
F-24612r426298_fix