Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2020-9484: Remote Code Execution in Apache Tomcat FileStore Session Persistence

Published May 20, 2020 · Updated 29 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.0High · v3.1
EPSS55.5%99th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Oracle CorporationDebian ProjectMcafeeFedora ProjectOpensuseApache Software FoundationCanonical
IdentifiersCVE-2020-9484CWE-502 · Deserialization of Untrusted Data

CVE-2020-9484 is an unsafe deserialization vulnerability in Apache Tomcat FileStore-backed session persistence. It affects versions 10.0.0-M1 through 10.0.0-M4, 9.0.0.M1 through 9.0.34, 8.5.0 through 8.5.54, and 7.0.0 through 7.0.103. When PersistentManager uses FileStore and session attribute filtering is absent or sufficiently permissive, an attacker who controls a server-side file's contents and name and knows its relative location can send a crafted request that causes Tomcat to deserialize that file. A suitable deserialization gadget chain can then execute arbitrary code. Default Tomcat configurations are not affected because FileStore-backed PersistentManager is not enabled by default.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits arbitrary code execution with the privileges of the Tomcat process, potentially compromising the confidentiality, integrity, and availability of resources accessible to that account. Consequences can include sensitive data disclosure, application or data modification, shell execution, and service disruption.

Mitigation

If you can’t patch tonight, do this now.

Disable FileStore-backed session persistence where it is unnecessary. If it must remain enabled, configure sessionAttributeValueClassNameFilter with a restrictive allowlist of classes required for legitimate application session attributes rather than leaving it null or overly permissive. Prevent untrusted users and processes from creating or modifying files that FileStore could load, and restrict filesystem permissions and application upload locations. Class filtering is a defense-in-depth measure, not a substitute for patching.

Remediation

Patch, then assume compromise.

The initial fixes were released in Apache Tomcat 10.0.0-M5, 9.0.35, 8.5.55, and 7.0.104. Those fixes were subsequently found incomplete under a rare configuration edge case, tracked as CVE-2021-25329. Deploy a supported Tomcat release incorporating both fixes; the follow-up corrections were released in 10.0.2, 9.0.43, 8.5.63, and 7.0.108. For vendor-packaged or embedded Tomcat, apply the corresponding vendor security update and account for backported fixes rather than relying solely on upstream version comparisons.

Public exploits

Exploits

