CVE-2016-8745
Concurrent Execution using Shared Resource with Improper Synchronization in Apache Tomcat
Description
A bug in the error handling of the send file code for the NIO HTTP connector in Apache Tomcat 9.0.0.M1 to 9.0.0.M13, 8.5.0 to 8.5.8, 8.0.0.RC1 to 8.0.39, 7.0.0 to 7.0.73 and 6.0.16 to 6.0.48 resulted in the current Processor object being added to the Processor cache multiple times. This in turn meant that the same Processor could be used for concurrent requests. Sharing a Processor can result in information leakage between requests including, not not limited to, session ID and the response body. The bug was first noticed in 8.5.x onwards where it appears the refactoring of the Connector code for 8.5.x onwards made it more likely that the bug was observed. Initially it was thought that the 8.5.x refactoring introduced the bug but further investigation has shown that the bug is present in all currently supported Tomcat versions.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.tomcat » tomcat-util | >= 6.0.16, < 6.0.50>= 7.0.0, < 7.0.75>= 8.0.0-RC1, < 8.0.41>= 8.5.0, < 8.5.9>= 9.0.0.M1, < 9.0.0.M14 | 6.0.50, 7.0.75, 8.0.41, 8.5.9, 9.0.0.M14 |
Blast radius
62% of the dependent artifacts (2,717) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 830 |
| 2 hops | 2,905 |
| 3 hops | 28,091 |
| 4 hops | 39,440 |
| 5 hops | 22,367 |
| 6 hops | 5,969 |
Most used dependents
- ch.qos.logback » logback-classic35,256 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.wso2.carbon » org.wso2.carbon.ui803 usages
- org.apache.tomcat » tomcat-catalina709 usages
- org.apache.tomcat.maven » tomcat7-maven-plugin443 usages
- org.wso2.carbon.identity.framework » org.wso2.carbon.identity.core350 usages
- org.apache.tomcat » tomcat-jasper303 usages
- org.apache.tomcat » tomcat-coyote262 usages
- org.wso2.carbon.automation » org.wso2.carbon.automation.test.utils179 usages
- org.wso2.carbon.identity » org.wso2.carbon.identity.core135 usages
- org.wso2.carbon.identity.framework » org.wso2.carbon.identity.base127 usages
- org.wso2.carbon.apimgt » org.wso2.carbon.apimgt.impl126 usages
- org.wso2.carbon.identity.inbound.auth.oauth2 » org.wso2.carbon.identity.oauth113 usages
- org.wso2.carbon » org.wso2.carbon.mediator.service110 usages
- org.wso2.carbon.identity » org.wso2.carbon.identity.application.authentication.framework108 usages
Computed from the dependency graph of build 20261126.1706 (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.
