CVE-2017-5651 Expected Behavior Violation in Apache Tomcat

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.5.08.5.13
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 8.5.08.5.13
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.0.M19.0.0.M19
org.apache.tomcat.embed:tomcat-embed-core MavenFrom 9.0.0.M19.0.0.M19
org.apache.tomcat:tomcat-coyote MavenFrom 8.5.08.5.13
org.apache.tomcat:tomcat-coyote MavenFrom 8.5.08.5.13
2 more packages
org.apache.tomcat:tomcat-coyote MavenFrom 9.0.0.M19.0.0.M19
org.apache.tomcat:tomcat-coyote MavenFrom 9.0.0.M19.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.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-9hg2-395j-83rm.

Is CVE-2017-5651 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free