9 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
tomcat-cluster-session-sync-expThis repository is a Java-based exploit targeting Apache Tomcat servers configured with session clustering (SimpleTcpCluster) without the EncryptInterceptor. The exploit leverages insecure deserialization in the Tomcat session sync protocol to achieve remote code execution (RCE) or trigger DNS callbacks for out-of-band (OOB) detection. The main entry point is 'TomcatSessionClusterExploit.java', which constructs a malicious serialized payload (using gadget chains for JDK 7u21, JDK 8u20, or URLDNS) and sends it over a TCP connection to the Tomcat cluster session sync port (default 5000, but configurable). The payloads are based on ysoserial gadget chains and allow arbitrary command execution or DNS lookups. The exploit requires the attacker to have network access to the Tomcat cluster sync endpoint, and the target must be running a vulnerable JDK version. The repository includes supporting classes for payload construction, serialization, and Tomcat cluster protocol emulation. Example usage and configuration details are provided in the README, including sample server.xml snippets and command-line invocation. No detection-only scripts are present; the code is a functional exploit.threedr3am · Disclosed May 19, 2020 · java · xml · networkOperationalCVE-2020-9484This repository provides a proof-of-concept exploit for CVE-2020-9484, a remote code execution vulnerability in Apache Tomcat due to insecure deserialization of session data. The main exploit is a Bash script (CVE-2020-9484.sh) that automates the attack process. It requires the ysoserial tool to generate a malicious serialized payload using the CommonsCollections2 gadget. The script creates a payload that, when deserialized by the vulnerable Tomcat server, opens a reverse shell to the attacker's machine. The exploit works by uploading the malicious session file to the server via a POST request to /upload.jsp, then manipulating the JSESSIONID cookie to point to the uploaded file, triggering deserialization. The README provides usage instructions and prerequisites. The exploit targets Apache Tomcat servers vulnerable to CVE-2020-9484 and requires network access to the server's HTTP port (default 8080).VICXOR · Disclosed Feb 10, 2021 · bash · networkOperationalCVE-2020-9484_ExploitThis repository provides an operational exploit for CVE-2020-9484, a deserialization vulnerability in Apache Tomcat that can lead to remote code execution. The repository contains two files: a README.md with usage instructions and affected versions, and exploit.sh, a Bash script that automates the exploitation process. The script generates several serialized payloads using ysoserial, including one that downloads a reverse shell script (payload.sh) from the attacker's web server to the target's /tmp directory, another to set permissions, and a final one to execute the script. The payload.sh script opens a reverse shell to the attacker's specified IP and port. The script also generates a wordlist of possible session storage paths to maximize the chance of successful exploitation. The exploit targets Tomcat servers accessible over the network and requires the attacker to host a web server serving the payload. The main attack vector is network-based, exploiting the Tomcat session deserialization via crafted JSESSIONID cookies and file uploads to /index.jsp. The exploit is operational, providing a working reverse shell if successful.d3fudd · Disclosed Nov 14, 2022 · bash · networkOperationalCVE-2020-9484This repository contains a Python exploit script (CVE-2020-9484-Modified.py) targeting Apache Tomcat servers vulnerable to CVE-2020-9484 (Java deserialization RCE). The exploit automates the process of generating malicious serialized session files using ysoserial (downloaded from GitHub), uploads them to the target Tomcat server, and executes a reverse shell payload. The script supports both command-line arguments and an interactive mode for user input. The payload is a bash reverse shell, and the exploit requires the attacker to run a Python HTTP server to serve the payload and a Netcat listener to catch the shell. The README provides context that this script was designed for a CTF challenge (CERTain Doom on TryHackMe). The main exploit file is well-structured, with clear separation of payload generation, upload, and execution steps. The attack vector is network-based, exploiting the Tomcat server via HTTP. Several fingerprintable endpoints are present, including the ysoserial download URL, the attacker's HTTP server, the Tomcat upload endpoint, and file paths used on the target server.0dayCTF · Disclosed Sep 16, 2024 · python · bash · networkOperationalCVE-2020-9484This repository is a proof-of-concept exploit for CVE-2020-9484, a remote code execution vulnerability in Apache Tomcat due to insecure session deserialization. The repository contains a Dockerfile that builds a vulnerable Tomcat 10.0.0-M4 environment, deploying a custom context.xml to enable persistent file-based session storage and a crafted groovy.session file as the malicious payload. The index.jsp file is a simple JSP page that interacts with the session. The exploit is performed by sending an HTTP request to /index.jsp with a manipulated JSESSIONID cookie that points to the malicious session file, causing Tomcat to deserialize attacker-controlled data and execute arbitrary code. The README provides clear instructions for building and running the environment, as well as verifying exploitation by checking for the presence of a file named 'rce' in /tmp. The main attack vector is network-based, targeting the Tomcat HTTP interface. The repository is structured as a self-contained Docker environment for easy testing and demonstration of the vulnerability.masahiro331 · Disclosed May 21, 2020 · dockerfile · xml · networkPoCCVE-2020-9484This repository contains a Bash proof-of-concept exploit for CVE-2020-9484, a remote code execution vulnerability in Apache Tomcat 9.0.27 (and possibly other versions) when configured with PersistenceManager and FileStore. The main script, CVE-2020-9484.sh, automates the exploitation process by generating a Bash reverse shell payload, using ysoserial to create Java deserialization payloads, and uploading them to the target Tomcat server via HTTP requests to /upload.jsp. The exploit requires the attacker to run a Python HTTP server to serve the payload and a netcat listener to catch the reverse shell. The README.md provides detailed usage instructions, prerequisites (notably the need for ysoserial), and troubleshooting tips. The exploit demonstrates the vulnerability but is not weaponized for mass exploitation. The endpoints involved include the target's /upload.jsp, the attacker's HTTP server, and file paths used for payload delivery and execution.PenTestical · Disclosed Dec 31, 2020 · bash · networkPoCCVE-2020-9484This repository is a proof-of-concept exploit for CVE-2020-9484, a remote code execution vulnerability in Apache Tomcat's session persistence mechanism. The repository contains three files: a LICENSE, a brief README.md describing the affected Tomcat versions, and the main exploit script (main.py). The Python script prompts the user for a target URL, checks for the presence of /index.jsp, and then sends a specially crafted HTTP request with a malicious JSESSIONID cookie designed to exploit a path traversal vulnerability. If the target is vulnerable, the script may display the output of the targeted page or indicate if the server is patched. The exploit demonstrates the vulnerability but does not provide a weaponized payload or post-exploitation features. The main attack vector is network-based, targeting HTTP endpoints on vulnerable Tomcat servers.RepublicR0K · Disclosed May 18, 2021 · python · networkPoCCVE-2020-9484This repository provides a proof-of-concept (POC) exploit for Apache Tomcat's deserialization vulnerability (CVE-2020-9484). The repository includes a docker-compose setup to quickly deploy a vulnerable Tomcat 10.0.0-M4 instance with a custom context.xml that configures the session manager to use file-based session storage. The main exploit is performed by sending an HTTP request to the deployed Tomcat server's /index.jsp endpoint, setting the JSESSIONID cookie to a path that performs directory traversal (../../../../../usr/local/tomcat/cfx). This triggers the deserialization flaw, resulting in the creation of a file named 'coldfx' in the Tomcat tmp directory, demonstrating successful exploitation. The repository structure is minimal, containing configuration files (context.xml, docker-compose.yml), a simple JSP page for session interaction, and a README with exploitation instructions. No weaponized or automated exploit code is present; the POC relies on manual HTTP requests using curl.ColdFusionX · Disclosed Feb 11, 2022 · xml · jsp · networkPoCPoC_CVE-2020-9484This repository provides a proof-of-concept (POC) exploit for CVE-2020-9484, a remote code execution vulnerability in Apache Tomcat when using PersistentManager with FileStore and a deserialization gadget in the classpath. The repository includes: - A Python exploit script (exploit.py) that automates the attack: it downloads the ysoserial tool, generates malicious serialized session files, uploads a payload and the session files to the vulnerable server, and triggers deserialization via crafted JSESSIONID cookies to achieve RCE. - A sample vulnerable Tomcat server (Dockerfile, context.xml, Java source code) configured to demonstrate the vulnerability, including the required PersistentManager and FileStore setup, and a file upload endpoint at /upload. - The exploit targets Tomcat versions 10.x < 10.0.0-M5, 9.x < 9.0.35, 8.x < 8.5.55, and 7.x < 7.0.104, and requires the attacker to be able to upload arbitrary files and know the upload directory. - The payload is a shell script that makes an HTTP request to a webhook to demonstrate successful code execution, but can be replaced with any shell command. The repository is well-structured, with clear separation between the exploit code and the vulnerable server implementation. The main exploit capabilities are remote code execution via Java deserialization, leveraging file upload and session manipulation. Key fingerprintable endpoints include the file upload URL, the upload and session storage directories, and the webhook used for RCE verification.savsch · Disclosed Oct 6, 2024 · python · java · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationTomcatapplication
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
McafeeEpolicy Orchestratorapplication
OpensuseOpensuse Leapoperating_system
Oracle CorporationAgile Engineering Data Managementapplication
Oracle CorporationAgile Plmapplication
Oracle CorporationAgile Product Lifecycle Managementapplication
Oracle CorporationCommunications Cloud Native Core Binding Support Functionapplication
Oracle CorporationCommunications Cloud Native Core Policyapplication
Oracle CorporationCommunications Diameter Signaling Routerapplication
Oracle CorporationCommunications Element Managerapplication
Oracle CorporationCommunications Instant Messaging Serverapplication
Oracle CorporationCommunications Session Report Managerapplication
Oracle CorporationCommunications Session Route Managerapplication
Oracle CorporationDatabaseapplication
Oracle CorporationFmw Platformapplication
Oracle CorporationHospitality Guest Accessapplication
Oracle CorporationInstantis Enterprisetrackapplication
Oracle CorporationManaged File Transferapplication
Oracle CorporationMysql Enterprise Monitorapplication
Oracle CorporationRetail Order Brokerapplication
Oracle CorporationSiebel Apps - Marketingapplication
Oracle CorporationSiebel Ui Frameworkapplication
Oracle CorporationTransportation Managementapplication
Oracle CorporationWorkload Managerapplication
FAQ

Frequently asked questions

Is CVE-2020-9484 exploited in the wild?
As of Oct 25, 2026, Mallory has no reports of CVE-2020-9484 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2020-9484?
Yes. Mallory tracks 9 public exploits or proofs of concept for CVE-2020-9484, the earliest disclosed May 19, 2020.
Is there a patch for CVE-2020-9484?
The initial fixes were released in Apache Tomcat 10.0.0-M5, 9.0.35, 8.5.55, and 7.0.104. Those fixes were subsequently found incomplete under a rare configuration edge case, tracked as CVE-2021-25329.
What products are affected by CVE-2020-9484?
Apache Software Foundation Tomcat, Oracle Corporation Agile Engineering Data Management, Oracle Corporation Agile Plm, Oracle Corporation Agile Product Lifecycle Management, Oracle Corporation Communications Cloud Native Core Binding Support Function, and at least 22 more.
How severe is CVE-2020-9484?
CVE-2020-9484 has a CVSS v3.1 score of 7.0 (High) and an EPSS score of 55.5% (99th percentile) as of Oct 25, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.