SecurityContext

CVE-2020-1938: Apache Tomcat - Path Traversal & Remote Code Execution

  • Cve: CVE-2020-1938
  • Name: Apache Tomcat - Path Traversal & Remote Code Execution
  • 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.
  • Impact: Attackers can exploit the vulnerability to return arbitrary files and execute code as JSP, leading to remote code execution and server compromise.
  • Remediation: Upgrade to Apache Tomcat 9.0.31, 8.5.51, or 7.0.100 or later, and disable the AJP connector if not required.
  • Vulnerability type: path_traversal
  • Vulnerability impact: remote_code_execution, information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.9927
  • Epss percentile: 0.99938
  • Assignee: [email protected]
  • Published at: 2020-02-24T22:15:12Z
  • Age in days: 2464
  • Modified at: 2026-08-25T16:28:27Z
  • Patch available: yes
  • Public exploits total: 80
  • References total: 51
  • Products total: 21
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-1938
  • Nvd status: analyzed
  • Checked, none or zero: public exploits capped, rejected by nvd
  • Not known: requirements

Cwe

IdName
NVD-CWE-Other—

Known exploited entries

ListAdded dateDue dateRansomware use
cisa2022-03-032022-03-17no
vulncheck2020-04-15—no

Nuclei templates

IdUrl
CVE-2020-1938https://github.com/projectdiscovery/nuclei-templates/blob/main/network/cves/2020/CVE-2020-1938.yaml

Hackerone

  • Reports: 46
  • Rank: 650

Public exploits

UrlSourceAdded date
https://lists.apache.org/thread.html/rad36ec6a1ffc9e43266b030c22ceeea569243555d34fb4187ff08522%40%3Cnotifications.ofbiz.apache.org%3Envd2020-02-24
https://github.com/Mohammad-Anon/CVE-2020-1938poc-in-github2026-11-13
https://github.com/Mohammad-Anon/CVE-2020-1938.gitvulncheck-xdb2026-11-13
https://github.com/CyberCTF/vulhub-tomcat-cve-2020-1938poc-in-github2026-10-08
https://github.com/CyberCTF/vulhub-tomcat-cve-2020-1938.gitvulncheck-xdb2026-10-08

References

Same in every row:

  • Source: nvd
UrlTags
https://lists.apache.org/thread.html/r9f119d9ce9239114022e13dbfe385b3de7c972f24f05d6dbd35c1a2f%40%3Cusers.tomcat.apache.org%3EMailing List, Patch
https://lists.apache.org/thread.html/rb1c0fb105ce2b93b7ec6fc1b77dd208022621a91c12d1f580813cfed%40%3Cdev.tomcat.apache.org%3EMailing List, Patch
https://lists.apache.org/thread.html/rd0774c95699d5aeb5e16e9a600fb2ea296e81175e30a62094e27e3e7%40%3Ccommits.ofbiz.apache.org%3EMailing List, Patch
https://www.oracle.com/security-alerts/cpujan2021.htmlPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpujul2020.htmlPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2020.htmlPatch, Third Party Advisory
https://lists.apache.org/thread.html/r7c6f492fbd39af34a68681dbbba0468490ff1a97a1bd79c6a53610ef%40%3Cannounce.tomcat.apache.org%3EMailing List, Vendor Advisory
https://lists.apache.org/thread.html/r8f7484589454638af527182ae55ef5b628ba00c05c5b11887c922fb1%40%3Cnotifications.ofbiz.apache.org%3EMailing List, Vendor Advisory
https://lists.apache.org/thread.html/r90890afea72a9571d666820b2fe5942a0a5f86be406fa31da3dd0922%40%3Cannounce.apache.org%3EMailing List, Vendor Advisory
https://lists.apache.org/thread.html/ra7092f7492569b39b04ec0decf52628ba86c51f15efb38f5853e2760%40%3Cnotifications.ofbiz.apache.org%3EMailing List, Vendor Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
apache:tomcat>= 9.0.0, < 9.0.31; >= 8.5.0, < 8.5.51; >= 7.0.0, < 7.0.100/v1/products/apache/tomcat
debian:debian_linux= 10.0, = 9.0, = 8.0/v1/products/debian/debian_linux
fedoraproject:fedora= 32, = 31, = 30/v1/products/fedoraproject/fedora
opensuse:leap= 15.1/v1/products/opensuse/leap
oracle:agile_product_lifecycle_management= 9.3.6, = 9.3.5, = 9.3.3/v1/products/oracle/agile_product_lifecycle_management
oracle:communications_element_manager= 8.2.1, = 8.2.0, = 8.1.1/v1/products/oracle/communications_element_manager
oracle:agile_engineering_data_management= 6.2.1.0/v1/products/oracle/agile_engineering_data_management
netapp:data_availability_servicesall versions/v1/products/netapp/data_availability_services
oracle:mysql_enterprise_monitor>= 8.0.0, <= 8.0.20; <= 4.0.12/v1/products/oracle/mysql_enterprise_monitor
oracle:communications_instant_messaging_server= 10.0.1.4.0/v1/products/oracle/communications_instant_messaging_server

Projects

RepositoryLink kindsIndexedUrl
apache/tomcatpackageyes/v1/repositories/apache/tomcat

Index

  • Repositories: 60
  • Repositories high signal: 33
  • Packages: 1

Exploitation

  • Known exploited: yes
  • Known exploited since: 2022-03-03
  • Known exploited by: cisa, vulncheck
  • Vulncheck known exploited since: 2020-04-15
  • Public exploit: yes
  • Public exploit count: 80
  • Public exploit first date: 2019-06-07
  • Remote: yes
  • Hackerone reports: 46
  • Exposed hosts: 4706702
  • Checked, none or zero: exploitation seen, initial access, authentication required
  • Not known: initial access since

Nuclei template