Cross-site scripting in Apache Tomcat
Apache Tomcat
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.tomcat.embed:tomcat-embed-core Maven |
|
|
| org.apache.tomcat:tomcat-catalina Maven |
Apache Tomcat
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.tomcat.embed:tomcat-embed-core Maven |
|
|
| org.apache.tomcat:tomcat-catalina Maven |
|
|
| org.apache.tomcat:tomcat Maven |
|
|
The SSI printenv command in Apache Tomcat 9.0.0.M1 to 9.0.0.17, 8.5.0 to 8.5.39 and 7.0.0 to 7.0.93 echoes user provided data without escaping and is, therefore, vulnerable to XSS. SSI is disabled by default. The printenv command is intended for debugging and is unlikely to be present in a production website.
From the CVE record · apache
Apache Tomcat's SSI printenv command echoes user-provided data without escaping, allowing cross-site scripting (XSS). Exploitation requires SSI, which is disabled by default, and use of the printenv command; the input does not specify authentication or user-interaction requirements.
Check deployments using Apache Tomcat or the Maven packages tomcat-embed-core, tomcat-catalina, or tomcat in versions 9.0.0 through 9.0.16, 8.5.0 through 8.5.39, or 7.0.0 through 7.0.93.