Skip to content
RCE Write-up Intermediate

Apache Tomcat Is Under Attack: CVE-2025–24813 Explained

Apache Tomcat mishandles HTTP PUT requests due to improper input validation, letting an attacker upload a malicious file that the server later treats as executable. This could give an attacker remote code execution on the server.

medium.com

Published on medium.com

This vulnerability lies in how Tomcat handles HTTP PUT requests. Normally, PUT is used to upload files to a server.

Jordilla, on medium.com

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

Impact

An attacker could achieve remote code execution, access sensitive files and credentials, and disrupt or lock out the service; the text also notes active scanning and a public working exploit within 30 hours.

What the attacker needed

Vulnerable Tomcat exposed to attackers; PUT requests enabled or reachable

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.

Tomcat is a web server that runs Java web applications. A PUT request is a standard way for a client to upload a file to a server. Here, the server did not check uploaded files properly, so someone could upload a file that the server would later run as code, giving them control of the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.