ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

'TCAT-AS-000950 - Tomcat server version must not be sent with warnings and errors.' (Vuln ID: V-222978)


Article ID: 224409


Updated On:


CA Spectrum


A first order of attack is to identify vulnerable servers and services. Removing version information that would otherwise be provided when a client requests version data or receives an error message can limit automated attack attempts.

Remove or replace the version string from HTTP error messages by repacking $CATALINA_HOME/server/lib/catalina.jar with an updated file. This will modify the server information that is provided in error and warning responses.



Release : 21.2



This will be resolved in a future version of DX Netops Spectrum (TBD)

Meanwhile, the following steps can be done manually to mitigate:

From the Tomcat server, cd to the $CATALINA_HOME/lib folder. As a privileged user run the following case sensitive command:

sudo jar -xf catalina.jar org/apache/catalina/util/

Edit the file.
sudo nano org/apache/catalina/util/

Change and server.number to read:<Enter Some Random Name or Value>
server.number=<Enter Some Random number>

EXAMPLE:""Standard Server""

Save the file.

Run the following command to update the catalina.jar file:
sudo jar -uf catalina.jar org/apache/catalina/util/

Restart the Tomcat server:
sudo systemctl restart tomcat
sudo rm -rf $CATALINA_HOME/lib/org"


On Windows we suggest using 7-Zip to do the above.

1. Stop Tomcat Service

2. Open the above JAR file.

3. Navigate to org/apache/catalina/util/

4. Edit file - make values anything

5. Save file.

6. Click "yes" to update the JAR when prompted by 7-Zip.

7. Start Tomcat