Vulnerability record · CVE-2020-1938 · published 24 February 2020
CVE-2020-1938: Apache Tomcat AJP connector file read and JSP execution flaw
Apache · Geode
Apache Tomcat shipped an AJP Connector enabled by default that listened on all configured IP addresses, and Tomcat treats AJP connections as more trusted than HTTP. This trust gap lets an attacker who can reach the AJP port return arbitrary files from the web application and process any file in the web application as a JSP. Where file upload exists or the attacker can otherwise control web application content, this escalates to remote code execution.
Description
When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Tomcat treats AJP connections as having higher trust than, for example, a similar HTTP connection. If such connections are available to an attacker, they can be exploited in ways that may be surprising. In Apache Tomcat 9.0.0.M1 to 9.0.0.30, 8.5.0 to 8.5.50 and 7.0.0 to 7.0.99, Tomcat shipped with an AJP Connector enabled by default that listened on all configured IP addresses. It was expected (and recommended in the security guide) that this Connector would be disabled if not required. This vulnerability report identified a mechanism that allowed: - returning arbitrary files from anywhere in the web application - processing any file in the web application as a JSP Further, if the web application allowed file upload and stored those files within the web application (or the attacker was able to control the content of the web application by some other means) then this, along with the ability to process a file as a JSP, made remote code execution possible. It is important to note that mitigation is only required if an AJP port is accessible to untrusted users. Users wishing to take a defence-in-depth approach and block the vector that permits returning arbitrary files and execution as JSP may upgrade to Apache Tomcat 9.0.31, 8.5.51 or 7.0.100 or later. A number of changes were made to the default AJP Connector configuration in 9.0.31 to harden the default configuration. It is likely that users upgrading to 9.0.31, 8.5.51 or 7.0.100 or later will need to make small changes to their configurations.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8, CISA KEV listing and an EPSS probability near 1.0 with no authentication or user interaction required make this an urgent patch-first item wherever the AJP port is exposed.
What it is
Apache Tomcat shipped an AJP Connector enabled by default that listened on all configured IP addresses, and Tomcat treats AJP connections as more trusted than HTTP. This trust gap lets an attacker who can reach the AJP port return arbitrary files from the web application and process any file in the web application as a JSP. Where file upload exists or the attacker can otherwise control web application content, this escalates to remote code execution.
Impact
An attacker gains read access to arbitrary files within the web application and can execute files as JSP, leading to remote code execution in common deployment scenarios. The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N with high confidentiality, integrity and availability impact reflects full compromise potential.
Attack surface
Reached over the network via the AJP port, which was enabled by default and bound to all configured IP addresses in affected versions. No authentication or user interaction is required per the CVSS vector; exploitation only matters if the AJP port is reachable by untrusted users.
Exploitation
Listed in CISA KEV since 2022-03-03 with a required action to apply vendor updates, and EPSS shows a 30-day probability of 0.9927 (percentile 0.99936), indicating very high likelihood of exploitation activity. No ransomware campaign use is documented in the record.
What to do
- Upgrade to Apache Tomcat 9.0.31, 8.5.51, 7.0.100 or later, which hardens the default AJP Connector configuration.
- If AJP is not required, disable the AJP Connector entirely.
- If AJP is required, bind it to localhost or a trusted interface and require a strong secret, and block the AJP port from untrusted networks at the firewall.
- Review and adjust configuration after upgrading, since the changed AJP defaults may require small configuration edits.
- Apply vendor updates for downstream products listed as affected (Oracle, Debian, openSUSE, Fedora, NetApp, BlackBerry).
Detection
- Monitor network traffic to AJP ports (default 8009) from untrusted sources and alert on any external reachability.
- Inspect AJP request logs and Tomcat access logs for anomalous requests referencing files outside expected web application paths or JSP processing of uploaded content.
- Audit Tomcat server.xml for AJP Connector entries that are enabled and bound to non-loopback addresses.
- Watch for unexpected file reads or new JSP execution in web application directories that correlate with AJP traffic.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2020-1938 to the Known Exploited Vulnerabilities catalog on 3 March 2022 as "Apache Tomcat Improper Privilege Management Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 17 March 2022.
Affected products
21 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2020-1938 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2020-1938), CISA KEV, FIRST EPSS (scores of 2026-09-22). This page is refreshed as NVD updates the record.