Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.tomcat.embed/tomcat-embed-core
  4. ›
  5. CVE-2017-5664

CVE-2017-5664: Improper Handling of Exceptional Conditions

June 6, 2017 (updated October 3, 2019)

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. The Default Servlet in Apache Tomcat does 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 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.

References

  • www.securityfocus.com/bid/98888
  • nvd.nist.gov/vuln/detail/CVE-2017-5664

Code Behaviors & Features

Detect and mitigate CVE-2017-5664 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.0.0 up to 7.0.51, all versions starting from 7.0.54 up to 7.0.77, all versions starting from 8.0.0 up to 8.0.7, all versions starting from 8.0.9 up to 8.0.43, all versions starting from 8.5.0 up to 8.5.14, version 9.0.0

Fixed versions

  • 7.0.52
  • 7.0.78
  • 8.0.8
  • 8.0.44
  • 8.5.15
  • 9.0.1

Solution

Upgrade to versions 7.0.52, 7.0.78, 8.0.8, 8.0.44, 8.5.15, 9.0.1 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-755: Improper Handling of Exceptional Conditions

Source file

maven/org.apache.tomcat.embed/tomcat-embed-core/CVE-2017-5664.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:55 +0000.