CVE-2016-8745 · apache
CVE-2016-8745
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.
Published 2017-08-10, last changed 2026-06-17. Weakness: CWE-388.
How to fix
Upgrade to a fixed version: org.apache.tomcat:tomcat-util 6.0.50, 7.0.75, 8.0.41, 8.5.9, 9.0.0.M14 (Maven) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in apache/tomcat by 143bb466cf, 16a57bc885, cbc9b18a84. Functions changed by the fix: processSendfile. Regression tests: test/org/apache/catalina/connector/TestSendFile.java. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-08-10 | Published |
| 2022-05-14 | Package advisory GHSA-w3j5-q8f2-3cqq |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 16.0% |
| 2026-12-01 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-w3j5-q8f2-3cqq | org.apache.tomcat:tomcat-util (Maven) | 9.0.0.M14 |
| GHSA-w3j5-q8f2-3cqq | org.apache.tomcat:tomcat-util (Maven) | 8.5.9 |
| GHSA-w3j5-q8f2-3cqq | org.apache.tomcat:tomcat-util (Maven) | 8.0.41 |
| GHSA-w3j5-q8f2-3cqq | org.apache.tomcat:tomcat-util (Maven) | 7.0.75 |
| GHSA-w3j5-q8f2-3cqq | org.apache.tomcat:tomcat-util (Maven) | 6.0.50 |
Also known as: GHSA-w3j5-q8f2-3cqq
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-53434 | 2026-06-29 | 9.1 | Apache Tomcat: Invalid CRL configuration doesn't trigger failure for FFM Connector |
| CVE-2023-42795 | 2023-10-10 | 5.3 | Apache Tomcat: Failure during request clean-up leads to sensitive data leaking to subsequent requests |
| CVE-2022-45143 | 2023-01-03 | 7.5 | Apache Tomcat: JsonErrorReportValve escaping |
| CVE-2014-0099 | 2014-05-31 | 4.3 | same package: org.apache.tomcat:tomcat-util (Maven) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-8745, or call /api/v1/vulnerabilities/CVE-2016-8745. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.