{"id":"GHSA-f632-9449-3j4w","summary":"Apache Tomcat - XSS in generated JSPs","details":"# Description:\nThe 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.\n\n# Versions Affected:\n- Apache Tomcat 11.0.0\n- Apache Tomcat 10.1.31\n- Apache Tomcat 9.0.96\n\n# Mitigation:\nUsers of the affected versions should apply one of the following\nmitigations:\n- Upgrade to Apache Tomcat 11.0.1 or later\n- Upgrade to Apache Tomcat 10.1.33 or later\nNote: 10.1.32 was not released\n- Upgrade to Apache Tomcat 9.0.97 or later","aliases":["BIT-tomcat-2024-52318","CVE-2024-52318"],"modified":"2026-06-18T20:30:24.246041371Z","published":"2024-11-18T15:33:20Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-11-18T21:03:24Z","nvd_published_at":"2024-11-18T13:15:04Z","cwe_ids":["CWE-326"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52318"},{"type":"WEB","url":"https://github.com/apache/tomcat/commit/8d1fc4733a06d1a03b9d644c57010f2ec5f0df38"},{"type":"WEB","url":"https://github.com/apache/tomcat/commit/9813c5dd3259183f659bbb83312a5cf673cc1ebf"},{"type":"WEB","url":"https://github.com/apache/tomcat/commit/be8e32143a3159e78fe5463d09bb8e1b33bf2b1f"},{"type":"WEB","url":"https://bz.apache.org/bugzilla/show_bug.cgi?id=69333"},{"type":"PACKAGE","url":"https://github.com/apache/tomcat"},{"type":"WEB","url":"https://lists.apache.org/thread/co243cw1nlh6p521c5265cm839wkqdp9"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20250131-0009"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/11/18/4"}],"affected":[{"package":{"name":"org.apache.tomcat:tomcat-jasper","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat/tomcat-jasper"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.0.0"},{"fixed":"11.0.1"}]}],"versions":["11.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}},{"package":{"name":"org.apache.tomcat:tomcat-jasper","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat/tomcat-jasper"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.31"},{"fixed":"10.1.32"}]}],"versions":["10.1.31"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}},{"package":{"name":"org.apache.tomcat.embed:tomcat-embed-jasper","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-jasper"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.0.96"},{"fixed":"9.0.97"}]}],"versions":["9.0.96"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}},{"package":{"name":"org.apache.tomcat.embed:tomcat-embed-jasper","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-jasper"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.0.0"},{"fixed":"11.0.1"}]}],"versions":["11.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}},{"package":{"name":"org.apache.tomcat.embed:tomcat-embed-jasper","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-jasper"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.31"},{"fixed":"10.1.32"}]}],"versions":["10.1.31"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}},{"package":{"name":"org.apache.tomcat:tomcat-jasper","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat/tomcat-jasper"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.0.96"},{"fixed":"9.0.97"}]}],"versions":["9.0.96"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}},{"package":{"name":"org.apache.tomcat:tomcat","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat/tomcat"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.0.0"},{"fixed":"11.0.1"}]}],"versions":["11.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}},{"package":{"name":"org.apache.tomcat:tomcat","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat/tomcat"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.31"},{"fixed":"10.1.32"}]}],"versions":["10.1.31"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}},{"package":{"name":"org.apache.tomcat:tomcat","ecosystem":"Maven","purl":"pkg:maven/org.apache.tomcat/tomcat"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.0.96"},{"fixed":"9.0.97"}]}],"versions":["9.0.96"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-f632-9449-3j4w/GHSA-f632-9449-3j4w.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}