Input validation error in Apache Tomcat - CVE-2025-31651

 

Input validation error in Apache Tomcat - CVE-2025-31651

Published: April 28, 2025 / Updated: March 13, 2026


Vulnerability identifier: #VU107995
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-31651
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to bypass rewrite rules.

The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can send a specially crafted input to the application and bypass configured rewrite rules.


Affected software

Apache Tomcat
JBoss Web Server
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP3
Debian Linux
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Manager Server
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Web and Scripting Module
openSUSE Leap
openEuler
Ubuntu
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
tomcat9 (Debian package)
libtomcat10-java (Ubuntu package)
libtomcat10-embed-java (Ubuntu package)
tomcat10 (Ubuntu package)
libtomcat11-java (Ubuntu package)
libtomcat11-embed-java (Ubuntu package)
tomcat11 (Ubuntu package)
tomcat-el-3_0-api
tomcat-admin-webapps
tomcat-javadoc
tomcat
tomcat-webapps
tomcat-servlet-4_0-api
tomcat-jsp-2_3-api
tomcat-docs-webapp
tomcat-lib
pki-servlet-engine (Red Hat package)
tomcat-el-3.0-api
tomcat-jsp-2.3-api
tomcat-servlet-4.0-api
tomcat (Red Hat package)
tomcat9 (Red Hat package)
jws5-tomcat (Red Hat package)
tomcat-jsvc
tomcat-help
tomcat-embed
tomcat10-lib
tomcat10-admin-webapps
tomcat10
tomcat10-el-5_0-api
tomcat10-webapps
tomcat10-jsvc
tomcat10-embed
tomcat10-jsp-3_1-api
tomcat10-servlet-6_0-api
tomcat10-docs-webapp
tomcat10-doc
tomcat10 (Debian package)
Netezza Appliance
Rapid Infrastructure Automation
Cloudera Observability with IBM
DevOps Solution Workbench
Oracle Agile Engineering Data Management
IBM Business Automation Manager Open Editions
IBM Engineering Requirements Management DOORS Next
CICS Transaction Gateway for Multiplatforms
CICS Transaction Gateway Desktop Edition
webMethods developer portal
ApplinX
watsonx Orchestrate with watsonx Assistant Cartridge - Assistant Builder Component
watsonx Assistant Cartridge
Telco Service Orchestrator
Storage Protect Plus Server
webMethods BPM
Netcool Operations Insight
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
IBM Watson Discovery for IBM Cloud Pak for Data
IBM Integration Bus
IBM Power Hardware Management Console (HMC)
NetWorker
Oracle Communications Cloud Native Core Network Exposure Function
Cloudera Data Platform Private Cloud Base for IBM
Oracle Managed File Transfer
IBM Qradar SIEM
Oracle Agile PLM Framework
Oracle Retail Xstore Office
Siebel CRM Deployment

How to mitigate CVE-2025-31651

Install updates from vendor's website.

