CVE-2020-1938
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedWhen 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGhostcat is a critical vulnerability in Apache Tomcat's AJP (Apache JServ Protocol) connector. When the AJP port is accessible to untrusted users, an attacker can read arbitrary files from anywhere in the web application and process any file as a JSP, enabling remote code execution if file upload functionality exists.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 1.12.0>= 7.0.0, < 7.0.100>= 8.5.0, < 8.5.51>= 9.0.0, < 9.0.31= 30= 31= 32= 8.0= 9.0= 10.0= 6.2.1.0= 9.3.3= 9.3.5= 9.3.6= 8.1.1= 8.2.0= 8.2.1= 10.0.1.4.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Tomcat versionRun 'catalina.sh version' or check the filename in the Tomcat installation directory (e.g., bin/catalina.jar version) to get the exact version numberAffected if Version is 7.0.0 to 7.0.99, 8.5.0 to 8.5.50, or 9.0.0 to 9.0.30
-
Locate server.xml configurationFind the server.xml file, typically in the conf/ directory of the Tomcat installationAffected if server.xml exists and contains AJP connector configuration
-
Verify AJP connector is enabledSearch server.xml for an <Connector> element with protocol="AJP" or port 8009 (the default AJP port)Affected if An active AJP connector element is present in the configuration
-
Check AJP connector bindingIn server.xml, locate the 'address' attribute of the AJP connector. If absent, it defaults to all interfaces (0.0.0.0)Affected if The address attribute is missing or set to 0.0.0.0 or an externally accessible IP
-
Confirm AJP secret is not setIn server.xml, check the AJP connector for the 'secret' attribute. If absent or not configured, the default no-secret value is acceptedAffected if The 'secret' attribute is missing or not set to a strong value
The system is affected if Tomcat version falls within the vulnerable range AND the AJP connector is enabled and accessible to untrusted network paths without a configured secret.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped7.0.1008.5.519.0.31
Upgrade to Tomcat 9.0.31+/8.5.51+/7.0.100+ OR disable the AJP connector if not required AND ensure the AJP port is not exposed to untrusted networks.
Tomcat 9.0.31+ (for 9.x), 8.5.51+ (for 8.5.x), or 7.0.100+ (for 7.x) - also applies to products bundled with these Tomcat versions such as Geode 1.12.0
- Identify all Tomcat instances running affected versions (7.0.0-7.0.99, 8.5.0-8.5.50, 9.0.0-9.0.30) in the environment
- Determine if the AJP connector is required for your application (e.g., used with mod_jk, mod_proxy_ajp, or Kubernetes ingress)
- If AJP connector is not required: disable it in server.xml by commenting out or removing the AJP <Connector> element, or block the AJP port (default 8009) at the network/firewall level from untrusted sources
- If AJP connector is required: upgrade to Tomcat 9.0.31 or later (for 9.x), 8.5.51 or later (for 8.5.x), or 7.0.100 or later (for 7.x)
- After upgrading, review the AJP connector configuration in server.xml and adjust settings to match the hardened defaults introduced in the fixed versions (e.g., secretRequired=true, secret attribute if using authentication)
- Test the configuration in a non-production environment before deploying to production
- Verify the fix by confirming the Tomcat version and testing that the AJP port responds only with expected behavior
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation6.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,544.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2020-1938 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- www.oracle.com
- www.oracle.com
- www.oracle.com
- lists.opensuse.org
- lists.opensuse.org
- support.blackberry.com
- lists.debian.org
- lists.debian.org
- security.gentoo.org
- security.netapp.com
- www.debian.org
- www.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- www.cisa.gov
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2020-1938 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data