Apache Tomcat: Incorrect JSP tag recycling leads to XSS (CVE-2024-52318)
Description
Apache Tomcat contains an incorrect object recycling and reuse vulnerability affecting certain versions. This flaw can lead to cross-site scripting (XSS) due to improper JSP tag recycling. The issue impacts Apache Tomcat versions 9.0.96, 10.1.31, and 11.0.0 within specified ranges. Fixed versions are available and users are advised to upgrade to 9.0.97, 10.1.32, or 11.0.1 or later to remediate the vulnerability.
Affected software
pkg:bitnami/tomcatRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-52318 is a vulnerability in Apache Tomcat involving incorrect recycling and reuse of JSP tags, which can result in cross-site scripting (XSS). The affected versions include 9.0.96, 10.1.31, and 11.0.0 up to but not including 9.0.97, 10.1.33, and 11.0.9 respectively. The issue is resolved in versions 9.0.97, 10.1.32, and 11.0.1. This vulnerability arises from improper object lifecycle management in the JSP engine, leading to potential injection of malicious scripts.
Potential Impact
The vulnerability allows an attacker to exploit improper JSP tag recycling, potentially leading to cross-site scripting (XSS) attacks. This could enable attackers to execute arbitrary scripts in the context of the affected web application, potentially compromising user sessions or data. No known exploits are reported in the wild at this time.
Mitigation Recommendations
A patch is available. Users should upgrade affected Apache Tomcat installations to versions 9.0.97, 10.1.32, or 11.0.1 or later to remediate this vulnerability. Applying these official fixes eliminates the risk associated with this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-tomcat-2024-52318
- Osv Schema Version
- 1.5.0
- Aliases
- CVE-2024-52318
- Ecosystems
- Bitnami
- Database Specific Severity
- Medium
Threat ID: 6aa005b8acd9273b49ab59e7
Added to database: 09/08/2026, 12:55:20 UTC
Last enriched: 09/08/2026, 13:13:14 UTC
Last updated: 10/24/2026, 08:45:07 UTC
Views: 43
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.