Apache Tomcat - addressed in versions 9.0.104, 10.1.40, 11.0.6
Netezza Appliance - update to 1.0.1.0 fp278500
Rapid Infrastructure Automation - update to 1.1.5.3
Netcool Operations Insight - update to 1.6.15
Cloudera Observability with IBM - update to 3.6.2
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.2.1
IBM Watson Discovery for IBM Cloud Pak for Data - update to 5.2.1
JBoss Web Server - update to 5.8.6
IBM Qradar SIEM - update to 7.5.0 Update Pack 12 IF02
IBM Business Automation Manager Open Editions - update to 8.0.8
IBM Engineering Requirements Management DOORS Next - update to 9.7.2.11
IBM Integration Bus - update to 10.1.0.5
IBM Power Hardware Management Console (HMC) - addressed in versions 10.3.1060.0 SP3, 11.1.1110.0
webMethods developer portal - update to 11.1.6
NetWorker - update to 19.13.0.1
Siebel CRM Deployment - update to 25.8
tomcat9 (Debian package) - update to 9.0.107-0+deb11u1
libtomcat10-java (Ubuntu package) - addressed in versions 10.1.61~us1-0ubuntu1~24.04.2, 10.1.61~us1-0ubuntu1~26.04.1, 10.1.61~us1-0ubuntu1~26.10.1
libtomcat10-embed-java (Ubuntu package) - addressed in versions 10.1.61~us1-0ubuntu1~24.04.2, 10.1.61~us1-0ubuntu1~26.04.1, 10.1.61~us1-0ubuntu1~26.10.1
tomcat10 (Ubuntu package) - addressed in versions 10.1.16-1ubuntu0.1~esm3, 10.1.35-1ubuntu0.1, 10.1.61~us1-0ubuntu1~24.04.2, 10.1.61~us1-0ubuntu1~26.04.1, 10.1.61~us1-0ubuntu1~26.10.1
libtomcat11-java (Ubuntu package) - addressed in versions 11.0.27~us1-0ubuntu1~26.04.1, 11.0.27~us1-0ubuntu1~26.10.1
libtomcat11-embed-java (Ubuntu package) - addressed in versions 11.0.27~us1-0ubuntu1~26.04.1, 11.0.27~us1-0ubuntu1~26.10.1
tomcat11 (Ubuntu package) - addressed in versions 11.0.27~us1-0ubuntu1~26.04.1, 11.0.27~us1-0ubuntu1~26.10.1
tomcat-el-3_0-api - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
tomcat-admin-webapps - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
tomcat-javadoc - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
tomcat - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
tomcat-webapps - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
tomcat-servlet-4_0-api - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
tomcat-jsp-2_3-api - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
tomcat-docs-webapp - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
tomcat-lib - addressed in versions 9.0.36-3.142.1, 9.0.104-150200.81.1
pki-servlet-engine (Red Hat package) - addressed in versions 9.0.43-4.el9_0.2, 9.0.50-1.el9_2.3
tomcat - update to 9.0.87-1
tomcat-admin-webapps - update to 9.0.87-1
tomcat-docs-webapp - update to 9.0.87-1
tomcat-el-3.0-api - update to 9.0.87-1
tomcat-jsp-2.3-api - update to 9.0.87-1
tomcat-lib - update to 9.0.87-1
tomcat-servlet-4.0-api - update to 9.0.87-1
tomcat-webapps - update to 9.0.87-1
tomcat (Red Hat package) - addressed in versions 9.0.87-1.el8_8.8, 9.0.87-1.el8_10.7, 9.0.87-1.el9_2.7, 9.0.87-1.el9_4.7, 10.1.36-1.el10_0.3
tomcat9 (Red Hat package) - update to 9.0.87-5.el10_0.4
jws5-tomcat (Red Hat package) - addressed in versions 9.0.87-14.redhat_00013.1.el7jws, 9.0.87-14.redhat_00013.1.el8jws, 9.0.87-14.redhat_00013.1.el9jws
tomcat-jsvc - update to 9.0.100-2
tomcat-help - update to 9.0.100-2
tomcat - update to 9.0.100-2
tomcat-jsvc - update to 9.0.104-150200.81.1
tomcat-embed - update to 9.0.104-150200.81.1
tomcat10-lib - update to 10.1.40-150200.5.40.1
tomcat10-admin-webapps - update to 10.1.40-150200.5.40.1
tomcat10 - update to 10.1.40-150200.5.40.1
tomcat10-el-5_0-api - update to 10.1.40-150200.5.40.1
tomcat10-webapps - update to 10.1.40-150200.5.40.1
tomcat10-jsvc - update to 10.1.40-150200.5.40.1
tomcat10-embed - update to 10.1.40-150200.5.40.1
tomcat10-jsp-3_1-api - update to 10.1.40-150200.5.40.1
tomcat10-servlet-6_0-api - update to 10.1.40-150200.5.40.1
tomcat10-docs-webapp - update to 10.1.40-150200.5.40.1
tomcat10-doc - update to 10.1.40-150200.5.40.1
watsonx Orchestrate with watsonx Assistant Cartridge - Assistant Builder Component - update to 5.2.1
watsonx Assistant Cartridge - update to 5.2.1
Telco Service Orchestrator - update to 5.3.2
Storage Protect Plus Server - update to 10.1.18
webMethods BPM - addressed in versions 10.15 Fix 14, 11.1 Fix 2
tomcat10 (Debian package) - addressed in versions 10.1.52-1~deb12u1, 10.1.52-1~deb13u1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins