GHSA-f632-9449-3j4w
Apache Tomcat - XSS in generated JSPs
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Maven | org.apache.tomcat:tomcat-jasper | >= 11.0.0, < 11.0.1 | 11.0.1 |
| Maven | org.apache.tomcat:tomcat-jasper | >= 10.1.31, < 10.1.32 | 10.1.32 |
| Maven | org.apache.tomcat.embed:tomcat-embed-jasper | >= 9.0.96, < 9.0.97 | 9.0.97 |
| Maven | org.apache.tomcat.embed:tomcat-embed-jasper | >= 11.0.0, < 11.0.1 | 11.0.1 |
| Maven | org.apache.tomcat.embed:tomcat-embed-jasper | >= 10.1.31, < 10.1.32 | 10.1.32 |
| Maven | org.apache.tomcat:tomcat-jasper | >= 9.0.96, < 9.0.97 | 9.0.97 |
| Maven | org.apache.tomcat:tomcat | >= 11.0.0, < 11.0.1 | 11.0.1 |
| Maven | org.apache.tomcat:tomcat | >= 10.1.31, < 10.1.32 | 10.1.32 |
| Maven | org.apache.tomcat:tomcat | >= 9.0.96, < 9.0.97 | 9.0.97 |
Details
As written in the advisory (Markdown source, shown as plain text).
# 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
References
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2024-52318
- https://github.com/apache/tomcat/commit/8d1fc4733a06d1a03b9d644c57010f2ec5f0df38
- https://github.com/apache/tomcat/commit/9813c5dd3259183f659bbb83312a5cf673cc1ebf
- https://github.com/apache/tomcat/commit/be8e32143a3159e78fe5463d09bb8e1b33bf2b1f
- https://bz.apache.org/bugzilla/show_bug.cgi?id=69333
- https://github.com/apache/tomcat
- https://lists.apache.org/thread/co243cw1nlh6p521c5265cm839wkqdp9
- https://security.netapp.com/advisory/ntap-20250131-0009
- http://www.openwall.com/lists/oss-security/2024/11/18/4