CVE-2020-1938
Confirmed PUBLISHEDWhen using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Tomcat treats AJP connections...
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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.
- CVE Published
- Feb 24, 2020
- Exploitation Reported
- Mar 03, 2022
- CVSS
- 9.8 Critical
- EPSS
- —
Affected Versions
| Vendor | Product | Version | Status |
|---|---|---|---|
| Apache |
Apache Tomcat
|
Apache Tomcat 9.0.0.M1 to 9.0.0.30 |
Affected |
| Apache |
Apache Tomcat
|
8.5.0 to 8.5.50 |
Affected |
| Apache |
Apache Tomcat
|
7.0.0 to 7.0.99 |
Affected |
CVE References
- openSUSE-SU-2020:0345 lists.opensuse.org · Vendor Advisory http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00025...
- GLSA-202003-43 security.gentoo.org · Vendor Advisory https://security.gentoo.org/glsa/202003-43
- FEDORA-2020-0e42878ba7 lists.fedoraproject.org · Vendor Advisory https://lists.fedoraproject.org/archives/list/package-announce%40list...
- FEDORA-2020-c870aa8378 lists.fedoraproject.org · Vendor Advisory https://lists.fedoraproject.org/archives/list/package-announce%40list...
- FEDORA-2020-04ac174fa9 lists.fedoraproject.org · Vendor Advisory https://lists.fedoraproject.org/archives/list/package-announce%40list...
Show 46 more references
- openSUSE-SU-2020:0597 lists.opensuse.org · Vendor Advisory http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00002...
- DSA-4673 debian.org · Vendor Advisory https://www.debian.org/security/2020/dsa-4673
- DSA-4680 debian.org · Vendor Advisory https://www.debian.org/security/2020/dsa-4680
- [tomcat-announce] 20200224 [SECURITY] CVE-2020-1938 AJP Request Injection and potential Remote Code Execution lists.apache.org · Mailing List https://lists.apache.org/thread.html/r7c6f492fbd39af34a68681dbbba0468...
- [ofbiz-notifications] 20200225 [jira] [Commented] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) lists.apache.org · Mailing List https://lists.apache.org/thread.html/r856cdd87eda7af40b50278d6de80ee4...
- [ofbiz-notifications] 20200225 [jira] [Updated] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) lists.apache.org · Mailing List https://lists.apache.org/thread.html/r75113652e46c4dee687236510649acf...
- [ofbiz-commits] 20200227 [ofbiz-plugins] branch release17.12 updated: Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) (OFBIZ-11407) lists.apache.org · Mailing List https://lists.apache.org/thread.html/rd0774c95699d5aeb5e16e9a600fb2ea...
- [ofbiz-notifications] 20200227 [jira] [Commented] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) lists.apache.org · Mailing List https://lists.apache.org/thread.html/r74328b178f9f37fe759dffbc9c1f279...
- [ofbiz-notifications] 20200228 [jira] [Commented] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) lists.apache.org · Mailing List https://lists.apache.org/thread.html/rce2af55f6e144ffcdc025f997eddceb...
- [ofbiz-notifications] 20200228 [jira] [Comment Edited] (OFBIZ-11407) Upgrade Tomcat from 9.0.29 to 9.0.31 (CVE-2020-1938) lists.apache.org · Mailing List https://lists.apache.org/thread.html/rad36ec6a1ffc9e43266b030c22ceeea...
- [tomcat-users] 20200301 Re: [SECURITY] CVE-2020-1938 AJP Request Injection and potential Remote Code Execution lists.apache.org · Mailing List https://lists.apache.org/thread.html/rb2fc890bef23cbc7f343900005fe1ed...
- [tomcat-users] 20200302 Re: AW: [SECURITY] CVE-2020-1938 AJP Request Injection and potentialRemote Code Execution lists.apache.org · Mailing List https://lists.apache.org/thread.html/r38a5b7943b9a62ecb853acc22ef08ff...
- [tomcat-users] 20200302 AW: [SECURITY] CVE-2020-1938 AJP Request Injection and potentialRemote Code Execution lists.apache.org · Mailing List https://lists.apache.org/thread.html/r17aaa3a05b5b7fe9075613dd0c681ef...
- [tomcat-users] 20200302 Re: [SECURITY] CVE-2020-1938 AJP Request Injection and potential Remote Code Execution lists.apache.org · Mailing List https://lists.apache.org/thread.html/rd50baccd1bbb96c2327d5a8caa25a49...
- [tomcat-users] 20200304 Re: Fix for CVE-2020-1938 lists.apache.org · Mailing List https://lists.apache.org/thread.html/r4afa11e0464408e68f0e9560e90b185...
- [tomcat-dev] 20200304 Re: Tagging 10.0.x, 9.0.x, 8.5.x lists.apache.org · Mailing List https://lists.apache.org/thread.html/r772335e6851ad33ddb076218fa4ff70...
- [debian-lts-announce] 20200304 [SECURITY] [DLA 2133-1] tomcat7 security update lists.debian.org · Mailing List https://lists.debian.org/debian-lts-announce/2020/03/msg00006.html
- [tomcat-users] 20200305 Aw: Re: Fix for CVE-2020-1938 lists.apache.org · Mailing List https://lists.apache.org/thread.html/re5eecbe5bf967439bafeeaa85987b3a...
- [tomcat-users] 20200305 Re: Aw: Re: Fix for CVE-2020-1938 lists.apache.org · Mailing List https://lists.apache.org/thread.html/r5e2f1201b92ee05a0527cfc076a81ea...
- [tomcat-dev] 20200309 [Bug 64206] Answer file not being used lists.apache.org · Mailing List https://lists.apache.org/thread.html/r549b43509e387a42656f0641fa311bf...
- [tomcat-users] 20200309 Re: Apache Tomcat AJP File Inclusion Vulnerability (unauthenticated check) lists.apache.org · Mailing List https://lists.apache.org/thread.html/r61f280a76902b594692f0b24a1dbf64...
- [tomcat-users] 20200310 Aw: Re: Re: Fix for CVE-2020-1938 lists.apache.org · Mailing List https://lists.apache.org/thread.html/r4f86cb260196e5cfcbbe782822c225d...
- [tomcat-users] 20200310 Re: Re: Re: Fix for CVE-2020-1938 lists.apache.org · Mailing List https://lists.apache.org/thread.html/r9f119d9ce9239114022e13dbfe385b3...
- [tomee-dev] 20200311 CVE-2020-1938 on Tomcat 9.0.30 / TomEE 8.0.1 lists.apache.org · Mailing List https://lists.apache.org/thread.html/r089dc67c0358a1556dd279c762c74f3...
- [tomee-dev] 20200311 Re: CVE-2020-1938 on Tomcat 9.0.30 / TomEE 8.0.1 lists.apache.org · Mailing List https://lists.apache.org/thread.html/rbdb1d2b651a3728f0ceba9e0853575b...
- [tomee-dev] 20200316 RE: CVE-2020-8840 on TomEE 8.0.1 lists.apache.org · Mailing List https://lists.apache.org/thread.html/rc068e824654c4b8bd4f2490bec869e2...
- [httpd-bugs] 20200319 [Bug 53098] mod_proxy_ajp: patch to set worker secret passed to tomcat lists.apache.org · Mailing List https://lists.apache.org/thread.html/rf26663f42e7f1a1d1cac732469fb5e9...
- [tomee-commits] 20200320 [jira] [Updated] (TOMEE-2789) TomEE plus(7.0.7) is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. lists.apache.org · Mailing List https://lists.apache.org/thread.html/rcd5cd301e9e7e39f939baf2f5d58704...
- [tomee-commits] 20200320 [jira] [Created] (TOMEE-2789) TomEE plus is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. lists.apache.org · Mailing List https://lists.apache.org/thread.html/rf992c5adf376294af31378a70aa8a15...
- [tomee-commits] 20200323 [jira] [Commented] (TOMEE-2789) TomEE plus(7.0.7) is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. lists.apache.org · Mailing List https://lists.apache.org/thread.html/r6a5633cad1b560a1e51f5b425f02918...
- [tomcat-users] 20200413 RE: Alternatives for AJP lists.apache.org · Mailing List https://lists.apache.org/thread.html/r43faacf64570b1d9a4bada407a5af3b...
- [debian-lts-announce] 20200528 [SECURITY] [DLA 2209-1] tomcat8 security update lists.debian.org · Mailing List https://lists.debian.org/debian-lts-announce/2020/05/msg00026.html
- [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 lists.apache.org · Mailing List https://lists.apache.org/thread.html/rb1c0fb105ce2b93b7ec6fc1b77dd208...
- [ofbiz-notifications] 20200628 [jira] [Updated] (OFBIZ-11847) CLONE - Upgrade Tomcat from 9.0.34 to 9.0.36 (CVE-2020-11996) lists.apache.org · Mailing List https://lists.apache.org/thread.html/ra7092f7492569b39b04ec0decf52628...
- [ofbiz-notifications] 20200628 [jira] [Created] (OFBIZ-11847) CLONE - Upgrade Tomcat from 9.0.34 to 9.0.36 (CVE-2020-11996) lists.apache.org · Mailing List https://lists.apache.org/thread.html/r8f7484589454638af527182ae55ef5b...
- [tomee-users] 20200723 Re: TomEE on Docker lists.apache.org · Mailing List https://lists.apache.org/thread.html/r92d78655c068d0bc991d1edbdfb24f9...
- [geode-issues] 20200831 [jira] [Created] (GEODE-8471) Dependency security issues in geode-core-1.12 lists.apache.org · Mailing List https://lists.apache.org/thread.html/rf1bbc0ea4a9f014cf94df9a12a6477d...
- [tomee-commits] 20201127 [jira] [Resolved] (TOMEE-2789) TomEE plus(7.0.7) is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. lists.apache.org · Mailing List https://lists.apache.org/thread.html/r57f5e4ced436ace518a9e222fabe27f...
- [tomee-commits] 20201127 [jira] [Updated] (TOMEE-2789) TomEE plus(7.0.7) is affected by CVE-2020-1938(BDSA-2020-0339) vulnerability. lists.apache.org · Mailing List https://lists.apache.org/thread.html/r47caef01f663106c2bb81d116b8380d...
- [announce] 20210125 Apache Software Foundation Security Report: 2020 lists.apache.org · Mailing List https://lists.apache.org/thread.html/r90890afea72a9571d666820b2fe5942...
- [announce] 20210223 Re: Apache Software Foundation Security Report: 2020 lists.apache.org · Mailing List https://lists.apache.org/thread.html/r1125f3044a0946d1e7e6f125a6170b5...
- oracle.com/security-alerts/cpujul2020.html oracle.com · CVE Record https://www.oracle.com/security-alerts/cpujul2020.html
- security.netapp.com/advisory/ntap-20200226-0002 security.netapp.com · CVE Record https://security.netapp.com/advisory/ntap-20200226-0002/
- support.blackberry.com/kb/articleDetail support.blackberry.com · CVE Record http://support.blackberry.com/kb/articleDetail?articleNumber=000062739
- oracle.com/security-alerts/cpuoct2020.html oracle.com · CVE Record https://www.oracle.com/security-alerts/cpuoct2020.html
- oracle.com/security-alerts/cpujan2021.html oracle.com · CVE Record https://www.oracle.com/security-alerts/cpujan2021.html
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2022-03-03 00:00 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/network/cves/2020/CVE-2020-1938.yaml | Apr 25, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users.
CVSS Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
Exploitation Status
Exploited in the wild
Recorded 2022-03-03 00:00:00 UTC · CISA
Proof of concept available
Recorded 2020-02-20 17:00:02 UTC · GitHub
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/network/cves/2020/CVE-2020-1938.yaml | Apr 25, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2024-08-20 12:51:06 UTC · 0 stars
github · Created 2022-08-21 15:44:45 UTC · 3 stars
This is a modified version of the original GhostCat Exploit
github · Created 2021-07-11 14:38:21 UTC · 1 stars
Scanner for CVE-2020-1938
github · Created 2021-04-27 14:57:30 UTC · 1 stars
github · Created 2021-03-28 03:30:44 UTC · 15 stars
github · Created 2020-03-01 01:45:23 UTC · 6 stars
CVE-2020-1938(GhostCat) clean and readable code version
github · Created 2020-02-21 14:55:40 UTC · 15 stars
批量扫描TomcatAJP漏洞
github · Created 2020-02-21 09:56:19 UTC · 9 stars
github · Created 2020-02-21 07:48:50 UTC · 53 stars
Tomcat的文件包含及文件读取漏洞利用POC
github · Created 2020-02-21 04:34:40 UTC · 2 stars
github · Created 2020-02-20 17:00:02 UTC · 45 stars
nuclei · Created Unknown
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
00:00 UTC about 1 year ago00:00 UTC · about 1 year ago
Nuclei template available
Scanner coverage available
-
00:00 UTC over 4 years ago00:00 UTC · over 4 years ago
Added to CISA KEV
Listed in the CISA Known Exploited Vulnerabilities catalog
-
21:19 UTC over 6 years ago21:19 UTC · over 6 years ago
CVE published
Vulnerability disclosed publicly
-
17:00 UTC over 6 years ago17:00 UTC · over 6 years ago
Public PoC available
Public proof-of-concept code published
-
00:00 UTC over 6 years ago00:00 UTC · over 6 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2020-1938
{
"cve_id": "CVE-2020-1938",
"title": "When using the Apache JServ Protocol (AJP), care must be taken when trusting ...",
"affected_vendor": "Apache",
"affected_product": "Apache Tomcat",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "Confirmed",
"cvss_score": 9.8,
"epss_score": null,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}