Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2017-5664

HIGH 7.5EPSS 98%

Improper Handling of Exceptional Conditions in Apache Tomcat

Also known as GHSA-jmvv-524f-hj5j

Mitigation

  • Upgrade org.apache.tomcat:tomcat to one of 9.0.0.M21, 8.5.15, 8.0.44, 7.0.78 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.apache.tomcat:tomcat (>= 9.0.0.M1, < 9.0.0.M21)
  • Anyone running Apache Software Foundation Apache Tomcat 9.0.0.M1 to 9.0.0.M20; 8.5.0 to 8.5.14; 8.0.0.RC1 to 8.0.43; 7.0.0 to 7.0.77

Vulnerability facts

Affected
org.apache.tomcat:tomcat >= 9.0.0.M1, < 9.0.0.M21
Fixed in
9.0.0.M21, 8.5.15, 8.0.44, 7.0.78
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
EPSS
16.57% chance of exploitation in 30 days (percentile 98, 2026-11-26)
CWE
CWE-755
Published
Modified

Description

The error page mechanism of the Java Servlet Specification requires that, when an error occurs and an error page is configured for the error that occurred, the original request and response are forwarded to the error page. This means that the request is presented to the error page with the original HTTP method. If the error page is a static file, expected behaviour is to serve content of the file as if processing a GET request, regardless of the actual HTTP method. The Default Servlet in Apache Tomcat 9.0.0.M1 to 9.0.0.M20, 8.5.0 to 8.5.14, 8.0.0.RC1 to 8.0.43 and 7.0.0 to 7.0.77 did not do this. Depending on the original request this could lead to unexpected and undesirable results for static error pages including, if the DefaultServlet is configured to permit writes, the replacement or removal of the custom error page. Notes for other user provided error pages: (1) Unless explicitly coded otherwise, JSPs ignore the HTTP method. JSPs used as error pages must must ensure that they handle any error dispatch as a GET request, regardless of the actual method. (2) By default, the response generated by a Servlet does depend on the HTTP method. Custom Servlets used as error pages must ensure that they handle any error dispatch as a GET request, regardless of the actual method.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.apache.tomcat:tomcat>= 9.0.0.M1, < 9.0.0.M219.0.0.M21, 8.5.15, 8.0.44, 7.0.78osv
Apache Software Foundation Apache Tomcat9.0.0.M1 to 9.0.0.M20; 8.5.0 to 8.5.14; 8.0.0.RC1 to 8.0.43; 7.0.0 to 7.0.77—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2017-5664. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2017-5664.md
Affected: org.apache.tomcat:tomcat >= 9.0.0.M1, < 9.0.0.M21
Fixed in: 9.0.0.M21, 8.5.15, 8.0.44, 7.0.78

Steps:
1. Search this machine and project for org.apache.tomcat:tomcat (Maven), Apache Software Foundation Apache Tomcat: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

Other

FAQ

Is CVE-2017-5664 being exploited?

There is no confirmed exploitation: CVE-2017-5664 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 16.57% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2017-5664?

High: CVSS 7.5 (v3.0, scored by NVD). Remote, no login needed.

Which versions are affected by CVE-2017-5664?

org.apache.tomcat:tomcat >= 9.0.0.M1, < 9.0.0.M21.

Is there a fix for CVE-2017-5664?

Yes. Fixed in 9.0.0.M21, 8.5.15, 8.0.44, 7.0.78. Upgrade org.apache.tomcat:tomcat to one of 9.0.0.M21, 8.5.15, 8.0.44, 7.0.78 (or later in the same release line).

How do I check if I'm affected by CVE-2017-5664?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors