MODERATE 6.1
CVE-2024-52318
Apache Tomcat - XSS in generated JSPs
Description
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
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.tomcat » tomcat | >= 9.0.96, < 9.0.97>= 10.1.31, < 10.1.32>= 11.0.0, < 11.0.1 | 9.0.97, 10.1.32, 11.0.1 |
| org.apache.tomcat » tomcat-jasper | >= 9.0.96, < 9.0.97>= 10.1.31, < 10.1.32>= 11.0.0, < 11.0.1 | 9.0.97, 10.1.32, 11.0.1 |
| org.apache.tomcat.embed » tomcat-embed-jasper | >= 9.0.96, < 9.0.97>= 10.1.31, < 10.1.32>= 11.0.0, < 11.0.1 | 9.0.97, 10.1.32, 11.0.1 |
Blast radius
3affected artifacts
9affected versions
26dependent artifacts (est.)
61dependent versions
11% of the dependent artifacts (3) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 25 |
| 2 hops | 30 |
| 3 hops | 6 |
Most used dependents
- org.sonarsource.java » sonar-java-plugin34 usages
- org.labkey.api » api11 usages
- io.leonard.maven.plugins » jspc-maven-plugin8 usages
- org.apache.cxf.systests » cxf-systests-cdi-base2 usages
- org.labkey.api » LDK2 usages
- org.sonarsource.java » java-jsp1 usages
- io.github.cnhongwei » tomcat9-war-runner1 usages
- org.labkey.api » SequenceAnalysis1 usages
- org.labkey.api » laboratory1 usages
- org.openxava » openxava1 usages
- org.apache.cxf.systests » cxf-systests-cdi-owb0 usages
- org.apache.cxf.systests » cxf-systests-cdi-weld0 usages
- com.heroku » webapp-runner-parent0 usages
- com.github.spotbugs » sonar-findbugs-plugin0 usages
- io.github.nbauma109 » static-analysis-maven-plugin0 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2024-52318 | nvd.nist.gov |
| Package | apache/tomcat | github.com |
| Web | apache/tomcat commit 8d1fc47 | github.com |
| Web | apache/tomcat commit 9813c5d | github.com |
| Web | apache/tomcat commit be8e321 | github.com |
| Web | bugzilla/show_bug.cgi | bz.apache.org |
| Web | thread/co243cw1nlh6p521c5265cm839wkqdp9 | lists.apache.org |
| Web | advisory/ntap-20250131-0009 | security.netapp.com |
| Web | lists/oss-security/2024/11/18/4 | openwall.com |
