cve.bz

CVE-2017-5664 apache tomcat

7.5 highEPSS 17%Fix available

High (7.5) in apache tomcat. EPSS 17% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat:tomcat 7.0.78, 8.0.44, 8.5.15.

On this page
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.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
17% (unchanged from 17% a week ago; 17% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-755 Improper Handling of Exceptional Conditions
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-5664 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-5664?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-5664?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-5664 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2017-5664

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2017-5664](https://cve.bz/cve/badge/CVE-2017-5664.svg)](https://cve.bz/cve/CVE-2017-5664)

HTML:

<a href="https://cve.bz/cve/CVE-2017-5664"><img src="https://cve.bz/cve/badge/CVE-2017-5664.svg" alt="CVE-2017-5664"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:tomcat7.0.0
apache:tomcat7.0.0:beta
apache:tomcat7.0.1
apache:tomcat7.0.2
apache:tomcat7.0.2:beta
apache:tomcat7.0.3
apache:tomcat7.0.4
apache:tomcat7.0.4:beta
apache:tomcat7.0.5
apache:tomcat7.0.5:beta
apache:tomcat7.0.6
apache:tomcat7.0.7
apache:tomcat7.0.8
apache:tomcat7.0.9
apache:tomcat7.0.10
apache:tomcat7.0.11
apache:tomcat7.0.12
apache:tomcat7.0.13
apache:tomcat7.0.14
apache:tomcat7.0.15
apache:tomcat7.0.16
apache:tomcat7.0.17
apache:tomcat7.0.18
apache:tomcat7.0.19
apache:tomcat7.0.20
apache:tomcat7.0.21
apache:tomcat7.0.22
apache:tomcat7.0.23
apache:tomcat7.0.24
apache:tomcat7.0.25
apache:tomcat7.0.26
apache:tomcat7.0.27
apache:tomcat7.0.28
apache:tomcat7.0.29
apache:tomcat7.0.30
apache:tomcat7.0.31
apache:tomcat7.0.32
apache:tomcat7.0.33
apache:tomcat7.0.34
apache:tomcat7.0.35
apache:tomcat7.0.36
apache:tomcat7.0.37
apache:tomcat7.0.38
apache:tomcat7.0.39
apache:tomcat7.0.40
apache:tomcat7.0.41
apache:tomcat7.0.42
apache:tomcat7.0.43
apache:tomcat7.0.44
apache:tomcat7.0.45
apache:tomcat7.0.46
apache:tomcat7.0.47
apache:tomcat7.0.48
apache:tomcat7.0.49
apache:tomcat7.0.50
apache:tomcat7.0.51
apache:tomcat7.0.54
apache:tomcat7.0.55
apache:tomcat7.0.56
apache:tomcat7.0.57
apache:tomcat7.0.58
apache:tomcat7.0.59
apache:tomcat7.0.60
apache:tomcat7.0.61
apache:tomcat7.0.62
apache:tomcat7.0.63
apache:tomcat7.0.64
apache:tomcat7.0.65
apache:tomcat7.0.66
apache:tomcat7.0.67
apache:tomcat7.0.68
apache:tomcat7.0.69
apache:tomcat7.0.70
apache:tomcat7.0.71
apache:tomcat7.0.72
apache:tomcat7.0.73
apache:tomcat7.0.74
apache:tomcat7.0.75
apache:tomcat7.0.76
apache:tomcat7.0.77
apache:tomcat8.0.0:rc1
apache:tomcat8.0.0:rc10
apache:tomcat8.0.0:rc3
apache:tomcat8.0.0:rc5
apache:tomcat8.0.1
apache:tomcat8.0.2
apache:tomcat8.0.3
apache:tomcat8.0.4
apache:tomcat8.0.5
apache:tomcat8.0.6
apache:tomcat8.0.7
apache:tomcat8.0.9
apache:tomcat8.0.10
apache:tomcat8.0.11
apache:tomcat8.0.12
apache:tomcat8.0.13
apache:tomcat8.0.14
apache:tomcat8.0.15
apache:tomcat8.0.16
apache:tomcat8.0.17
apache:tomcat8.0.18
apache:tomcat8.0.19
apache:tomcat8.0.20
apache:tomcat8.0.21
apache:tomcat8.0.22
apache:tomcat8.0.23
apache:tomcat8.0.24
apache:tomcat8.0.25
apache:tomcat8.0.26
apache:tomcat8.0.27
apache:tomcat8.0.28
apache:tomcat8.0.29
apache:tomcat8.0.30
apache:tomcat8.0.31
apache:tomcat8.0.32
apache:tomcat8.0.33
apache:tomcat8.0.34
apache:tomcat8.0.35
apache:tomcat8.0.36
apache:tomcat8.0.37
apache:tomcat8.0.38
apache:tomcat8.0.39
apache:tomcat8.0.40
apache:tomcat8.0.41
apache:tomcat8.0.42
apache:tomcat8.0.43
apache:tomcat8.5.0
apache:tomcat8.5.1
apache:tomcat8.5.2
apache:tomcat8.5.3
apache:tomcat8.5.4
apache:tomcat8.5.5
apache:tomcat8.5.6
apache:tomcat8.5.7
apache:tomcat8.5.8
apache:tomcat8.5.9
apache:tomcat8.5.10
apache:tomcat8.5.11
apache:tomcat8.5.12
apache:tomcat8.5.13
apache:tomcat8.5.14
apache:tomcat9.0.0:milestone1
apache:tomcat9.0.0:milestone10
apache:tomcat9.0.0:milestone11
apache:tomcat9.0.0:milestone12
apache:tomcat9.0.0:milestone13
apache:tomcat9.0.0:milestone14
apache:tomcat9.0.0:milestone15
apache:tomcat9.0.0:milestone16
apache:tomcat9.0.0:milestone17
apache:tomcat9.0.0:milestone18
apache:tomcat9.0.0:milestone19
apache:tomcat9.0.0:milestone2
apache:tomcat9.0.0:milestone20
apache:tomcat9.0.0:milestone3
apache:tomcat9.0.0:milestone4
apache:tomcat9.0.0:milestone5
apache:tomcat9.0.0:milestone6
apache:tomcat9.0.0:milestone7
apache:tomcat9.0.0:milestone8
apache:tomcat9.0.0:milestone9

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jmvv-524f-hj5jMavenorg.apache.tomcat:tomcat>=9.0.0.M1 <9.0.0.M219.0.0.M21
GHSA-jmvv-524f-hj5jMavenorg.apache.tomcat:tomcat>=8.5.0 <8.5.158.5.15
GHSA-jmvv-524f-hj5jMavenorg.apache.tomcat:tomcat>=8.0.0 <8.0.448.0.44
GHSA-jmvv-524f-hj5jMavenorg.apache.tomcat:tomcat>=7.0.0 <7.0.787.0.78

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7tomcat77.0.28-4+deb7u14DLA-996-1
Debian8tomcat77.0.56-3+deb8u11DSA-3892-1
Debian8tomcat88.0.14-1+deb8u10DSA-3891-1
Debian9tomcat88.5.14-1+deb9u1DSA-3891-1
Ubuntu14.04:LTStomcat77.0.52-1ubuntu0.13UBUNTU-CVE-2017-5664 USN-3519-1
Ubuntu16.04:LTStomcat88.0.32-1ubuntu1.5UBUNTU-CVE-2017-5664 USN-3519-1
UbuntuPro:14.04:LTStomcat6no fix listedUBUNTU-CVE-2017-5664
UbuntuPro:16.04:LTStomcat7no fix listedUBUNTU-CVE-2017-5664
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moretomcat6, tomcat6-lib, tomcat6-javadoc and 6 more0:6.0.24-111.el6_9RHSA-2017:3080
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moretomcat, tomcat-lib, tomcat-jsvc and 7 more0:7.0.69-12.el7_3RHSA-2017:1809
Red Hatjboss_enterprise_application_platform:6::el5apache-cxf0:2.7.18-7.SP6_redhat_1.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5codehaus-jackson, codehaus-jackson-xc, codehaus-jackson-jaxrs and 2 more0:1.9.9-11.redhat_5.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5hibernate4-eap6, hibernate4-core-eap6, hibernate4-envers-eap6 and 2 more0:4.2.27-1.Final_redhat_1.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5hornetq0:2.3.25-22.SP20_redhat_1.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5infinispan, infinispan-core, infinispan-client-hotrod and 2 more0:5.2.22-1.Final_redhat_1.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5jboss-as-ee, jboss-as-cli, jboss-as-cmp and 58 more0:7.5.17-2.Final_redhat_4.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5jboss-marshalling0:1.4.10-3.SP3_redhat_1.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5jboss-metadata, jboss-metadata-ear, jboss-metadata-ejb and 3 more0:7.2.3-1.Final_redhat_1.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5jboss-modules0:1.3.10-1.Final_redhat_1.1.ep6.el5RHSA-2017:2637
Red Hatjboss_enterprise_application_platform:6::el5jboss-remoting30:3.3.10-1.Final_redhat_1.1.ep6.el5RHSA-2017:2637
56 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4tomcat66.0.53-0.57.7.1SUSE-SU-2018:1847-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1, OpenStack Cloud 6tomcat8.0.43-10.24.1SUSE-SU-2017:3279-1
SUSELinux Enterprise Server 12 SP2, Linux Enterprise Server 12 SP3, Linux Enterprise Server for Raspberry Pi 12 SP2 and 2 moretomcat8.0.43-29.5.1SUSE-SU-2017:3039-1
SUSELinux Enterprise Server 12-LTSStomcat7.0.82-7.16.1SUSE-SU-2017:3059-1
openSUSETumbleweedtomcat9.0.36-8.4openSUSE-SU-2024:11468-1
openSUSETumbleweedtomcat1010.1.14-1.1openSUSE-SU-2024:13441-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw can be triggered for static error pages only if the readonly property for the DefaultServlet is set to false in the $CATALINA_HOME/conf/web.xml file. The default for readonly is true.

Red Hat's mitigation

If it is necessary to have the DefaultServlet property readonly=false, use a jsp error page, for example Error404.jsp rather than a static html error page. Alternatively do not specify an error-page in the Deployment Descriptor and use a custom ErrorReportValve.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6tomcat6-0:6.0.24-111.el6_9Fixed 2017-10-30RHSA-2017:3080
Red Hat Enterprise Linux 7tomcat-0:7.0.69-12.el7_3Fixed 2017-07-27RHSA-2017:1809
Red Hat JBoss Enterprise Application Platform 6.4Fixed 2017-09-05RHSA-2017:2633
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5apache-cxf-0:2.7.18-7.SP6_redhat_1.1.ep6.el5Fixed 2017-09-05RHSA-2017:2637
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5codehaus-jackson-0:1.9.9-11.redhat_5.1.ep6.el5Fixed 2017-09-05RHSA-2017:2637
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5hibernate4-eap6-0:4.2.27-1.Final_redhat_1.1.ep6.el5Fixed 2017-09-05RHSA-2017:2637
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5hornetq-0:2.3.25-22.SP20_redhat_1.1.ep6.el5Fixed 2017-09-05RHSA-2017:2637
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5infinispan-0:5.2.22-1.Final_redhat_1.1.ep6.el5Fixed 2017-09-05RHSA-2017:2637
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jboss-as-appclient-0:7.5.17-2.Final_redhat_4.1.ep6.el5Fixed 2017-09-05RHSA-2017:2637
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jbossas-appclient-0:7.5.17-2.Final_redhat_4.1.ep6.el5Fixed 2017-09-05RHSA-2017:2637
Red Hat JBoss Data Grid 6jbosswebNot affected
Red Hat JBoss Data Virtualization 6jbosswebNot affected
Red Hat JBoss Enterprise Application Platform 5jbosswebWill not fix
Red Hat JBoss Fuse 6jbosswebUnder investigation
Red Hat JBoss Fuse 6tomcat7Under investigation
Red Hat JBoss Fuse 6tomcat8Under investigation
Red Hat JBoss Fuse Service Works 6jbosswebWill not fix
Red Hat JBoss Operations Network 3jbosswebWill not fix
Red Hat JBoss Portal 6jbosswebAffected
Red Hat Software Collectionsrh-java-common-tomcatNot affected
245 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-5664.

References

Check your stackJSON