CVE-2025-24813: Apache Tomcat partial PUT path equivalence (RCE / file disclosure)

Exploited in the wild Critical 9.8 EPSS 99.9% Apache Tomcat

Tomcat's partial PUT used a temporary file named from the user-supplied path with '/' replaced by '.', so when writes are enabled on the default servlet an attacker can view or inject content into sensitive uploaded files, or reach remote code execution via file-based session persistence and a deserialization gadget library. Writes on the default servlet are off by default, so only servers that enabled them are exposed. Fixed in 11.0.3, 10.1.35 and 9.0.99; CISA added it to KEV on 1 April 2025 and notes it can be chained with CVE-2026-34486.

What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms

What to do now

  1. Check whether you run Apache Tomcat and which version (commands below).
  2. Install the fixed version for your system: see “Patch it” below.
  3. Restart the Tomcat service.
  4. If you cannot patch today, apply the temporary mitigation below and patch as soon as possible.
  5. Because this flaw is being exploited, also check the server for signs of compromise.

Affected and fixed versions

Affected:

Fixed in:

Am I affected?

$CATALINA_HOME/bin/version.sh
dpkg -l 'tomcat*' | grep ^ii   # Debian/Ubuntu
rpm -q tomcat tomcat9   # RHEL
grep -n -A1 'readonly' $CATALINA_BASE/conf/web.xml   # writes are enabled only if the DefaultServlet readonly init-param is false

Patch it

Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.

Debian
sudo apt update
sudo apt install --only-upgrade tomcat10   # or tomcat9 on Debian 11
sudo systemctl restart tomcat10
Ubuntu
sudo apt update
sudo apt install --only-upgrade tomcat10 tomcat9   # Ubuntu Pro (ESM) for most releases
sudo systemctl restart tomcat10
RHEL, AlmaLinux, Rocky, Oracle
sudo dnf upgrade tomcat
sudo systemctl restart tomcat
Fedora
sudo dnf upgrade --refresh tomcat
SUSE / openSUSE
sudo zypper refresh
sudo zypper update tomcat10 tomcat11 (or tomcat)
Amazon Linux
sudo dnf upgrade --releasever=latest tomcat10 tomcat11 (or tomcat9)
Arch Linux
sudo pacman -Syu
Alpine
not packaged: upstream tarball
FreeBSD
pkg update && pkg upgrade tomcat101 tomcat110 (or tomcat9)
Built from source
# install Apache Tomcat 11.0.3+, 10.1.35+ or 9.0.99+ from https://tomcat.apache.org/ and restart

General update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.

Fix status in Linux distributions

ReleasePackageStatusFixed version / advisory
Debian 12tomcat10fixed10.1.34-0+deb12u2
Debian 13tomcat10fixed10.1.35-1
Debian testingtomcat10fixed10.1.35-1
Debian 12tomcat9fixed9.0.70-2
Debian 13tomcat9fixed9.0.70-2
Debian testingtomcat9fixed9.0.70-2
Ubuntu 18.04 (ESM)tomcat7not affected
Ubuntu 18.04 (ESM)tomcat8not affected
Ubuntu 26.10tomcat9fixed9.0.70-2ubuntu2
Ubuntu 26.04tomcat9fixed9.0.70-2ubuntu2
Ubuntu 24.04tomcat9fixed9.0.70-2ubuntu0.1+esm1
Ubuntu 18.04 (ESM)tomcat9fixed9.0.16-3ubuntu0.18.04.2+esm6
Ubuntu 20.04 (ESM)tomcat9fixed9.0.31-1ubuntu0.9+esm1
Ubuntu 22.04tomcat9fixed9.0.58-1ubuntu0.2+esm2
Ubuntu 25.10tomcat9fixed9.0.70-2ubuntu2
Ubuntu 26.10tomcat10not affected
Ubuntu 26.04tomcat10not affected
Ubuntu 24.04tomcat10fixed10.1.16-1ubuntu0.1~esm1
Ubuntu 25.10tomcat10not affected
Ubuntu 26.10tomcat11not affected
Ubuntu 26.04tomcat11not affected
Ubuntu 25.10tomcat11not affected
Red Hat Enterprise Linux 9tomcat-1:9.0.87-2.el9_5.1fixedRHSA-2025:3645
Red Hat Enterprise Linux 8tomcat-1:9.0.87-1.el8_10.3fixedRHSA-2025:3683
Red Hat Enterprise Linux 6tomcat6out of support scope
Red Hat Enterprise Linux 10tomcat9-1:9.0.87-5.el10_0fixedRHSA-2025:7494
Red Hat Enterprise Linux 10tomcat-1:10.1.36-1.el10_0fixedRHSA-2025:7497
Debian 12 (bookworm)tomcat10fixed10.1.34-0+deb12u2 (DSA-5893-1)
Debian 11 (bullseye)tomcat9fixed9.0.43-2~deb11u12 (DLA-4108-1)
Ubuntu 24.04 LTStomcat10fixed10.1.16-1ubuntu0.1~esm1 (USN-7525-1)
Ubuntu 24.04 LTStomcat9fixed9.0.70-2ubuntu0.1+esm1 (USN-7525-2)
Ubuntu 22.04 LTStomcat9fixed9.0.58-1ubuntu0.2+esm2 (USN-7525-1)
Ubuntu 20.04 LTStomcat9fixed9.0.31-1ubuntu0.9+esm1 (USN-7525-1)
RHEL 10tomcatfixed10.1.36-1.el10_0 (RHSA-2025:7497)
RHEL 10tomcat9fixed9.0.87-5.el10_0 (RHSA-2025:7494)
RHEL 9tomcatfixed9.0.87-2.el9_5.1 (RHSA-2025:3645)
RHEL 8tomcatfixed9.0.87-1.el8_10.3 (RHSA-2025:3683)

From the Debian security tracker, Ubuntu CVE tracker and Red Hat Security Data API, refreshed every few hours.

If you cannot patch yet

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

This vulnerability affects a common open-source component, third-party library, or a protocol used by different products. Please check with specific vendors for information on patching status. For more information, please see: https://lists.apache.org/thread/j5fkjv2k477os90nczf2v9l61fb0kkgq ; https://nvd.nist.gov/vuln/detail/CVE-2025-24813

Related vulnerabilities

Sources

Page generated automatically from official sources on 2026-11-03 18:05 UTC and reviewed by an editor. Always confirm with your vendor's advisory.