CVE-2024-52318: Apache Tomcat: Incorrect JSP tag recycling leads to XSS
Description: The fix for improvement 69333 caused pooled JSP tags not to be released after use which in turn could cause output of some tags not to escaped as expected. This unescaped output could lead to XSS.
Versions Affected: - Apache Tomcat 11.0.0 - Apache Tomcat 10.1.31 - Apache Tomcat 9.0.96
Mitigation: Users of the affected versions should apply one of the following mitigations: - Upgrade to Apache Tomcat 11.0.1 or later - Upgrade to Apache Tomcat 10.1.33 or later Note: 10.1.32 was not released - Upgrade to Apache Tomcat 9.0.97 or later
Other sources
Incorrect object recycling and reuse vulnerability in Apache Tomcat.
This issue affects Apache Tomcat: 11.0.0, 10.1.31, 9.0.96.
Users are recommended to upgrade to version 11.0.1, 10.1.32 or 9.0.97, which fixes the issue.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.tomcat:tomcat-jasperto a version that resolves this vulnerability.Fixed in 9.0.97 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcat-jasperto a version that resolves this vulnerability.Fixed in 10.1.32 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcat-jasperto a version that resolves this vulnerability.Fixed in 11.0.1 - Upgrade
Upgrade
debian/tomcat10to a version that resolves this vulnerability.Fixed in 10.1.33-1 - Upgrade
Upgrade
debian/tomcat10to a version that resolves this vulnerability.Fixed in 10.1.55-1~deb12u1Fixed in 10.1.55-1~deb13u1Fixed in 10.1.60-1 - Upgrade
Upgrade
debian/tomcat9to a version that resolves this vulnerability.Fixed in 9.0.70-2Fixed in 9.0.95-1Fixed in 9.0.122-1 - Upgrade
Upgrade
Apache Tomcatto a version that resolves this vulnerability.Fixed in 10.1.33 - Upgrade
Upgrade
Apache Tomcatto a version that resolves this vulnerability.Fixed in 11.0.1 - Upgrade
Upgrade
Apache Tomcatto a version that resolves this vulnerability.Fixed in 9.0.97
Event History
Frequently Asked Questions
What is the severity of CVE-2024-52318?
CVE-2024-52318 is considered a critical vulnerability due to the potential for cross-site scripting (XSS) attacks.
How do I fix CVE-2024-52318?
To fix CVE-2024-52318, upgrade to Apache Tomcat version 9.0.97, 10.1.32, or 11.0.1.
What causes CVE-2024-52318?
CVE-2024-52318 is caused by pooled JSP tags not being released after use, which leads to unescaped output.
Which Apache Tomcat versions are affected by CVE-2024-52318?
The affected versions are Apache Tomcat 11.0.0, 10.1.31, and 9.0.96.
What type of vulnerability is CVE-2024-52318?
CVE-2024-52318 is an XSS vulnerability that can result from improperly escaped output in Apache Tomcat.