
Apache Tomcat is beneath assault as cybercriminals actively exploit a just lately disclosed vulnerability, enabling distant code execution (RCE). With easy HTTP requests, attackers can set off the deserialisation of malicious information and acquire management over affected programs.
The vulnerability, CVE-2025-24813, was disclosed by Apache on March 10, with the first proof of idea being launched on GitHub about 30 hours later, posted by consumer iSee857. Quickly after, safety agency Wallarm later noticed that this was being leveraged within the wild, warning that the assaults are undetectable to conventional safety filters as HTTP requests seem regular and malicious payloads are base64-encoded.
First, an attacker sends a PUT request containing an encoded, serialised Java payload, which is then written inside Tomcat’s session storage and routinely saved in a file. Then they ship a GET request with a JSESSIONID cookie pointing to the malicious session.
When Tomcat processes this request, it deserialises the session information with out correct validation, executing the embedded malicious Java code and giving the attacker full distant entry.
SEE: The way to Use the Apache Internet Server to Set up and Configure a Web site
Which Apache Tomcat variations are susceptible?
No authentication is required for this to work however, in accordance with Apache’s safety be aware, the next should be true for a Tomcat software to be susceptible:
- Writes are enabled for the default servlet
- Partial PUT request assist is enabled
- Tomcat features a library that could possibly be leveraged in deserialisation assaults
- The default storage location makes use of file-based session persistence
In addition to distant code execution exploits, the vulnerability can permit attackers to view or amend security-sensitive information if the next circumstances are met:
- Writes are enabled for the default servlet
- Partial PUT request assist is enabled
- The safety-sensitive information are saved in a publicly obtainable listing and have been uploaded by partial PUT
- The attacker is aware of the filenames
With these circumstances fulfilled, the next Tomcat variations are all susceptible:
- Apache Tomcat 11.0.0-M1 to 11.0.2
- Apache Tomcat 10.1.0-M1 to 10.1.34
- Apache Tomcat 9.0.0.M1 to 9.0.98
Mitigation: The way to shield your system
To mitigate the vulnerability, Apache recommends customers improve to Tomcat variations 11.0.3 or later, 10.1.35 or later, or 9.0.99 or later, respectively, as these are all sufficiently patched. Alternatively, customers can flip off partial PUT assist, disable writes for the default servlet, and keep away from storing security-sensitive information in directories which can be publicly accessible.
Wallarm researchers warn that this vulnerability highlights the potential for different safety flaws rising resulting from Tomcat’s dealing with of partial PUT requests “which permits importing virtually any file wherever”.
“Attackers will quickly begin shifting their ways, importing malicious JSP information, modifying configurations, and planting backdoors exterior session storage,” they wrote in a weblog publish. “That is simply the primary wave.”