Apache Tomcat: JsonErrorReportValve escaping
Apache Software Foundation Apache Tomcat
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.tomcat.embed:tomcat-embed-core Maven |
|
|
| org.apache.tomcat:tomcat-catalina Maven |
Apache Software Foundation Apache Tomcat
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.tomcat.embed:tomcat-embed-core Maven |
|
|
| org.apache.tomcat:tomcat-catalina Maven |
|
|
| org.apache.tomcat:tomcat-util Maven |
|
|
The JsonErrorReportValve in Apache Tomcat 8.5.83, 9.0.40 to 9.0.68 and 10.1.0-M1 to 10.1.1 did not escape the type, message or description values. In some circumstances these are constructed from user provided data and it was therefore possible for users to supply values that invalidated or manipulated the JSON output.
From the CVE record · apache
JsonErrorReportValve did not escape type, message, or description values in its JSON output. When these values are constructed from user-provided data, a user can supply values that invalidate or manipulate the output. The input does not specify whether authentication or additional user interaction is required.
Engineers running Apache Tomcat 8.5.83, 9.0.40–9.0.68, or 10.1.0-M1–10.1.1, or using the listed affected Maven package versions, should check their deployments.