CVE-2016-6817 Improper Restriction of Operations within the Bounds of a Memory Buffer in Apache Tomcat

High 7.5 Published Updated

An attacker can cause a denial of service in Apache Tomcat by sending an oversized HTTP/2 header, triggering an infinite loop in the parser.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-6817?

CVE-2016-6817 is a high-severity denial of service vulnerability in Apache Tomcat, published on 10 Aug 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The HTTP/2 header parser in Apache Tomcat 9.0.0.M1 to 9.0.0.M11 and 8.5.0 to 8.5.6 entered an infinite loop if a header was received that was larger than the available buffer. This made a denial of service attack possible.

Weakness: CWE-119, CWE-835

Which versions are affected by CVE-2016-6817?

4 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 8.5.08.5.8
org.apache.tomcat:tomcat MavenFrom 8.5.08.5.8
org.apache.tomcat:tomcat MavenFrom 9.0.0.M19.0.0.M12
org.apache.tomcat:tomcat MavenFrom 9.0.0.M19.0.0.M12

Products include Apache Tomcat.

How do I fix CVE-2016-6817?

Upgrade org.apache.tomcat:tomcat to a fixed version for your release line: 8.5.8 or 9.0.0.M12.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2016-6817 being exploited?

There is no known exploitation of CVE-2016-6817 in the wild and no public exploit code.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-698c-2x4j-g9gq.

Is CVE-2016-6817 in your software?

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

Check your SBOMs for free