CVE-2020-1938When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Tomcat treats AJP…
- 9.8CriticalCVSS base score
- 99.3%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 3 Mar 2022
- 4Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Apache Tomcat Improper Privilege Management Vulnerability.
- Added
- 3 Mar 2022
- Fix due (US federal)
- 17 Mar 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 3 Mar 2022.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and 2 Exploit-DB entries for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits4
Metasploit modules1 module
- Apache Tomcat AJP File Read (Metasploit module) (opens in a new tab)
auxiliary/admin/http/tomcat_ghostcatRank normaldisclosed 20 Feb 2020
Nuclei templates1 template
- Ghostcat - Apache Tomcat - AJP File Read/Inclusion Vulnerability (Nuclei template) (opens in a new tab)
network/cves/2020/CVE-2020-1938.yamlSeverity critical
Exploit-DB2 entries
- Apache Tomcat - AJP 'Ghostcat' File Read/Inclusion (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 49039webapps, multiplepublished 13 Nov 2020Verified
- Apache Tomcat - AJP 'Ghostcat File Read/Inclusion (Exploit-DB entry) (opens in a new tab)
EDB-ID 48143webapps, multiplepublished 20 Feb 2020Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By apache
- 3 months later
· 3 months later
Published
- 2 years later
· 2 years later
Added to CISA KEV
Known exploited in the wild
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.3% · top 0.1% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
- affected Apache Tomcat 9.0.0.M1 to 9.0.0.30
- affected 8.5.0 to 8.5.50
- affected 7.0.0 to 7.0.99
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.tomcat.embed:tomcat-embed-coreGHSA-c9hw-wf7x-jp9j (opens in a new tab)
References
References52
- [tomcat-announce] 20200224 [SECURITY] CVE-2020-1938 AJP Request Injection and potential Remote Code Execution (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20200225 [jira] [Commented] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20200225 [jira] [Updated] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-commits] 20200227 [ofbiz-plugins] branch release17.12 updated: Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) (OFBIZ-11407) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20200227 [jira] [Commented] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20200228 [jira] [Commented] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20200228 [jira] [Comment Edited] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200301 Re: [SECURITY] CVE-2020-1938 AJP Request Injection and potential Remote Code Execution (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200302 Re: AW: [SECURITY] CVE-2020-1938 AJP Request Injection and potentialRemote Code Execution (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200302 AW: [SECURITY] CVE-2020-1938 AJP Request Injection and potentialRemote Code Execution (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200302 Re: [SECURITY] CVE-2020-1938 AJP Request Injection and potential Remote Code Execution (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200304 Re: Fix for CVE-2020-1938 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20200304 Re: Tagging 10.0.x, 9.0.x, 8.5.x (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [debian-lts-announce] 20200304 [SECURITY] [DLA 2133-1] tomcat7 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200305 Aw: Re: Fix for CVE-2020-1938 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200305 Re: Aw: Re: Fix for CVE-2020-1938 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20200309 [Bug 64206] Answer file not being used (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200309 Re: Apache Tomcat AJP File Inclusion Vulnerability (unauthenticated check) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200310 Aw: Re: Re: Fix for CVE-2020-1938 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20200310 Re: Re: Re: Fix for CVE-2020-1938 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomee-dev] 20200311 CVE-2020-1938 on Tomcat 9.0.30 / TomEE 8.0.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomee-dev] 20200311 Re: CVE-2020-1938 on Tomcat 9.0.30 / TomEE 8.0.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- openSUSE-SU-2020:0345 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- [tomee-dev] 20200316 RE: CVE-2020-8840 on TomEE 8.0.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [httpd-bugs] 20200319 [Bug 53098] mod_proxy_ajp: patch to set worker secret passed to tomcat (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- GLSA-202003-43 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- [tomee-commits] 20200320 [jira] [Updated] (TOMEE-2789) TomEE plus(7.0.7) is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomee-commits] 20200320 [jira] [Created] (TOMEE-2789) TomEE plus is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomee-commits] 20200323 [jira] [Commented] (TOMEE-2789) TomEE plus(7.0.7) is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- FEDORA-2020-0e42878ba7 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2020-c870aa8378 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2020-04ac174fa9 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- [tomcat-users] 20200413 RE: Alternatives for AJP (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- openSUSE-SU-2020:0597 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- DSA-4673 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- DSA-4680 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- [debian-lts-announce] 20200528 [SECURITY] [DLA 2209-1] tomcat8 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20200625 svn commit: r1879208 - in /tomcat/site/trunk: docs/security-10.html docs/security-8.html docs/security-9.html xdocs/security-10.xml xdocs/security-8.xml xdocs/security-9.xml (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20200628 [jira] [Updated] (OFBIZ-11847) CLONE - Upgrade Tomcat from 9.0.34 to 9.0.36 (CVE-2020-11996) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ofbiz-notifications] 20200628 [jira] [Created] (OFBIZ-11847) CLONE - Upgrade Tomcat from 9.0.34 to 9.0.36 (CVE-2020-11996) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com/security-alerts/cpujul2020.html (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20200226-0002/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://support.blackberry.com/kb/articleDetail?articleNumber=000062739 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [tomee-users] 20200723 Re: TomEE on Docker (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [geode-issues] 20200831 [jira] [Created] (GEODE-8471) Dependency security issues in geode-core-1.12 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com/security-alerts/cpuoct2020.html (opens in a new tab)x_refsource_MISCx_transferred
- [tomee-commits] 20201127 [jira] [Resolved] (TOMEE-2789) TomEE plus(7.0.7) is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomee-commits] 20201127 [jira] [Updated] (TOMEE-2789) TomEE plus(7.0.7) is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com/security-alerts/cpujan2021.html (opens in a new tab)x_refsource_MISCx_transferred
- [announce] 20210125 Apache Software Foundation Security Report: 2020 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [announce] 20210223 Re: Apache Software Foundation Security Report: 2020 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-1938 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2020-0481 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-c9hw-wf7x-jp9j (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-1938)Record last updated .