

The first option, disabling AJP, is the most secure and robust recommended solution. Use only network binding and firewall configuration to ensure incoming connections are only allowed from trusted hosts.Protect the AJP connection with a secret, as well as carefully reviewing network binding and firewall configuration to ensure incoming connections are only allowed from trusted hosts.HTTP and HTTPS do not contain the same trust issues as AJP. Disable AJP altogether in Tomcat, and instead use HTTP or HTTPS for incoming proxy connections.In order of preference, one of the following mitigations should be applied: The preventive measures should be taken by using the configuration that will not allow AJP to be exposed. It is insecure (clear text transmission) and assumes that your network is safe. AJP is a highly trusted protocol and should never be exposed to untrusted clients. This is a configuration issue with AJP protocol in Tomcat/Undertow. In instances where a poorly configured server allows file uploads, an attacker could upload malicious JavaServer Pages (JSP) code within a variety of file types to gain remote code execution (RCE).ĬVE-2020-1745 is a file read/inclusion using the AJP connector in Undertow and very similar to CVE-2020-1938. A remote, unauthenticated/untrusted attacker could exploit this AJP configuration to read web application files from a server exposing the AJP port to untrusted clients. The AJP protocol is enabled by default, with the AJP connector listening in TCP port 8009 and bond to IP address 0.0.0.0. 8.x (as pki-servlet-container, pki-servlet-engine in pki-deps module)ĬVE-2020-1938 is a file read/inclusion using the AJP connector in Apache Tomcat.Red Hat JBoss Enterprise Application Platform (EAP).ServletContext.log(.) output is configurable using property. The main script to start Tomcat is $ %-1.1p %m %n.


For a single installation, CATALINA_BASE is the same as CATALINA_HOME. Optionally, Tomcat may be configured for multiple instances by defining CATALINA_BASE for each instance. The root directory is known as CATALINA_HOME. Make sure to install the right version depending on the Tomcat version you want to run (see table above). To run Tomcat, you have to first install a Java Runtime Environment (JRE). Servlet 2.5 / JSP 2.1 / EL 2.1 / Java 5 and later Servlet 3.0 / JSP 2.2 / EL 2.2 / WebSocket 1.1 / Java 6 and later (WebSocket requires Java 7) Servlet 3.1 / JSP 2.3 / EL 3.0 / WebSocket 1.1 / Java 7 and later Go to and in the Download section choose the Tomcat version that fits your requirements and package file depending on your OS. The quickest way to run Tomcat is to download and run a compiled version.
