VDB
Sign up
HIGH7.5

GHSA-rq2w-37h9-vg94

Apache Tomcat improperly escapes input from JsonErrorReportValve

Quick fix

GHSA-rq2w-37h9-vg94 — org.apache.tomcat.embed:tomcat-embed-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>8.5.84</version> for org.apache.tomcat.embed:tomcat-embed-core

Details

The `JsonErrorReportValve` in Apache Tomcat 8.5.83, 9.0.40 to 9.0.68 and 10.1.0-M1 to 10.1.1 does 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 8.5.83Fixed in: 8.5.84
Fix# pom.xml: bump <version>8.5.84</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 9.0.40Fixed in: 9.0.69
Fix# pom.xml: bump <version>9.0.69</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 10.1.0Fixed in: 10.1.2
Fix# pom.xml: bump <version>10.1.2</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven/org.apache.tomcat:tomcat-catalina
Introduced in: 10.1.0Fixed in: 10.1.2
Fix# pom.xml: bump <version>10.1.2</version> for org.apache.tomcat:tomcat-catalina
Maven/org.apache.tomcat:tomcat-util
Introduced in: 8.5.83Fixed in: 8.5.84
Fix# pom.xml: bump <version>8.5.84</version> for org.apache.tomcat:tomcat-util
Maven/org.apache.tomcat:tomcat-util
Introduced in: 9.0.40Fixed in: 9.0.69
Fix# pom.xml: bump <version>9.0.69</version> for org.apache.tomcat:tomcat-util

References