CVE-2020-1938
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.
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Apache Tomcat Improper Privilege Management Vulnerability |
|---|---|
| Vendor / product | Apache / Tomcat |
| Date added | 2022-03-03 |
| Federal remediation due date | 2022-03-17 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-02-06 |
Timeline
- 2020-02-20First Exploit-DB entry (EDB-ID 48143)4 days before publication
- 2020-02-24Published by the CNA21:19 UTC
- 2020-06-15GitHub advisory published (GHSA-c9hw-wf7x-jp9j)112 days after publication
- 2022-03-03Added to the CISA KEV catalog738 days after publication
- 2025-02-06CISA SSVC decision recorded1809 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 49039 | webapps | multiple | 2020-11-13 | yes |
| EDB-ID 48143 | webapps | multiple | 2020-02-20 | no |
Nuclei templates:
- CVE-2020-1938: Ghostcat - Apache Tomcat - AJP File Read/Inclusion Vulnerability
GitHub advisory GHSA-c9hw-wf7x-jp9j, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.apache.tomcat.embed:tomcat-embed-core | from 7.0.0 before 7.0.100 | 7.0.100 |
| Maven org.apache.tomcat.embed:tomcat-embed-core | from 8.0.0 before 8.5.51 | 8.5.51 |
| Maven org.apache.tomcat.embed:tomcat-embed-core | from 9.0.0 before 9.0.31 | 9.0.31 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache tomcat | from 7.0.0 before 7.0.100fixed in 7.0.100from 8.5.0 before 8.5.51fixed in 8.5.51from 9.0.0 before 9.0.31fixed in 9.0.31 | 7.0.1008.5.519.0.31 |
| apache geode | 1.12.0no fix listed | not listed |
| blackberry good_control | through 5.2.58.38no fix listed | not listed |
| blackberry workspaces_server | 7.0.1no fix listed7.1.2no fix listed8.1.0no fix listed9.0no fix listed | not listednot listednot listednot listed |
| debian debian_linux | 10.0no fix listed8.0no fix listed9.0no fix listed | not listednot listednot listed |
| fedoraproject fedora | 30no fix listed31no fix listed32no fix listed | not listednot listednot listed |
| netapp data_availability_services | ||
| netapp oncommand_system_manager | from 3.0.0 through 3.1.3no fix listed | not listed |
| opensuse leap | 15.1no fix listed | not listed |
| oracle agile_engineering_data_management | 6.2.1.0no fix listed | not listed |
| oracle agile_product_lifecycle_management | 9.3.3no fix listed9.3.5no fix listed9.3.6no fix listed | not listednot listednot listed |
| oracle communications_element_manager | 8.1.1no fix listed8.2.0no fix listed8.2.1no fix listed | not listednot listednot listed |
| oracle communications_instant_messaging_server | 10.0.1.4.0no fix listed | not listed |
| oracle health_sciences_empirica_inspections | 1.0.1.2no fix listed | not listed |
| oracle health_sciences_empirica_signal | 7.3.3no fix listed | not listed |
| oracle hospitality_guest_access | 4.2.0no fix listed4.2.1no fix listed | not listednot listed |
| oracle instantis_enterprisetrack | from 17.1 through 17.3no fix listed | not listed |
| oracle mysql_enterprise_monitor | through 4.0.12no fix listedfrom 8.0.0 through 8.0.20no fix listed | not listednot listed |
| oracle siebel_ui_framework | through 20.5no fix listed | not listed |
| oracle transportation_management | 6.3.7no fix listed | not listed |
References
- https://lists.apache.org/thread.html/r9f119d9ce9239114022e13dbfe385b3de7c972f24f05d6dbd35c1a2f%40%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/rb1c0fb105ce2b93b7ec6fc1b77dd208022621a91c12d1f580813cfed%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/rd0774c95699d5aeb5e16e9a600fb2ea296e81175e30a62094e27e3e7%40%3Ccommits.ofbiz.apache.org%3E
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://www.oracle.com/security-alerts/cpuoct2020.html
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00025.html
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00002.html
- https://lists.apache.org/thread.html/r7c6f492fbd39af34a68681dbbba0468490ff1a97a1bd79c6a53610ef%40%3Cannounce.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r8f7484589454638af527182ae55ef5b628ba00c05c5b11887c922fb1%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/r90890afea72a9571d666820b2fe5942a0a5f86be406fa31da3dd0922%40%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/ra7092f7492569b39b04ec0decf52628ba86c51f15efb38f5853e2760%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/rf1bbc0ea4a9f014cf94df9a12a6477d24a27f52741dbc87f2fd52ff2%40%3Cissues.geode.apache.org%3E
- https://lists.apache.org/thread.html/rf992c5adf376294af31378a70aa8a158388a41d7039668821be28df3%40%3Ccommits.tomee.apache.org%3E
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2XFLQB3O5QVP4ZBIPVIXBEZV7F2R7ZMS/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K3IPNHCKFVUKSHDTM45UL4Q765EHHTFG/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L46WJIV6UV3FWA5O5YEY6XLA73RYD53B/
- https://security.gentoo.org/glsa/202003-43
- https://www.debian.org/security/2020/dsa-4673
- https://www.debian.org/security/2020/dsa-4680
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2020-1938'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2020-1938'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2020-1938'curl 'https://api.contrastcyber.com/cve_products/CVE-2020-1938'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2020-1938'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).