HIGH 7.5

CVE-2022-45143

Apache Tomcat improperly escapes input from JsonErrorReportValve

Description

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.

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.apache.tomcat » tomcat-catalina
>= 10.1.0, < 10.1.2
10.1.2
org.apache.tomcat » tomcat-util
>= 8.5.83, < 8.5.84>= 9.0.40, < 9.0.69
8.5.84, 9.0.69
org.apache.tomcat.embed » tomcat-embed-core
>= 8.5.83, < 8.5.84>= 9.0.40, < 9.0.69>= 10.1.0, < 10.1.2
8.5.84, 9.0.69, 10.1.2

Blast radius

3affected artifacts
68affected versions
8,869dependent artifacts (est.)
320,295dependent versions

47% of the dependent artifacts (4,230) still pull an affected version in their latest release.

DepthDependent versions
Direct
3,488
2 hops
5,397
3 hops
149,875
4 hops
111,205
5 hops
43,810
6 hops
6,520

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.