CVE-2024-52318: Apache Tomcat: Incorrect JSP tag recycling leads to XSS

Published Nov 18, 2024
·
Updated

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

11 affected componentsFixes available
maven/org.apache.tomcat:tomcat-jasper=9.0.96
9.0.97
maven/org.apache.tomcat:tomcat-jasper=10.1.31
10.1.32
maven/org.apache.tomcat:tomcat-jasper=11.0.0
11.0.1
F5 Traffix SDC=5.2.0
Apache Tomcat=9.0.96
Apache Tomcat=10.1.31
Apache Tomcat=11.0.0
debian/tomcat10<10.1.33-1
10.1.33-1
debian/tomcat10<10.1.33-1
10.1.33-1
debian/tomcat10
10.1.55-1~deb12u110.1.55-1~deb13u110.1.60-1
debian/tomcat9
9.0.70-29.0.95-19.0.122-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat-jasper to a version that resolves this vulnerability.

    Fixed in 9.0.97
  2. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat-jasper to a version that resolves this vulnerability.

    Fixed in 10.1.32
  3. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat-jasper to a version that resolves this vulnerability.

    Fixed in 11.0.1
  4. Upgrade

    Upgrade debian/tomcat10 to a version that resolves this vulnerability.

    Fixed in 10.1.33-1
  5. Upgrade

    Upgrade debian/tomcat10 to a version that resolves this vulnerability.

    Fixed in 10.1.55-1~deb12u1Fixed in 10.1.55-1~deb13u1Fixed in 10.1.60-1
  6. Upgrade

    Upgrade debian/tomcat9 to a version that resolves this vulnerability.

    Fixed in 9.0.70-2Fixed in 9.0.95-1Fixed in 9.0.122-1
  7. Upgrade

    Upgrade Apache Tomcat to a version that resolves this vulnerability.

    Fixed in 10.1.33
  8. Upgrade

    Upgrade Apache Tomcat to a version that resolves this vulnerability.

    Fixed in 11.0.1
  9. Upgrade

    Upgrade Apache Tomcat to a version that resolves this vulnerability.

    Fixed in 9.0.97

Event History

Nov 18, 2024
CVE Published
via MITRE·12:21 PM
Data Sourced
via MITRE·12:21 PM
DescriptionWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·01:15 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·03:33 PM
Nov 21, 2024
Exploit Published
via GitHub·06:38 AM
Feb 19, 2025
Advisory Published
via F5·06:23 PM

Frequently Asked Questions

1

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.

2

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.

3

What causes CVE-2024-52318?

CVE-2024-52318 is caused by pooled JSP tags not being released after use, which leads to unescaped output.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203