CVE-2008-1947 — tomcat
Fix: apache/tomcat@ab6a6c4CVE-2008-1947 is a Cross-site Scripting (XSS) vulnerability in org.apache.tomcat:tomcat. A fix is available for org.apache.tomcat:tomcat — see the affected versions and patch details below.
Apache Tomcat Cross-site scripting (XSS) vulnerability
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
org.apache.tomcat:tomcat☕org.apache.tomcat:tomcat☕org.apache.tomcat.embed:tomcat-embed-core☕org.apache.tomcat.embed:tomcat-embed-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Cross-site scripting (XSS) vulnerability in Apache Tomcat 5.5.9 through 5.5.26 and 6.0.0 through 6.0.16 allows remote attackers to inject arbitrary web script or HTML via the name parameter (aka the hostname attribute) to host-manager/html/add.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.tomcat:tomcat | ≥ 5.5.9&&< 5.5.27 | 5.5.27org.apache.tomcat:tomcat:5.5.27 |
| ☕Maven | org.apache.tomcat:tomcat | ≥ 6.0.0&&< 6.0.18 | 6.0.18org.apache.tomcat:tomcat:6.0.18 |
| ☕Maven | org.apache.tomcat.embed:tomcat-embed-core | ≥ 5.5.9&&< 5.5.27 | 5.5.27org.apache.tomcat.embed:tomcat-embed-core:5.5.27 |
| ☕Maven | org.apache.tomcat.embed:tomcat-embed-core | ≥ 6.0.0&&< 6.0.18 | 6.0.18org.apache.tomcat.embed:tomcat-embed-core:6.0.18 |
Affected Products
tomcatapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.tomcat:tomcat, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.tomcat:tomcat to 5.5.27 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2008-1947 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Developer Suite V.3 | tomcat5-0:5.5.23-0jpp_12rh | RHSA-2008:0864 |
| Red Hat Enterprise Linux 5 | tomcat5-0:5.5.23-0jpp.7.el5_2.1 | RHSA-2008:0648 |
| Red Hat Network Satellite Server v 5.0 | tomcat5-0:5.0.30-0jpp_12rh | RHSA-2008:1007 |
| RHAPS Version 2 for RHEL 4 | tomcat5-0:5.5.23-0jpp_4rh.9 | RHSA-2008:0862 |
Frequently Asked Questions
Is CVE-2008-1947 in your dependencies?
Find it across Maven, including transitive dependencies.