cve.bz

CVE-2020-1938 (Ghostcat) Apache Tomcat Improper Privilege Management Vulnerability

9.8 criticalKEVExploitEPSS 99.2%Fix available

Known as Ghostcat

Critical (9.8) in Apache Tomcat. In CISA KEV since 2022-03-03. EPSS 99.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat.embed:tomcat-embed-core 7.0.100, 8.5.51, 9.0.31.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
99.2% (unchanged from 99.2% a week ago; 99.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-03-03, due 2022-03-17
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2025-02-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-1938 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-1938?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-1938?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-1938 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:geode1.12.0
apache:tomcatfrom 7.0.0 before 7.0.100
apache:tomcatfrom 8.5.0 before 8.5.51
apache:tomcatfrom 9.0.0 before 9.0.31
fedoraproject:fedora30
fedoraproject:fedora31
fedoraproject:fedora32
oracle:agile_engineering_data_management6.2.1.0
oracle:agile_product_lifecycle_management9.3.3
oracle:agile_product_lifecycle_management9.3.5
oracle:agile_product_lifecycle_management9.3.6
oracle:communications_element_manager8.1.1
oracle:communications_element_manager8.2.0
oracle:communications_element_manager8.2.1
oracle:communications_instant_messaging_server10.0.1.4.0
oracle:health_sciences_empirica_inspections1.0.1.2
oracle:health_sciences_empirica_signal7.3.3
oracle:hospitality_guest_access4.2.0
oracle:hospitality_guest_access4.2.1
oracle:instantis_enterprisetrackfrom 17.1 through 17.3
oracle:mysql_enterprise_monitorthrough 4.0.12
oracle:mysql_enterprise_monitorfrom 8.0.0 through 8.0.20
oracle:siebel_ui_frameworkthrough 20.5
oracle:transportation_management6.3.7
oracle:workload_manager12.2.0.1
oracle:workload_manager18c
oracle:workload_manager19c
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
opensuse:leap15.1
blackberry:good_controlthrough 5.2.58.38
blackberry:workspaces_server7.0.1
blackberry:workspaces_server7.1.2
blackberry:workspaces_server8.1.0
blackberry:workspaces_server9.0
netapp:oncommand_system_managerfrom 3.0.0 through 3.1.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c9hw-wf7x-jp9jMavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.0 <9.0.319.0.31
GHSA-c9hw-wf7x-jp9jMavenorg.apache.tomcat.embed:tomcat-embed-core>=8.0.0 <8.5.518.5.51
GHSA-c9hw-wf7x-jp9jMavenorg.apache.tomcat.embed:tomcat-embed-core>=7.0.0 <7.0.1007.0.100

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8tomcat77.0.56-3+really7.0.100-1DLA-2133-1
Debian8tomcat88.0.14-1+deb8u17DLA-2209-1
Debian9tomcat88.5.54-0+deb9u1DSA-4673-1
Debian10tomcat99.0.31-1~deb10u1DSA-4680-1
Debian12, 13, 14tomcat99.0.31-1DEBIAN-CVE-2020-1938
UbuntuPro:14.04:LTStomcat7no fix listedUBUNTU-CVE-2020-1938
UbuntuPro:16.04:LTStomcat7, tomcat8no fix listedUBUNTU-CVE-2020-1938
UbuntuPro:18.04:LTStomcat7, tomcat8, tomcat9no fix listedUBUNTU-CVE-2020-1938
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moretomcat6, tomcat6-lib, tomcat6-javadoc and 6 more0:6.0.24-114.el6_10RHSA-2020:0912
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moretomcat, tomcat-lib, tomcat-jsvc and 7 more0:7.0.76-11.el7_7RHSA-2020:0855
Red Hatenterprise_linux:8::appstreamapache-commons-collections0:3.2.2-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hatenterprise_linux:8::appstreamapache-commons-lang0:2.6-21.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hatenterprise_linux:8::appstreamapache-commons-net0:3.6-3.module+el8.3.0+6805+72837426RHSA-2020:4847
Red Hatenterprise_linux:8::appstreambea-stax, bea-stax-api0:1.2.0-16.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hatenterprise_linux:8::appstreamglassfish-fastinfoset0:1.2.13-9.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hatenterprise_linux:8::appstreamglassfish-jaxb, glassfish-jaxb-core, glassfish-jaxb-txw2 and 1 more0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hatenterprise_linux:8::appstreamglassfish-jaxb-api0:2.2.12-8.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hatenterprise_linux:8::appstreamjackson-core, jackson-databind, jackson-annotations0:2.10.0-1.module+el8.2.0+5059+3eb3af25RHSA-2020:4847
Red Hatenterprise_linux:8::appstreamjackson-jaxrs-providers, jackson-jaxrs-json-provider0:2.9.9-1.module+el8.1.0+3832+9784644dRHSA-2020:4847
Red Hatenterprise_linux:8::appstreamjackson-module-jaxb-annotations0:2.7.6-4.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
65 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 moreapache22.4.23-29.54.1SUSE-SU-2020:1272-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 8 moretomcat8.0.53-29.22.1SUSE-SU-2020:0725-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Module for Server Applications 15 SP1 and 2 moreapache22.4.33-3.30.1SUSE-SU-2020:1126-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moretomcat9.0.31-3.42.2SUSE-SU-2020:0598-1
SUSELinux Enterprise Module for Web and Scripting 15 SP1tomcat9.0.31-4.22.1SUSE-SU-2020:0631-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSapache22.2.34-70.27.1SUSE-SU-2020:14342-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSStomcat66.0.53-0.57.13.1SUSE-SU-2020:14334-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1apache22.4.16-20.29.1SUSE-SU-2020:1111-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1tomcat8.0.53-10.38.1SUSE-SU-2020:0806-1
SUSELinux Enterprise Server 12 SP4, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 1 moretomcat9.0.31-3.25.1SUSE-SU-2020:0632-1
openSUSELeap 15.1apache22.4.33-lp151.8.12.1openSUSE-SU-2020:0597-1
openSUSELeap 15.1tomcat9.0.31-lp151.3.12.1openSUSE-SU-2020:0345-1
openSUSETumbleweedtomcat9.0.36-8.4openSUSE-SU-2024:11468-1
openSUSETumbleweedtomcat1010.1.14-1.1openSUSE-SU-2024:13441-1
Rocky Linux8apache-commons-collections0:3.2.2-10.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux8apache-commons-collections0:3.2.2-10.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux8apache-commons-lang0:2.6-21.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux8apache-commons-lang0:2.6-21.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux8apache-commons-net0:3.6-3.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux8apache-commons-net0:3.6-3.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux8bea-stax0:1.2.0-16.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux8glassfish-fastinfoset0:1.2.13-9.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux8glassfish-jaxb0:2.2.11-11.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux8glassfish-jaxb-api0:2.2.12-8.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux8jackson-core, jackson-databind, jackson-annotations0:2.10.0-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux8jackson-jaxrs-providers0:2.9.9-1.module+el8.3.0+53+ea062990RLSA-2020:4847
27 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Please refer to the Red Hat knowledgebase article: https://access.redhat.com/solutions/4851251 and CVE page https://access.redhat.com/security/cve/cve-2020-1745

Red Hat's mitigation

Please refer to the Red Hat knowledgebase article: https://access.redhat.com/solutions/4851251

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6tomcat6-0:6.0.24-114.el6_10Fixed 2020-03-23RHSA-2020:0912
Red Hat Enterprise Linux 7tomcat-0:7.0.76-11.el7_7Fixed 2020-03-17RHSA-2020:0855
Red Hat Enterprise Linux 7.6 Extended Update Supporttomcat-0:7.0.76-10.el7_6Fixed 2020-07-07RHSA-2020:2840
Red Hat Enterprise Linux 8pki-core:10.6-8030020200911215836.5ff1562fFixed 2020-11-04RHSA-2020:4847
Red Hat Enterprise Linux 8pki-deps:10.6-8030020200527165326.30b713e6Fixed 2020-11-04RHSA-2020:4847
Red Hat Fuse 7.9tomcatFixed 2021-08-11RHSA-2021:3140
Red Hat JBoss Enterprise Application Platform 6.4jbosswebFixed 2020-04-14RHSA-2020:1479
Red Hat JBoss Enterprise Application Platform 6.4jbosswebFixed 2020-07-01RHSA-2020:2783
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jbossweb-0:7.5.30-2.Final_redhat_2.1.ep6.el5Fixed 2020-04-14RHSA-2020:1478
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5glassfish-jsf12-eap6-0:1.2.15-11.b01_SP2_redhat_2.1.ep6.el5Fixed 2020-07-01RHSA-2020:2781
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5hornetq-0:2.3.25-29.SP31_redhat_00001.1.ep6.el5Fixed 2020-07-01RHSA-2020:2781
Red Hat Decision Manager 7tomcatNot affected
Red Hat Enterprise Linux 5tomcat5Out of support scope
Red Hat JBoss Data Grid 6jbosswebOut of support scope
Red Hat JBoss Data Virtualization 6jbosswebNot affected
Red Hat JBoss Fuse 6tomcatNot affected
Red Hat OpenStack Platform 10 (Newton)opendaylightAffected
Red Hat OpenStack Platform 13 (Queens)opendaylightWill not fix
Red Hat Process Automation 7tomcatNot affected
Red Hat Software Collectionsrh-java-common-tomcatNot affected
225 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-1938.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSMA-21-187-01Philips Vue PACS (Update B)2021-07-06Healthcare and Public HealthVue PACS: Versions 12.2.x.x and prior, Vue Motion: Versions 12.2.1.5 and prior, Vue MyVue: Versions 12.2.x.x and prior and 1 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • With-fate/CVE-2020-1938 Harbor Check: matches CVE 1 star, Python, created
    Apache Tomcat(CVE-2020-1938)漏洞验证脚本
  • Mohammad-Anon/CVE-2020-1938 Harbor Check: matches CVE 0 stars, Python, created
    Aapache Tomcat AJP Arbitrary File Read / Include Vulnerability
  • CyberCTF/vulhub-tomcat-cve-2020-1938 Harbor Check: matches CVE 0 stars, Python, created
    Vulhub tomcat/CVE-2020-1938: Apache Tomcat AJP Ghostcat (CVE-2020-1938), run with Isoloom
  • duckpigdog/Tomcat-AJP-CVE-2020-1938 Harbor Check: matches CVE 0 stars, Python, created
    Tomcat AJP文件读取/包含漏洞
  • abrewer251/CVE-2020-1938_Ghostcat-PoC Harbor Check: matches CVE 0 stars, Python, created
    Apache Tomcat AJP Ghostcat (CVE-2020-1938) exploit tool for file disclosure with multi-target scanning, custom wordlists, and upload point …
1 more

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

References

Check your stackJSON