Tuesday, September 8, 2026

Apache Tomcat RCE Vulnerability Exposed with PoC Released

A critical security vulnerability, tracked as CVE-2025-24813, has been discovered in Apache Tomcat, a widely used open-source Java servlet container and web server.

This flaw, stemming from improper handling of file paths, particularly those containing internal dots (e.g., file.Name)—can allow attackers to bypass security controls, leading to remote code execution (RCE), information disclosure, and malicious content injection.

The vulnerability affects Tomcat versions 11.0.0-M1 through 11.0.2, 10.1.0-M1 through 10.1.34, and 9.0.0.M1 through 9.0.98. Apache has released patches in versions 11.0.3, 10.1.35, and 9.0.99 to address the issue.

Technical Details and Exploit Chain

According to the post from Cyber Advising, CVE-2025-24813 arises from a path equivalence issue in Tomcat’s default servlet, which, under certain configurations, mishandles file uploads via HTTP PUT requests.

The vulnerability becomes exploitable when:

  • The default servlet’s readonly parameter is set to false (write enabled).
  • Partial PUT requests (using the Content-Range header) are allowed (enabled by default).
  • Tomcat is configured for file-based session persistence (not default).
  • The application includes deserialization-vulnerable libraries.
  • The attacker knows the naming conventions and locations of sensitive files.

Exploitation Steps

  1. Uploading a Malicious Session File:
    The attacker sends a PUT request with a crafted Java serialized payload targeting the session storage directory. For example: textPUT /webapps/ROOT/WEB-INF/sessions/SESSIONID.ser HTTP/1.1 Host: vulnerable-tomcat Content-Range: bytes 0-99/100 Content-Type: application/octet-stream <malicious serialized payload>
  2. Triggering Deserialization and RCE:
    The attacker then sends a GET request with a JSESSIONID cookie referencing the uploaded session file: textGET / HTTP/1.1 Host: vulnerable-tomcat Cookie: JSESSIONID=SESSIONID When Tomcat deserializes the malicious session file, arbitrary code executes under the Tomcat process’s privileges.

Risk Factors and Impact

While the vulnerability is severe (CVSS 9.8/10), exploitation requires a non-default configuration—specifically, write-enabled default servlet and file-based session persistence.

However, proof-of-concept code is publicly available, and attacks were observed within 30 hours of disclosure.

Potential impacts include:

  • Remote code execution (RCE)
  • Unauthorized access to sensitive files
  • Injection of malicious content into uploaded files
  • Corruption of server configuration files
  • Data breaches and lateral movement within networks

Risk Factor Table

ConditionDefault ValueExploitation RequiredRisk Contribution
Default servlet readonly=falsefalsetrueHigh
Partial PUT requests enabledtruetrueHigh
File-based session persistencefalsetrueHigh
Vulnerable deserialization library presentN/AtrueHigh
Attacker knows file names/structureN/AtrueMedium

Mitigation and Recommendations

Immediate mitigation steps:

  • Upgrade Apache Tomcat to 11.0.3, 10.1.35, or 9.0.99.
  • Keep the default servlet’s readonly parameter set to true (prevents write access via PUT).
  • Disable partial PUT requests if not needed.
  • Avoid file-based session persistence or segregate writable directories from session storage.
  • Remove unnecessary deserialization libraries from the classpath.

Organizations unable to upgrade immediately should apply all configuration hardening steps and monitor for unusual PUT and session activity.

Given Tomcat’s ubiquity, rapid patching is essential to prevent exploitation.

CVE-2025-24813 is a high-impact, easily exploitable vulnerability in Apache Tomcat.

While requiring specific configurations, the public availability of exploit code and active scanning make prompt patching and configuration review critical for all Tomcat deployments.

Find this News Interesting! Follow us on Google NewsLinkedIn, & X to Get Instant Updates!

Anupriya
Anupriya
Any Priya is a cybersecurity reporter at GBHackers On Security, specializing in cyber attacks, dark web monitoring, data breaches, vulnerabilities, and malware. She delivers in-depth analysis on emerging threats and digital security trends.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Known npm Worm Returns After 111 Days and Security Scanning Still Let It Through

A known Shai-Hulud npm worm payload has resurfaced after...

Switzerland Builds Open-Source Workplace Platform to Operate Alongside Microsoft 365

Switzerland’s Federal Chancellery is advancing a sovereign digital workplace...

Mathspace Data Breach Exposes Personal Data of Over 1 Million Students, Parents and Staff

Mathspace, an online mathematics learning platform used by schools...

New InjectEave Attack Lets Hackers Eavesdrop on Headphone Audio From 30 Meters Away

Security researchers have unveiled InjectEave, an electromagnetic side-channel attack...

PoisonedRefresh Malware Backdoors F5 BIG-IP Servers With Memory-Only PHP Web Shells

A sophisticated Linux implant linked to compromised F5 BIG-IP...

Natural Resources Wales Data Breach Exposes Sensitive Employee Diversity Data

Natural Resources Wales (NRW) has reported a personal data...

ConnectWise ScreenConnect Remote Access Flaw Impacts Guest File Transfer Sessions

ConnectWise has announced a security issue affecting file transfer...

Related Articles

Recent News