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 ensure that they handle any error dispatch as a GET request, regardless of the actual method.
What to do
Likely to be exploited: EPSS gives a 17% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Maven, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | tomcat6 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | tomcat7 | Fix pending | UBUNTU-CVE-2017-5664 | |
| Ubuntu 16.04 | tomcat8 | Fixed | 8.0.32-1ubuntu1.5 | UBUNTU-CVE-2017-5664 |
| Ubuntu 14.04 | tomcat6 | Fix pending | UBUNTU-CVE-2017-5664 | |
| Ubuntu 14.04 | tomcat7 | Fixed | 7.0.52-1ubuntu0.13 | UBUNTU-CVE-2017-5664 |
| Red Hat Enterprise Linux 7 | tomcat | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-lib | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 7 | tomcat-webapps | Fixed | 0:7.0.69-12.el7_3 | RHSA-2017:1809 |
| Red Hat Enterprise Linux 6 | tomcat6 | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Red Hat Enterprise Linux 6 | tomcat6-lib | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Fixed | 0:6.0.24-111.el6_9 | RHSA-2017:3080 |
| Maven library | org.apache.tomcat:tomcat | Fixed | 7.0.78 | GHSA-jmvv-524f-hj5j |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Tomcat: affected: 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
Vendor advisories:
- http://www.debian.org/security/2017/dsa-3891 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:3080 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:1801 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:2635 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:2638 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:2494 (vendor-advisory)
References
- http://www.debian.org/security/2017/dsa-3891
- https://security.netapp.com/advisory/ntap-20171019-0002/
- http://www.securityfocus.com/bid/98888
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
- https://access.redhat.com/errata/RHSA-2017:3080
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03828en_us
- https://access.redhat.com/errata/RHSA-2017:1801
- https://access.redhat.com/errata/RHSA-2017:2635
- https://access.redhat.com/errata/RHSA-2017:2638
- https://access.redhat.com/errata/RHSA-2017:2494
- http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- https://lists.apache.org/thread.html/a42c48e37398d76334e17089e43ccab945238b8b7896538478d76066%40%3Cannounce.tomcat.apache.org%3E
- https://access.redhat.com/errata/RHSA-2017:2636
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.