GitHub Advisoryadvisory · Maven

GHSA-w3j5-q8f2-3cqq Concurrent Execution using Shared Resource with Improper Synchronization in Apache Tomcat

HIGH Published 2022-05-14 Modified 2025-09-02 Official page ↗
Aliases
CVE-2016-8745
Ecosystem
Maven
Packages
org.apache.tomcat:tomcat-util
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-362
Reviewed
2022-07-06

Affected packages

• Maven org.apache.tomcat:tomcat-util: >= 9.0.0.M1, < 9.0.0.M14 → fixed in 9.0.0.M14 • Maven org.apache.tomcat:tomcat-util: >= 8.5.0, < 8.5.9 → fixed in 8.5.9 • Maven org.apache.tomcat:tomcat-util: >= 8.0.0-RC1, < 8.0.41 → fixed in 8.0.41 • Maven org.apache.tomcat:tomcat-util: >= 7.0.0, < 7.0.75 → fixed in 7.0.75 • Maven org.apache.tomcat:tomcat-util: >= 6.0.16, < 6.0.50 → fixed in 6.0.50

Description

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.

Related

Alias · CVE (1)

  • CVE-2016-8745 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,… vulnerability

Weakness · CWE (1)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness

References