CVE-2017-5651 Expected Behavior Violation in Apache Tomcat
A race condition in Apache Tomcat's send file processing can cause response mix-ups, potentially leaking data or causing service errors.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-5651?
CVE-2017-5651 is a critical vulnerability in Apache Tomcat, published on 17 Apr 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In Apache Tomcat 9.0.0.M1 to 9.0.0.M18 and 8.5.0 to 8.5.12, the refactoring of the HTTP connectors introduced a regression in the send file processing. If the send file processing completed quickly, it was possible for the Processor to be added to the processor cache twice. This could result in the same Processor being used for multiple requests which in turn could lead to unexpected errors and/or response mix-up.
Which versions are affected by CVE-2017-5651?
8 open source packages ship an affected version, including org.apache.tomcat.embed:tomcat-embed-core and org.apache.tomcat:tomcat-coyote. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat.embed:tomcat-embed-core Maven | From 8.5.0 | 8.5.13 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 8.5.0 | 8.5.13 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 9.0.0.M1 | 9.0.0.M19 |
org.apache.tomcat.embed:tomcat-embed-core Maven | From 9.0.0.M1 | 9.0.0.M19 |
org.apache.tomcat:tomcat-coyote Maven | From 8.5.0 | 8.5.13 |
org.apache.tomcat:tomcat-coyote Maven | From 8.5.0 | 8.5.13 |
2 more packages
org.apache.tomcat:tomcat-coyote Maven | From 9.0.0.M1 | 9.0.0.M19 |
org.apache.tomcat:tomcat-coyote Maven | From 9.0.0.M1 | 9.0.0.M19 |
Products include Apache Tomcat.
How do I fix CVE-2017-5651?
Upgrade org.apache.tomcat.embed:tomcat-embed-core to a fixed version for your release line: 8.5.13 or 9.0.0.M19.
Is CVE-2017-5651 being exploited?
There is no known exploitation of CVE-2017-5651 in the wild and no public exploit code.
Other vulnerabilities in Apache Tomcat
Sources
Also known as GHSA-9hg2-395j-83rm.