---
id: "CVE-2020-1938"
kind: "vulnerability"
aliases: ["CVE-2020-1938"]
title: "Apache Tomcat: Apache Tomcat Improper Privilege Management Vulnerability"
severity: "critical"
cvss: 9.8
epss: 0.9927
exploited: true
status: "open"
category: "runtime"
products: [{"name": "Apache Tomcat", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["exploited", "java", "runtime", "self-hosted", "tomcat"]
not_affected_if: ["ajp-connector-disabled", "ajp-not-reachable-from-untrusted-networks"]
published_at: "2020-02-24T22:15:12+00:00"
first_seen_at: "2026-10-23T19:11:52+00:00"
updated_at: "2026-10-23T21:57:35+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2020-1938", "first_seen_at": "2026-10-23T19:11:52+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-1938", "first_seen_at": "2026-10-23T19:13:44+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-1938", "first_seen_at": "2026-10-23T21:57:35+00:00"}]
---

# Apache Tomcat: Apache Tomcat Improper Privilege Management Vulnerability

Apache Tomcat trusts AJP connections more than HTTP connections, so an attacker who can reach an AJP port can act with that elevated trust. This is the Ghostcat flaw, and CISA lists it as actively exploited.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:Apache Tomcat affected ? fixed ?

## How to check

Check whether the AJP connector is enabled in conf/server.xml (look for a Connector on port 8009 with protocol AJP).
Check whether port 8009 is reachable from untrusted networks.

## Fix

Upgrade Apache Tomcat to a fixed release per vendor instructions (fixed versions not listed in sources).
If AJP is not needed, comment out the AJP Connector in server.xml; if needed, set an AJP secret or bind it to localhost only.

## Timeline

- 2026-10-23T19:11:52+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2020-1938
- 2026-10-23T19:13:44+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2020-1938
- 2026-10-23T21:57:35+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2020-1938

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
