KeygraphLabs · CVE MCP

CVE-2017-5664 · apache

CVE-2017-5664

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...

Published 2017-06-06, last changed 2026-10-15. Weakness: CWE-755.

CVSS
7.5
high, from NVD
EPSS
16.6%
percentile 97.1%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: org.apache.tomcat:tomcat 7.0.78, 8.0.44, 8.5.15, 9.0.0.M21 (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 7d93527254, 58b32048ce. Functions changed by the fix: getPathPrefix, service. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2017-06-06Published
2022-05-13Package advisory GHSA-jmvv-524f-hj5j
2026-10-15Record last changed
2026-11-30EPSS when our history starts: 16.6%
2026-12-01Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-jmvv-524f-hj5jorg.apache.tomcat:tomcat (Maven)9.0.0.M21
GHSA-jmvv-524f-hj5jorg.apache.tomcat:tomcat (Maven)8.5.15
GHSA-jmvv-524f-hj5jorg.apache.tomcat:tomcat (Maven)8.0.44
GHSA-jmvv-524f-hj5jorg.apache.tomcat:tomcat (Maven)7.0.78

Also known as: GHSA-jmvv-524f-hj5j

Related

CVEPublishedCVSSSummary
CVE-2026-685252026-08-259.1Apache Tomcat: Redirect after FORM auth may bypass method specific constraints
CVE-2026-659052026-08-259.8Apache Tomcat: Limited replay attack possible with DIGEST authentication
CVE-2026-651822026-08-259.1Apache Tomcat: Bypass longest prefix security constraint
CVE-2026-559572026-06-297.3Apache Tomcat: Authentication bypass with JNDIRealm and GSSAPI authenticated bind
CVE-2026-559562026-06-296.5Apache Tomcat: Security constraints for default servlet ignored method
CVE-2026-559552026-06-296.5Apache Tomcat: EncryptInterceptor not protected against replay attacks
CVE-2026-552762026-06-299.1Apache Tomcat: Logged effective web.xml is incomplete
CVE-2026-534042026-06-297.3Apache Tomcat: Bad ornext processing in RewriteValve

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-2017-5664, or call /api/v1/vulnerabilities/CVE-2017-5664. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org