The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-1938

CVE-2020-1938: Apache Tomcat AJP RCE Vulnerability

CVE-2020-1938 is a remote code execution vulnerability in Apache Tomcat's AJP Connector that allows attackers to read arbitrary files and execute malicious code. This article covers technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2020-1938 Overview

CVE-2020-1938, commonly known as "Ghostcat," is a critical vulnerability in Apache Tomcat's Apache JServ Protocol (AJP) connector that allows attackers to read arbitrary files from the web application and achieve remote code execution under certain conditions. The vulnerability stems from the fact that Tomcat treats AJP connections as having higher trust than HTTP connections, and by default, the AJP connector was enabled and listening on all configured IP addresses.

When the AJP port (default 8009) is accessible to untrusted users, attackers can exploit this vulnerability to return arbitrary files from anywhere within the web application directory. More critically, attackers can process any file in the web application as a JSP file, enabling code execution. If the application allows file uploads or if an attacker can control content within the web application through other means, this vulnerability can be chained to achieve full remote code execution.

Critical Impact

This vulnerability is actively exploited in the wild and listed in CISA's Known Exploited Vulnerabilities catalog. With an EPSS probability of 94.47%, it represents an extremely high likelihood of exploitation. Attackers can read sensitive configuration files, application source code, and potentially execute arbitrary code on vulnerable servers.

Affected Products

  • Apache Tomcat 9.0.0.M1 to 9.0.30
  • Apache Tomcat 8.5.0 to 8.5.50
  • Apache Tomcat 7.0.0 to 7.0.99
  • Apache Geode 1.12.0
  • Oracle Agile PLM (versions 9.3.3, 9.3.5, 9.3.6)
  • Oracle MySQL Enterprise Monitor
  • Oracle Communications Element Manager
  • Debian Linux 8.0, 9.0, 10.0
  • Fedora 30, 31, 32
  • openSUSE Leap 15.1
  • BlackBerry Good Control and Workspaces Server
  • NetApp Data Availability Services and OnCommand System Manager

Discovery Timeline

  • 2020-02-24 - CVE-2020-1938 published to NVD
  • 2025-10-27 - Last updated in NVD database

Technical Details for CVE-2020-1938

Vulnerability Analysis

The Apache JServ Protocol (AJP) is a binary protocol designed for efficient communication between a web server (such as Apache HTTP Server) and application server (such as Tomcat). Unlike HTTP, AJP connections are inherently trusted by Tomcat because they are intended for internal communication between components in a controlled environment.

The fundamental issue is that Apache Tomcat shipped with an AJP connector enabled by default, listening on all configured IP addresses (0.0.0.0:8009). While the security documentation recommended disabling this connector if not required, many deployments left it enabled and accessible from untrusted networks.

When an attacker can connect to the AJP port, they can forge AJP requests with specially crafted attributes that Tomcat trusts implicitly. This allows two primary attack vectors:

  1. Arbitrary File Read: By manipulating request attributes, attackers can read any file within the web application's directory structure, including WEB-INF/web.xml, configuration files, and source code.

  2. File Inclusion as JSP: Attackers can force Tomcat to treat arbitrary files as JSP files and compile/execute them. If the application accepts file uploads or if attackers can place content in the web application directory through other means, they can upload a file containing JSP code and trigger its execution.

Root Cause

The root cause of this vulnerability lies in the implicit trust model of the AJP protocol combined with insecure default configuration. Specifically:

  1. Excessive Trust: AJP requests are treated as fully trusted internal requests, allowing manipulation of request attributes that would normally be protected in HTTP requests.

  2. Insecure Default Binding: The AJP connector defaulted to binding on all interfaces (0.0.0.0) rather than localhost only.

  3. Enabled by Default: The AJP connector was enabled out of the box, even when not needed for the deployment scenario.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker with network access to the AJP port (default TCP/8009) can exploit this vulnerability directly.

The exploitation process involves sending crafted AJP messages that manipulate internal request attributes. These attributes control how Tomcat handles the request, including which file to serve and how to process it. By setting specific attributes, attackers can:

  1. Override the servlet path to point to arbitrary files within the web application
  2. Force Tomcat to process the file through the JSP servlet, causing compilation and execution
  3. Include path traversal sequences to access files outside the expected directory structure

If file upload functionality exists and stores files within the web application directory, attackers can upload a file containing malicious JSP code (potentially disguised with an innocent extension) and then use this vulnerability to execute it as a JSP, achieving remote code execution.

Detection Methods for CVE-2020-1938

Indicators of Compromise

  • Unexpected connections to TCP port 8009 (default AJP port) from external IP addresses
  • AJP binary protocol traffic containing unusual request attribute manipulations
  • Log entries showing access to sensitive files such as /WEB-INF/web.xml or configuration files that should not be directly accessible
  • Unusual JSP compilation activity for files that are not typically JSP files
  • Evidence of file access patterns consistent with reconnaissance (sequential reading of multiple configuration files)

