Apache Tomcat Serialized Payload RCE (CVE-2025–24813)
An attacker sent crafted partial HTTP PUT requests to upload a malicious serialized Java payload to a writable directory on an Apache Tomcat server, which could lead to unauthorised command execution. The report also claims the attacker retrieved sensitive files such as passwd.txt and shadow.txt.
medium.com
Published on medium.com
Based on the provided trigger reason, potential exploitation activity for CVE-2025–24813 has been detected on the Apache Tomcat server for unauthorized command executing
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 traversal flaw in Tomcat's handling of partial PUT requests, allowing a crafted filename to write files outside the intended upload directory.
Impact
An attacker could write files to unintended locations and potentially execute commands on the server, and the report claims sensitive system files were retrieved.
What the attacker needed
Tomcat with writable default servlet; Partial PUT enabled; Attacker can send HTTP requests
How it was found
- Send a partial HTTP PUT request with a crafted filename to attempt to write a file outside the intended directory.
- Upload a serialized Java session file to a sub-directory.
- Test file upload with a harmless file and observe the server response.
- Retrieve sensitive files such as passwd.txt and shadow.txt.
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.
This report describes an attack on a web server running Apache Tomcat. The attacker used a special kind of web request (a partial PUT) to try to place a harmful file on the server, hoping the server would later run it as code. If that works, the attacker could run commands on the machine and read sensitive files.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.