encodeForRewrite
java/org/apache/catalina/valves/rewrite/RewriteValve.java
Last patched
Overview
encodeForRewrite in java/org/apache/catalina/valves/rewrite/RewriteValve.java (apache/tomcat) was changed by 1 published CVE fix in 2025, in 2 distinct patches that added or removed 27 lines in total.
apache/tomcat has 160 CVEs with a located fix in total, so 1% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed encodeForRewrite, newest first, with the lines each fix touched.
CVE-2025-31651 · lines 855–881 · +27 −0
Low · CVSS 2.7EPSS 4.3%2025-04-28
Get an alert when the next CVE fix lands in apache/tomcat, with the patched functions.
Monitor these CVEsOther functions in these files
Functions in the same file that CVE fixes also changed.
Other hotspots in the repository
Functions in apache/tomcat changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to encodeForRewrite.
- How many CVEs have patched encodeForRewrite?
- 1 published CVEs changed encodeForRewrite in apache/tomcat, in 2 distinct patches totalling 27 changed lines, between 2025 and 2025.
- What is the latest CVE that changed encodeForRewrite?
- CVE-2025-31651 (Apache Tomcat: Bypass of rules in Rewrite Valve), published 2025-04-28, changed lines 855 to 881 of java/org/apache/catalina/valves/rewrite/RewriteValve.java.
- How does encodeForRewrite compare to the rest of apache/tomcat?
- apache/tomcat has 160 CVEs with a located fix in total; 1 of them changed encodeForRewrite.
- What do the line numbers refer to?
- Line numbers are in the fixed version of the file, as the upstream patch left it. A CVE whose fix was backported to several branches is listed once, with the lines from the upstream commit.
References
- java/org/apache/catalina/valves/rewrite/RewriteValve.java on GitHub (opens in a new tab)
- All patched functions in apache/tomcat
- Patched functions directory
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track apache/tomcat CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.