Apache Tomcat up to 7.0.99/8.5.50/9.0.30 AJP Connector Ghostcat input validation

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.4$0-$5k0.00

Summaryinfo

A vulnerability marked as critical has been reported in Apache Tomcat up to 7.0.99/8.5.50/9.0.30. Impacted is an unknown function of the component AJP Connector. Performing a manipulation results in input validation (Ghostcat). This vulnerability is identified as CVE-2020-1938. The attack can be initiated remotely. Additionally, an exploit exists. It is suggested to install a patch to address this issue.

Detailsinfo

A vulnerability was found in Apache Tomcat up to 7.0.99/8.5.50/9.0.30 (Application Server Software). It has been classified as critical. This affects an unknown code of the component AJP Connector. The manipulation with an unknown input leads to a input validation vulnerability (Ghostcat). CWE is classifying the issue as CWE-20. The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

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.

The weakness was released 02/20/2020 as CNVD-2020-10487 as confirmed tweet (Twitter). The advisory is shared at twitter.com. The public release was coordinated with Apache. This vulnerability is uniquely identified as CVE-2020-1938. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are unknown but a public exploit is available.

A public exploit has been developed in Python and been published immediately after the advisory. The exploit is shared for download at github.com. It is declared as attacked. The vulnerability was handled as a non-public zero-day exploit for at least 48 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 212407 (Oracle Siebel Server (July 2020 CPU)), which helps to determine the existence of the flaw in a target environment. The CISA Known Exploited Vulnerabilities Catalog lists this issue since 03/03/2022 with a due date of 03/17/2022:

Apply updates per vendor instructions.

Upgrading to version 7.0.100, 8.5.51 or 9.0.31 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The best possible mitigation is suggested to be patching the affected component.

The vulnerability is also documented in the databases at Exploit-DB (48143), Tenable (212407) and EUVD (EUVD-2020-0481). Further details are available at tenable.com. Entries connected to this vulnerability are available at VDB-158110, VDB-158112, VDB-158326 and VDB-158327. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.5
VulDB Meta Temp Score: 8.4

VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Name: Ghostcat
Class: Input validation / Ghostcat
CWE: CWE-20
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Attacked
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

KEV Added: 🔍
KEV Due: 🔍
KEV Remediation: 🔍
KEV Ransomware: 🔍
KEV Notice: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 212407
Nessus Name: Oracle Siebel Server (July 2020 CPU)

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Upgrade: Tomcat 7.0.100/8.5.51/9.0.31
Workaround: tenable.com

Timelineinfo

12/02/2019 🔍
01/03/2020 +32 days 🔍
02/20/2020 +48 days 🔍
02/20/2020 +0 days 🔍
02/24/2020 +4 days 🔍
10/22/2025 +2067 days 🔍

Sourcesinfo

Vendor: apache.org

Advisory: CNVD-2020-10487
Status: Confirmed
Coordinated: 🔍

CVE: CVE-2020-1938 (🔍)
GCVE (CVE): GCVE-0-2020-1938
GCVE (VulDB): GCVE-100-150441
EUVD: 🔍
scip Labs: https://www.scip.ch/en/?labs.20161013
Misc.: 🔍
See also: 🔍

Entryinfo

Created: 02/24/2020 11:57
Updated: 10/22/2025 21:02
Changes: 02/24/2020 11:57 (55), 02/24/2020 12:02 (18), 04/02/2024 11:46 (18), 04/23/2024 17:45 (15), 07/24/2024 17:10 (1), 09/09/2024 22:29 (1), 10/18/2024 03:11 (1), 12/11/2024 19:57 (2), 10/22/2025 21:02 (1)
Complete: 🔍
Cache ID: 216::103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

 ditzestephan
(+0)
6 years ago
VULDB-Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
NVD-Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Thats a huge difference. We discuss if it is more an RCE than a PE. I hope you can support us with a rationale.

Chris

Do you know our Splunk app?

Download it now for free!