Error Handling Affecting tomcat7-docs-webapp package, versions <0:7.0.75-1.25.amzn1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.46% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN201803-TOMCAT7DOCSWEBAPP-1704880
  • published27 Sept 2021
  • disclosed10 Aug 2017

Introduced: 10 Aug 2017

CVE-2016-8745  (opens in a new tab)
CWE-388  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 tomcat7-docs-webapp to version 0:7.0.75-1.25.amzn1 or higher.
This issue was patched in ALAS-2017-796.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tomcat7-docs-webapp package and not the tomcat7-docs-webapp package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

A bug in the error handling of the send file code for the NIO HTTP connector in Apache Tomcat 9.0.0.M1 to 9.0.0.M13, 8.5.0 to 8.5.8, 8.0.0.RC1 to 8.0.39, 7.0.0 to 7.0.73 and 6.0.16 to 6.0.48 resulted in the current Processor object being added to the Processor cache multiple times. This in turn meant that the same Processor could be used for concurrent requests. Sharing a Processor can result in information leakage between requests including, not not limited to, session ID and the response body. The bug was first noticed in 8.5.x onwards where it appears the refactoring of the Connector code for 8.5.x onwards made it more likely that the bug was observed. Initially it was thought that the 8.5.x refactoring introduced the bug but further investigation has shown that the bug is present in all currently supported Tomcat versions.

References