GHSA-pxcx-cxq8-4mmw CVE-2014-0230
Uncontrolled Resource Consumption in Apache Tomcat
- Severity
- High
- The publisher's own rating, not a CVSS score
- Exploit chance (EPSS)
- 20.18%
- Chance of exploitation in the next 30 days. Higher than 97.46% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-400 Uncontrolled Resource Consumption
- Fix
6.0.44- Upgrade org.apache.tomcat:tomcat to this version or later
Description
Apache Tomcat 6.x before 6.0.44, 7.x before 7.0.55, and 8.x before 8.0.9 does not properly handle cases where an HTTP response occurs before finishing the reading of an entire request body, which allows remote attackers to cause a denial of service (thread consumption) via a series of aborted upload attempts.
Affected versions
Maven
| Package | Vulnerable | Fixed in |
|---|---|---|
| org.apache.tomcat:tomcat | >= 6.0.0, < 6.0.44 |
6.0.44 |
| org.apache.tomcat:tomcat | >= 7.0.0, < 7.0.55 |
7.0.55 |
| org.apache.tomcat:tomcat | >= 8.0.0, < 8.0.9 |
8.0.9 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
org.apache.tomcat:tomcat Maven → 6.0.44
- maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat</artifactId><version>6.0.44</version></dependency>- gradle
implementation("org.apache.tomcat:tomcat:6.0.44")
Weakness
CWE-400: Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource.
How to prevent it
- Architecture and Design: Design throttling mechanisms into the system architecture. The best protection is to limit the amount of resources that an unauthorized user can cause to be expended. A strong authentication and access control model will help prevent such attacks from occurring in the first place. The login application should be protected against DoS attacks as much as possible. Limiting the database access, perhaps by caching result sets, can help minimize the resources expended. To further limit the potential for a DoS attack, consider tracking the rate of requests received from users and blocking requests that exceed a defined rate threshold.
- Architecture and Design: Mitigation of resource exhaustion attacks requires that the target system either: recognizes the attack and denies that user further access for a given amount of time, or uniformly throttles all requests in order to make it more difficult to consume resources more quickly than they can again be freed. The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question. The second solution is simply difficult to effectively institute -- and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.
- Architecture and Design: Ensure that protocols have specific limits of scale placed on them.
- Implementation: Ensure that all failures in resource allocation place the system into a safe posture.
References
Advisories
Packages
Other links
- github.com/apache/tomcat/commit/6b2cfacf749be186ea77249a979af1d4863e47ba
- github.com/apache/tomcat/commit/812088583d0e60717a8fe9c6d14e12bcdc3e6c51
- github.com/apache/tomcat/commit/b1c8477e3e3ee635d19cc4d5987c2b157431e0c1
- github.com/apache/tomcat/commit/c1357e649641844109711d60cacb98e4b5fcd3cb
- github.com/apache/tomcat/commit/e28dd578fad90a6d5726ec34f3245c9f99d909a5
- github.com/apache/tomcat/commit/e3146f4b03a2386c3e57597e86134d4ed5c31303
- github.com/apache/tomcat/commit/fc049912464f0dcf9dede3761f38049369057e16
- github.com/apache/tomcat/commit/fdd9f11dc24b95e5425076abb58e968336f320a2
- lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19…
- lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9…
- lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859…
- lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb…
- lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95…
- lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b…
- lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113…
- issues.jboss.org/browse/JWS-220
- issues.jboss.org/browse/JWS-219
- h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay
- h20564.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay
- access.redhat.com/errata/RHSA-2015:2660
- access.redhat.com/errata/RHSA-2015:2659
- mail-archives.apache.org/mod_mbox/tomcat-announce/201505.mbox/%3C554949D1.8030904%40apache.or…
- marc.info
- marc.info
- openwall.com/lists/oss-security/2015/04/10/1
- rhn.redhat.com/errata/RHSA-2015-1622.html
- rhn.redhat.com/errata/RHSA-2016-0595.html
- rhn.redhat.com/errata/RHSA-2016-0596.html
- rhn.redhat.com/errata/RHSA-2016-0597.html
- rhn.redhat.com/errata/RHSA-2016-0598.html
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- tomcat.apache.org/security-6.html
- tomcat.apache.org/security-7.html
- tomcat.apache.org/security-8.html
- debian.org/security/2016/dsa-3447
- debian.org/security/2016/dsa-3530
- oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html
- oracle.com/technetwork/topics/security/cpujul2015-2367936.html
- ubuntu.com/usn/USN-2654-1
- ubuntu.com/usn/USN-2655-1
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-69r9-qgr7-g2wj Apache Tomcat Missing Encryption of Sensitive Data vulnerability | High Known exploited | Also affects org.apache.tomcat:tomcat |
| GHSA-h3x4-894j-xpx5 Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-9xv2-5v5q-p794 Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-gcx9-497g-6cp6 Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-5m62-pw8w-7w9f Apache Tomcat - Security constraints not correctly applied | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-9m89-8frq-c98c Apache Tomcat - AJP secret compared in non-constant time | Low | Also affects org.apache.tomcat:tomcat |
| GHSA-5mp6-jrq3-r938 Apache Tomcat: LockOutRealm treats user names as case-sensitive | High | Also affects org.apache.tomcat:tomcat |
| GHSA-h6fc-48rj-7qqh Apache Tomcat - Digest authenticator will authenticate any unknown user | Critical | Also affects org.apache.tomcat:tomcat |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor