A serious vulnerability affecting Apache Tomcat can be exploited to read files from a server and in some cases even to achieve remote code execution.
Dubbed Ghostcat and tracked as CVE-2020-1938, the flaw was discovered by researchers at Chinese cybersecurity firm Chaitin Tech, who reported their findings to the Apache Software Foundation on January 3.
The vulnerability affects versions 6, 7, 8 and 9 of the open source Java servlet container. Patches were made available earlier this month with the release of versions 9.0.31, 8.5.51 and 7.0.100. Version 6 is no longer supported, but the fact that it’s impacted shows that the vulnerability has existed for more than a decade.
Chaitin says the vulnerability is related to the Apache JServ Protocol (AJP) protocol, which is designed to improve performance by proxying inbound requests from a web server through to an application server.
The AJP connector used by Tomcat is affected by a weakness that can be exploited by a remote, unauthenticated attacker to access configuration and source code files for web applications deployed on a server. If the system allows users to upload files, an attacker can upload malicious JavaServer Pages (JSP) code to the server and use Ghostcat to execute that code.
Ghostcat affects the default configuration of Tomcat and many servers may be vulnerable to attacks directly from the internet.
Chaitin disclosed its findings last week and several proof-of-concept (PoC) exploits have been publicly released by different researchers. Chaitin has made available both online and offline tools that can be used to determine if a server is affected by Ghostcat.
Affected Linux distributions, such as Red Hat and SUSE, have released advisories for their users. An analysis of the vulnerability has also been published by Tenable.
Related: Symantec Warns of Apache Tomcat Server Worm
Related: Code Execution Flaws Patched in Apache Tomcat
Related: Information Disclosure, DoS Flaws Patched in Apache Tomcat

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.
More from Eduard Kovacs
- Intel Boasts Attack Surface Reduction With New 13th Gen Core vPro Platform
- Dole Says Employee Information Compromised in Ransomware Attack
- High-Severity Vulnerabilities Found in WellinTech Industrial Data Historian
- CISA Expands Cybersecurity Committee, Updates Baseline Security Goals
- Exploitation of 55 Zero-Day Vulnerabilities Came to Light in 2022: Mandiant
- Organizations Notified of Remotely Exploitable Vulnerabilities in Aveva HMI, SCADA Products
- Waterfall Security, TXOne Networks Launch New OT Security Appliances
- Hitachi Energy Blames Data Breach on Zero-Day as Ransomware Gang Threatens Firm
Latest News
- GitHub Suspends Repository Containing Leaked Twitter Source Code
- Intel Co-founder, Philanthropist Gordon Moore Dies at 94
- Google Leads $16 Million Investment in Dope.security
- US Charges 20-Year-Old Head of Hacker Site BreachForums
- Tesla Hacked Twice at Pwn2Own Exploit Contest
- CISA Ships ‘Untitled Goose Tool’ to Hunt for Microsoft Azure Cloud Infections
- Critical WooCommerce Payments Vulnerability Leads to Site Takeover
- PoC Exploit Published for Just-Patched Veeam Data Backup Solution Flaw
