Bug 771283 (CVE-2011-5035)

Summary: CVE-2011-5035 GlassFish: hash table collisions CPU usage DoS (oCERT-2011-003)
Product: [Other] Security Response Reporter: David Jorm <djorm>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: brms-jira, mjc, tkirby
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-03 05:34:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 770929    

Description David Jorm 2012-01-03 05:29:10 UTC
Julian Wälde and Alexander Klink reported a way to degrade performance of the Java HashMap and HashTable implementations by filling the hash table with keys with identical hash codes. See bug #750533 for details. This issue can be used to mount an efficient details of service attack against GlassFish application server. GlassFish parses HTTP request parameters and stores them in a hash table. A remote attacker could use this flaw to make the GlassFish java process use an excessive amount of CPU time by sending a POST request with a large number of parameters which hash to the same value.

Comment 1 David Jorm 2012-01-03 05:34:06 UTC
Statement:

Not vulnerable. This issue affects the GlassFish Web Container component. This
component is not shipped with any Red Hat products. JBoss Web and Tomcat
provide the web container used in all JBoss products.

Comment 2 Tomas Hoger 2012-02-15 09:04:21 UTC
Note that this CVE was also used for the HttpServer class in the standard Java Class Library, which did not limit the number of HTTP headers read from HTTP requests and stored in the HashMap, hence allowing the hash collision to be triggered.  That issue is tracked via separate bug #788606.