CVE-2025–24813: Apache Tomcat Vulnerability Opens Door to Remote Code Execution via Path Equivalence
A path equivalence flaw in Apache Tomcat's default servlet, when partial PUT and file-based session persistence are enabled, allows an unauthenticated attacker to bypass path validation and potentially achieve remote code execution or information disclosure. A public proof-of-concept exists and exploitation has been observed in the wild.
A critical vulnerability in Apache Tomcat has raised alarms across enterprise environments. Tracked as CVE-2025–24813, the flaw allows unauthenticated threat actors to achieve remote code execution (RCE) or information disclosure under specific but dangerous conditions.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a path equivalence issue in Tomcat's default servlet that fails to properly normalise file names containing dot notation when partial PUT and file-based session persistence are enabled.
Impact
An attacker could view or overwrite sensitive files, inject malicious payloads into session files, and trigger unsafe deserialization for remote code execution, potentially leading to full system compromise and lateral movement.
What the attacker needed
Tomcat with partial PUT enabled; File-based session persistence in use; Writes enabled in default servlet
The fix
Apache has released patched versions (11.0.3, 10.1.35, 9.0.99); administrators should upgrade immediately and disable partial PUT and file-based session persistence if not required.
How it was found
- Identify targets running vulnerable Tomcat versions with partial PUT enabled.
- Use crafted file names with dot notation to circumvent path validation and gain write access to sensitive directories.
- Modify session persistence files with malicious objects to trigger unsafe deserialization during legitimate user activity.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Apache Tomcat is a popular web server for Java applications. A bug in how it handles certain file paths (using dots in names) lets an attacker trick the server into writing files where it shouldn't, or reading files it shouldn't. If the server also stores session data in files, the attacker might replace that data with malicious code that runs when a user logs in, potentially taking over the whole system.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.