Detection Strategies

  • Deploy network intrusion detection signatures for Ghostcat/CVE-2020-1938 exploitation attempts on AJP protocol traffic
  • Monitor for connections to AJP ports (8009, 8019, etc.) from non-whitelisted source addresses
  • Enable and review Tomcat access logs for unusual file access patterns, particularly requests for files in /WEB-INF/ directory
  • Implement application-level monitoring to detect attempts to process non-JSP files as JSP
  • Correlate file upload events with subsequent unusual file access attempts

Monitoring Recommendations

  • Configure firewall logging for any traffic destined to AJP ports from untrusted networks
  • Implement real-time alerting for successful connections to AJP ports from external IP ranges
  • Enable verbose logging in Tomcat to capture request attributes and servlet processing details
  • Monitor for new or unusual JSP compilation in Tomcat work directories
  • Track changes to files within web application directories that could indicate successful exploitation

How to Mitigate CVE-2020-1938

Immediate Actions Required

  • Immediately disable the AJP connector if not required for your deployment by commenting out or removing the <Connector port="8009" protocol="AJP/1.3" ... /> entry in server.xml
  • If AJP is required, bind the AJP connector to localhost only (address="127.0.0.1") or to specific trusted internal IP addresses
  • Apply firewall rules to block external access to TCP port 8009 and any other configured AJP ports
  • Upgrade to patched versions: Apache Tomcat 9.0.31, 8.5.51, or 7.0.100 (or later)
  • Review web application file upload functionality to ensure files are not stored within the web application directory structure

Patch Information

Apache has released security patches that harden the default AJP connector configuration. The fixed versions include:

  • Apache Tomcat 9.0.31 and later
  • Apache Tomcat 8.5.51 and later
  • Apache Tomcat 7.0.100 and later

Key changes in the patched versions include:

  • AJP connector requires explicit configuration of the secretRequired attribute
  • New secret attribute for AJP authentication
  • Hardened default attribute handling to reject potentially dangerous request attributes

Users upgrading to fixed versions should note that configuration changes may be required due to the hardened defaults. Consult the Apache Tomcat Announce Thread for detailed upgrade guidance.

Additional vendor patches are available from Oracle CPU January 2021, Debian DSA-4680, and NetApp Security Advisory.

Workarounds

  • Disable the AJP connector entirely if not used by removing or commenting out the connector definition in conf/server.xml
  • Restrict AJP connector binding to localhost by setting address="127.0.0.1" in the connector configuration
  • Implement network segmentation and firewall rules to ensure AJP ports are only accessible from trusted internal addresses
  • If using Apache HTTP Server as a reverse proxy with mod_jk or mod_proxy_ajp, ensure proper network isolation between the web server and Tomcat
bash
# Configuration example - Disable AJP in server.xml
# Comment out or remove this line:
# <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

# If AJP is required, bind to localhost only:
# <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" address="127.0.0.1" secretRequired="true" secret="your-secret-key" />

# Firewall rule to block external AJP access (iptables example):
iptables -A INPUT -p tcp --dport 8009 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 8009 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Tomcat

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • NVD-CWE-Other
  • Technical References
  • openSUSE Security Announcement March 2020

  • openSUSE Security Announcement May 2020

  • BlackBerry Knowledge Base Article

  • Apache TomEE Developer Thread

  • Apache Announce Mailing List Update

  • Apache Tomcat User Thread

  • Apache Tomcat User Thread

  • Apache Tomcat User Thread

  • Apache TomEE Commits Thread

  • Apache Tomcat User Thread

  • Apache Tomcat User Thread

  • Apache Tomcat User Thread

  • Apache Tomcat Dev Thread

  • Apache TomEE Commits Thread

  • Apache Tomcat User Thread

  • Apache Tomcat User Thread

  • Apache TomEE Commits Thread

  • Apache OFBiz Notifications

  • Apache OFBiz Notifications

  • Apache Tomcat Announce Thread

  • Apache Announce Mailing List Update

  • Apache OFBiz Notifications

  • Apache Tomcat Dev Thread

  • Apache Tomcat User Thread

  • Apache TomEE Dev Thread

  • Apache TomEE Dev Thread

  • Apache TomEE Commits Thread

  • Apache OFBiz Commits Thread

  • Apache Tomcat User Thread

  • Apache Geode Issues Discussion

  • Apache TomEE Commits Thread

  • Debian LTS Announcement March 2020

  • Debian LTS Announcement May 2020

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202003-43

  • NetApp Security Advisory

  • Debian DSA-4673

  • Oracle CPU October 2020 Vulnerabilities
  • Vendor Resources
  • Apache Tomcat Dev Thread

  • Apache OFBiz Notifications

  • Apache OFBiz Notifications

  • Apache TomEE User Thread

  • Apache Tomcat User Thread

  • Apache OFBiz Notifications

  • Apache OFBiz Notifications

  • Apache Tomcat User Thread

  • Apache HTTPD Bugs Discussion

  • Debian DSA-4680

  • Oracle CPU January 2021 Vulnerabilities

  • Oracle CPU July 2020 Vulnerabilities
  • Related CVEs
  • CVE-2016-20026: ZKTeco ZKBioSecurity RCE Vulnerability

  • CVE-2025-24813: Apache Tomcat Path Equivalence RCE Vulnerability

  • CVE-2020-9484: Apache Tomcat RCE Vulnerability

  • CVE-2026-34500: Apache Tomcat Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English