CVEfocus › CVE database › CVE-2020-1938

CVE-2020-1938

Known exploited (CISA KEV)CVSS 9.8 CriticalEPSS 99.3% (in the top 1% of all CVEs)Published 2020-02-24Updated 2025-10-21Assigner: apache

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.

What to do

This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2022-03-03). If you run an affected version, patch or mitigate now.

Fixed builds are available from Debian, Maven, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

102Fixed
4Fix pending
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04tomcat7Fix pendingUBUNTU-CVE-2020-1938
Ubuntu 18.04tomcat8Fix pendingUBUNTU-CVE-2020-1938
Ubuntu 18.04tomcat9Fix pendingUBUNTU-CVE-2020-1938
Ubuntu 16.04tomcat7Will not fix
In Ubuntu packages, the AJP connector is disabled by default, so unless specifically enabled by an admin, deployments made using the package are not…
UBUNTU-CVE-2020-1938
Ubuntu 16.04tomcat8Will not fix
In Ubuntu packages, the AJP connector is disabled by default, so unless specifically enabled by an admin, deployments made using the package are not…
UBUNTU-CVE-2020-1938
Ubuntu 14.04tomcat7Fix pendingUBUNTU-CVE-2020-1938
Debian 14tomcat9Fixed9.0.31-1DEBIAN-CVE-2020-1938
Debian 13tomcat9Fixed9.0.31-1DEBIAN-CVE-2020-1938
Debian 12tomcat9Fixed9.0.31-1DEBIAN-CVE-2020-1938
Red Hat Enterprise Linux 8apache-commons-collectionsFixed0:3.2.2-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8apache-commons-langFixed0:2.6-21.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8apache-commons-netFixed0:3.6-3.module+el8.3.0+6805+72837426RHSA-2020:4847
Red Hat Enterprise Linux 8bea-staxFixed0:1.2.0-16.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8bea-stax-apiFixed0:1.2.0-16.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-fastinfosetFixed0:1.2.13-9.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxbFixed0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxb-apiFixed0:2.2.12-8.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxb-coreFixed0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxb-runtimeFixed0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxb-txw2Fixed0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8jackson-annotationsFixed0:2.10.0-1.module+el8.2.0+5059+3eb3af25RHSA-2020:4847
Red Hat Enterprise Linux 8jackson-coreFixed0:2.10.0-1.module+el8.2.0+5059+3eb3af25RHSA-2020:4847
Red Hat Enterprise Linux 8jackson-databindFixed0:2.10.0-1.module+el8.2.0+5059+3eb3af25RHSA-2020:4847
Red Hat Enterprise Linux 8jackson-jaxrs-json-providerFixed0:2.9.9-1.module+el8.1.0+3832+9784644dRHSA-2020:4847
Red Hat Enterprise Linux 8jackson-jaxrs-providersFixed0:2.9.9-1.module+el8.1.0+3832+9784644dRHSA-2020:4847
Red Hat Enterprise Linux 8jackson-module-jaxb-annotationsFixed0:2.7.6-4.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8jakarta-commons-httpclientFixed1:3.1-28.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8javassistFixed0:3.18.1-8.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8javassist-javadocFixed0:3.18.1-8.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8jssFixed0:4.7.3-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8jss-javadocFixed0:4.7.3-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8ldapjdkFixed0:4.22.0-1.module+el8.3.0+6784+6e1e4c62RHSA-2020:4847
Red Hat Enterprise Linux 8ldapjdk-javadocFixed0:4.22.0-1.module+el8.3.0+6784+6e1e4c62RHSA-2020:4847
Red Hat Enterprise Linux 8pki-baseFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-base-javaFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-caFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-coreFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-kraFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-serverFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-servlet-4.0-apiFixed1:9.0.30-1.module+el8.3.0+6730+8f9c6254RHSA-2020:4847
Red Hat Enterprise Linux 8pki-servlet-engineFixed1:9.0.30-1.module+el8.3.0+6730+8f9c6254RHSA-2020:4847
Red Hat Enterprise Linux 8pki-symkeyFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-toolsFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8python-nssFixed0:1.0.1-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8python-nss-docFixed0:1.0.1-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8python3-nssFixed0:1.0.1-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8python3-pkiFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8relaxngDatatypeFixed0:2011.1-7.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8resteasyFixed0:3.0.26-3.module+el8.2.0+5723+4574fbffRHSA-2020:4847
Red Hat Enterprise Linux 8slf4jFixed0:1.7.25-4.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8slf4j-jdk14Fixed0:1.7.25-4.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8stax-exFixed0:1.7.7-8.module+el8.2.0+5723+4574fbffRHSA-2020:4847
Red Hat Enterprise Linux 8tomcatjssFixed0:7.5.0-1.module+el8.3.0+7355+c59bcbd9RHSA-2020:4847
Red Hat Enterprise Linux 8velocityFixed0:1.7-24.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xalan-j2Fixed0:2.7.1-38.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xerces-j2Fixed0:2.11.0-34.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xml-commons-apisFixed0:1.4.01-25.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xml-commons-resolverFixed0:1.2-26.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xmlstreambufferFixed0:1.5.4-8.module+el8.2.0+5723+4574fbffRHSA-2020:4847
Red Hat Enterprise Linux 8xsomFixed0:0-19.20110809svn.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 7tomcatFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-admin-webappsFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-docs-webappFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-el-2.2-apiFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-javadocFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-jsp-2.2-apiFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-jsvcFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-libFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-servlet-3.0-apiFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 7tomcat-webappsFixed0:7.0.76-11.el7_7RHSA-2020:0855
Red Hat Enterprise Linux 6tomcat6Fixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 6tomcat6-admin-webappsFixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 6tomcat6-docs-webappFixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 6tomcat6-el-2.1-apiFixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 6tomcat6-javadocFixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 6tomcat6-jsp-2.1-apiFixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 6tomcat6-libFixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 6tomcat6-servlet-2.5-apiFixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 6tomcat6-webappsFixed0:6.0.24-114.el6_10RHSA-2020:0912
Red Hat Enterprise Linux 5tomcat5Will not fix
Out of support scope
Rocky Linux 8apache-commons-collectionsFixed0:3.2.2-10.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8apache-commons-langFixed0:2.6-21.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8apache-commons-netFixed0:3.6-3.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8bea-staxFixed0:1.2.0-16.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8glassfish-fastinfosetFixed0:1.2.13-9.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8glassfish-jaxbFixed0:2.2.11-11.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8glassfish-jaxb-apiFixed0:2.2.12-8.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-annotationsFixed0:2.10.0-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-coreFixed0:2.10.0-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-databindFixed0:2.10.0-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-jaxrs-providersFixed0:2.9.9-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-module-jaxb-annotationsFixed0:2.7.6-4.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jakarta-commons-httpclientFixed1:3.1-28.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8javassistFixed0:3.18.1-8.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8ldapjdkFixed0:4.22.0-1.module+el8.4.0+418+b7ae1d4aRLSA-2020:4847
Rocky Linux 8pki-servlet-engineFixed1:9.0.30-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8python-nssFixed0:1.0.1-10.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8relaxngDatatypeFixed0:2011.1-7.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8resteasyFixed0:3.0.26-3.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8slf4jFixed0:1.7.25-4.module+el8.3.0+133+b8b54b58RLSA-2020:4847
Rocky Linux 8stax-exFixed0:1.7.7-8.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8velocityFixed0:1.7-24.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xalan-j2Fixed0:2.7.1-38.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xerces-j2Fixed0:2.11.0-34.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xml-commons-apisFixed0:1.4.01-25.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xml-commons-resolverFixed0:1.2-26.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xmlstreambufferFixed0:1.5.4-8.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xsomFixed0:0-19.20110809svn.module+el8.3.0+53+ea062990RLSA-2020:4847
Maven libraryorg.apache.tomcat.embed:tomcat-embed-coreFixed8.5.51GHSA-c9hw-wf7x-jp9j

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.