CVE-2018-8037: Vulnerability in org.apache.tomcat.embed:tomcat-embed-core
Summary
CVE-2018-8037: Apache Tomcat Race Condition vulnerability. Affects org.apache.tomcat.embed:tomcat-embed-core across 2 version ranges.
>= 8.5.5, < 8.5.32
>= 9.0.0.M9, < 9.0.10
Fixed in 8.5.32 or 9.0.10, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
org.apache.tomcat.embed:tomcat-embed-core is a package in the Maven ecosystem that provides embedded Tomcat functionality. It allows developers to run Tomcat within their applications, enabling them to deploy web applications without the need for a separate Tomcat installation. This package is widely used in Java web development.
Vulnerability Detail
This vulnerability, identified as CVE-2018-8037, is of moderate severity. It affects versions 9.0.0.M9 to 9.0.9 and 8.5.5 to 8.5.31 of org.apache.tomcat.embed:tomcat-embed-core. The vulnerability arises from a race condition that occurs when an async request is completed by the application at the same time as the container triggers the async timeout. This race condition can result in a user seeing a response intended for a different user. Additionally, the NIO and NIO2 connectors in the package do not correctly track the closure of the connection when an async request is completed by the application and timed out by the container simultaneously, leading to the same issue of users seeing responses intended for other users. The Common Weakness Enumeration (CWE) ID associated with this vulnerability is CWE-362.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 8.5.5, < 8.5.328.5.32 -
>= 9.0.0.M9, < 9.0.109.0.10
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. The recommended solution is to upgrade to the fixed version of the package.
Conclusion
In conclusion, org.apache.tomcat.embed:tomcat-embed-core is vulnerable to a race condition that can result in users seeing responses intended for other users. Upgrading to the fixed versions of the package, 9.0.10 or 8.5.32, is recommended to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.tomcat.embed:tomcat-embed-core →
FAQ
org.apache.tomcat.embed:tomcat-embed-core is a package in the Maven ecosystem that provides embedded Tomcat functionality for Java web applications.
This vulnerability can result in a user seeing a response intended for a different user, potentially exposing sensitive information.
Versions 9.0.0.M9 to 9.0.9 and 8.5.5 to 8.5.31 of org.apache.tomcat.embed:tomcat-embed-core are affected.
The CWE ID associated with this vulnerability is CWE-362.
To fix this vulnerability, upgrade to version 9.0.10 if you are using versions 9.0.0.M9 to 9.0.9, or upgrade to version 8.5.32 if you are using versions 8.5.5 to 8.5.31.
References
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.tomcat.embed:tomcat-embed-core.