CVE-2008-1947: Apache Tomcat Cross-site scripting (XSS) vulnerability
4.3
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.97643%
CWE
Published
5/1/2022
Updated
3/5/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.tomcat:tomcat | maven | >= 5.5.9, <= 5.5.26 | 5.5.27 |
org.apache.tomcat:tomcat | maven | >= 6.0.0, <= 6.0.16 | 6.0.18 |
org.apache.tomcat.embed:tomcat-embed-core | maven | >= 5.5.9, <= 5.5.26 | 5.5.27 |
org.apache.tomcat.embed:tomcat-embed-core | maven | >= 6.0.0, <= 6.0.16 | 6.0.18 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two flaws in HTMLHostManagerServlet:
- URL construction for host management actions (start/stop/remove) directly concatenated user-controlled hostName parameter into URLs without URL encoding, allowing script injection via query parameters.
- The hostName value was rendered in HTML responses without proper output encoding. The patch added URL encoding for URL construction and RequestUtil.filter for HTML context, confirming these were the vulnerable points.