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)
| Artifact | Affected versions | Fixed 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
47% of the dependent artifacts (4,230) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springframework.boot » spring-boot-starter-tomcat901 usages
- org.wso2.carbon » org.wso2.carbon.ui803 usages
- org.apache.tomcat » tomcat-catalina709 usages
- org.apache.tomcat.embed » tomcat-embed-jasper630 usages
- org.redisson » redisson-spring-boot-starter574 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
- org.apache.tomcat.embed » tomcat-embed-websocket353 usages
- org.wso2.carbon.identity.framework » org.wso2.carbon.identity.core350 usages
- org.springframework.boot » spring-boot-starter-data-rest350 usages
- org.apache.tomcat » tomcat-jasper303 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-45143
- Webhttps://github.com/apache/tomcat/commit/0cab3a56bd89f70e7481bb0d68395dc7e130dbbf
- Webhttps://github.com/apache/tomcat/commit/6a0ac6a438cbbb66b6e9c5223842f53bf0cb50aa
- Webhttps://github.com/apache/tomcat/commit/b336f4e58893ea35114f1e4a415657f723b1298e
- Packagehttps://github.com/apache/tomcat
- Webhttps://lists.apache.org/thread/yqkd183xrw3wqvnpcg3osbcryq85fkzj
- Webhttps://security.gentoo.org/glsa/202305-37
