ID:11213 - Exploit for Input validation error in Apache Tomcat - CVE-2025-24813

 
Main Vulnerability Database Exploits ID:11213 - Exploit for Input validation error in Apache Tomcat - CVE-2025-24813

ID:11213 - Exploit for Input validation error in Apache Tomcat - CVE-2025-24813

Published: March 14, 2025


Vulnerability identifier: #VU105485
Vulnerability risk: Critical
CVE-ID: CVE-2025-24813
CWE-ID: CWE-20
Exploitation vector: Remote access
Vulnerable software:
Apache Tomcat

Link to public exploit:


Vulnerability description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to insufficient validation of user-supplied input when handling file uploads via HTTP PUT requests. A remote attacker can send a specially crafted HTTP PUT request to the server and gain access to sensitive information or even execute arbitrary code.

If all of the following were true, a malicious user was able to view security sensitive files and/or inject content into those files:

  • writes enabled for the default servlet (disabled by default)
  • support for partial PUT (enabled by default)
  • a target URL for security sensitive uploads that is a sub-directory of a target URL for public uploads
  • attacker knowledge of the names of security sensitive files being uploaded
  • the security sensitive files also being uploaded via partial PUT

If all of the following were true, a malicious user was able to perform remote code execution:

  • writes enabled for the default servlet (disabled by default)
  • support for partial PUT (enabled by default)
  • application was using Tomcat's file based session persistence with the default storage location
  • application included a library that may be leveraged in a deserialization attack



Remediation

Install updates from vendor's website.