CVE-2020-1938
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | tomcat7 | Fix pending | UBUNTU-CVE-2020-1938 | |
| Ubuntu 18.04 | tomcat8 | Fix pending | UBUNTU-CVE-2020-1938 | |
| Ubuntu 18.04 | tomcat9 | Fix pending | UBUNTU-CVE-2020-1938 | |
| Ubuntu 16.04 | tomcat7 | Will 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.04 | tomcat8 | Will 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.04 | tomcat7 | Fix pending | UBUNTU-CVE-2020-1938 | |
| Debian 14 | tomcat9 | Fixed | 9.0.31-1 | DEBIAN-CVE-2020-1938 |
| Debian 13 | tomcat9 | Fixed | 9.0.31-1 | DEBIAN-CVE-2020-1938 |
| Debian 12 | tomcat9 | Fixed | 9.0.31-1 | DEBIAN-CVE-2020-1938 |
| Red Hat Enterprise Linux 8 | apache-commons-collections | Fixed | 0:3.2.2-10.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | apache-commons-lang | Fixed | 0:2.6-21.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | apache-commons-net | Fixed | 0:3.6-3.module+el8.3.0+6805+72837426 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | bea-stax | Fixed | 0:1.2.0-16.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | bea-stax-api | Fixed | 0:1.2.0-16.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-fastinfoset | Fixed | 0:1.2.13-9.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb | Fixed | 0:2.2.11-11.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb-api | Fixed | 0:2.2.12-8.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb-core | Fixed | 0:2.2.11-11.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb-runtime | Fixed | 0:2.2.11-11.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb-txw2 | Fixed | 0:2.2.11-11.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-annotations | Fixed | 0:2.10.0-1.module+el8.2.0+5059+3eb3af25 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-core | Fixed | 0:2.10.0-1.module+el8.2.0+5059+3eb3af25 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-databind | Fixed | 0:2.10.0-1.module+el8.2.0+5059+3eb3af25 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-jaxrs-json-provider | Fixed | 0:2.9.9-1.module+el8.1.0+3832+9784644d | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-jaxrs-providers | Fixed | 0:2.9.9-1.module+el8.1.0+3832+9784644d | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-module-jaxb-annotations | Fixed | 0:2.7.6-4.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jakarta-commons-httpclient | Fixed | 1:3.1-28.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | javassist | Fixed | 0:3.18.1-8.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | javassist-javadoc | Fixed | 0:3.18.1-8.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jss | Fixed | 0:4.7.3-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jss-javadoc | Fixed | 0:4.7.3-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | ldapjdk | Fixed | 0:4.22.0-1.module+el8.3.0+6784+6e1e4c62 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | ldapjdk-javadoc | Fixed | 0:4.22.0-1.module+el8.3.0+6784+6e1e4c62 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-base | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-base-java | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-ca | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-core | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-kra | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-server | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-servlet-4.0-api | Fixed | 1:9.0.30-1.module+el8.3.0+6730+8f9c6254 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-servlet-engine | Fixed | 1:9.0.30-1.module+el8.3.0+6730+8f9c6254 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-symkey | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-tools | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | python-nss | Fixed | 0:1.0.1-10.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | python-nss-doc | Fixed | 0:1.0.1-10.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | python3-nss | Fixed | 0:1.0.1-10.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | python3-pki | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | relaxngDatatype | Fixed | 0:2011.1-7.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | resteasy | Fixed | 0:3.0.26-3.module+el8.2.0+5723+4574fbff | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | slf4j | Fixed | 0:1.7.25-4.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | slf4j-jdk14 | Fixed | 0:1.7.25-4.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | stax-ex | Fixed | 0:1.7.7-8.module+el8.2.0+5723+4574fbff | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | tomcatjss | Fixed | 0:7.5.0-1.module+el8.3.0+7355+c59bcbd9 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | velocity | Fixed | 0:1.7-24.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xalan-j2 | Fixed | 0:2.7.1-38.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xerces-j2 | Fixed | 0:2.11.0-34.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xml-commons-apis | Fixed | 0:1.4.01-25.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xml-commons-resolver | Fixed | 0:1.2-26.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xmlstreambuffer | Fixed | 0:1.5.4-8.module+el8.2.0+5723+4574fbff | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xsom | Fixed | 0:0-19.20110809svn.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 7 | tomcat | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-lib | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 7 | tomcat-webapps | Fixed | 0:7.0.76-11.el7_7 | RHSA-2020:0855 |
| Red Hat Enterprise Linux 6 | tomcat6 | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 6 | tomcat6-lib | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Fixed | 0:6.0.24-114.el6_10 | RHSA-2020:0912 |
| Red Hat Enterprise Linux 5 | tomcat5 | Will not fix Out of support scope | ||
| Rocky Linux 8 | apache-commons-collections | Fixed | 0:3.2.2-10.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | apache-commons-lang | Fixed | 0:2.6-21.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | apache-commons-net | Fixed | 0:3.6-3.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | bea-stax | Fixed | 0:1.2.0-16.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | glassfish-fastinfoset | Fixed | 0:1.2.13-9.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | glassfish-jaxb | Fixed | 0:2.2.11-11.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | glassfish-jaxb-api | Fixed | 0:2.2.12-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-annotations | Fixed | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-core | Fixed | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-databind | Fixed | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-jaxrs-providers | Fixed | 0:2.9.9-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-module-jaxb-annotations | Fixed | 0:2.7.6-4.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jakarta-commons-httpclient | Fixed | 1:3.1-28.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | javassist | Fixed | 0:3.18.1-8.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | ldapjdk | Fixed | 0:4.22.0-1.module+el8.4.0+418+b7ae1d4a | RLSA-2020:4847 |
| Rocky Linux 8 | pki-servlet-engine | Fixed | 1:9.0.30-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | python-nss | Fixed | 0:1.0.1-10.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | relaxngDatatype | Fixed | 0:2011.1-7.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | resteasy | Fixed | 0:3.0.26-3.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | slf4j | Fixed | 0:1.7.25-4.module+el8.3.0+133+b8b54b58 | RLSA-2020:4847 |
| Rocky Linux 8 | stax-ex | Fixed | 0:1.7.7-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | velocity | Fixed | 0:1.7-24.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xalan-j2 | Fixed | 0:2.7.1-38.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xerces-j2 | Fixed | 0:2.11.0-34.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xml-commons-apis | Fixed | 0:1.4.01-25.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xml-commons-resolver | Fixed | 0:1.2-26.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xmlstreambuffer | Fixed | 0:1.5.4-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xsom | Fixed | 0:0-19.20110809svn.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Maven library | org.apache.tomcat.embed:tomcat-embed-core | Fixed | 8.5.51 | GHSA-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.
- Apache Tomcat: affected: Apache Tomcat 9.0.0.M1 to 9.0.0.30, 8.5.0 to 8.5.50, 7.0.0 to 7.0.99
Vendor advisories:
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00025.html (vendor-advisory)
- https://security.gentoo.org/glsa/202003-43 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00002.html (vendor-advisory)
References
- https://lists.apache.org/thread.html/r7c6f492fbd39af34a68681dbbba0468490ff1a97a1bd79c6a53610ef%40%3Cannounce.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r856cdd87eda7af40b50278d6de80ee4b42d63adeb433a34a7bdaf9db%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/r75113652e46c4dee687236510649acfb70d2c63e074152049c3f399d%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/rd0774c95699d5aeb5e16e9a600fb2ea296e81175e30a62094e27e3e7%40%3Ccommits.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/r74328b178f9f37fe759dffbc9c1f2793e66d79d7a8a20d3836551794%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/rce2af55f6e144ffcdc025f997eddceb315dfbc0b230e3d750a7f7425%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/rad36ec6a1ffc9e43266b030c22ceeea569243555d34fb4187ff08522%40%3Cnotifications.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/rb2fc890bef23cbc7f343900005fe1edd3b091cf18dada455580258f9%40%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r38a5b7943b9a62ecb853acc22ef08ff586a7b3c66e08f949f0396ab1%40%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r17aaa3a05b5b7fe9075613dd0c681efa60a4f8c8fbad152c61371b6e%40%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/rd50baccd1bbb96c2327d5a8caa25a49692b3d68d96915bd1cfbb9f8b%40%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r4afa11e0464408e68f0e9560e90b185749363a66398b1491254f7864%40%3Cusers.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r772335e6851ad33ddb076218fa4ff70de1bf398d5b43e2ddf0130e5d%40%3Cdev.tomcat.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2020/03/msg00006.html
- https://lists.apache.org/thread.html/re5eecbe5bf967439bafeeaa85987b3a43f0e6efe06b6976ee768cde2%40%3Cusers.tomcat.apache.org%3E
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.