cbcvebase.
CVE-2011-4858
published 2012-01-05

CVE-2011-4858: Apache Tomcat before 5.5.35, 6.x before 6.0.35, and 7.x before 7.0.23 computes hash values for form parameters without restricting the ability to trigger hash…

PriorityP346medium5CVSS 2.0
AVNACLAuNCNINAP
EXPLOIT
EPSS
80.32%
99.6th percentile
Apache Tomcat before 5.5.35, 6.x before 6.0.35, and 7.x before 7.0.23 computes hash values for form parameters without restricting the ability to trigger hash collisions predictably, which allows remote attackers to cause a denial of service (CPU consumption) by sending many crafted parameters.

Affected

95 ranges· showing 25
VendorProductVersion rangeFixed in
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat
apachetomcat

Detection & IOCsextracted from sources · hover to see the quote

commandPOST <path> HTTP/1.1 with Content-Type: application/x-www-form-urlencoded; charset=utf-8 and large body of hash-colliding parameters
  • Detect CVE-2011-4858 exploitation by monitoring for HTTP POST requests with an abnormally large number of form parameters (hash-colliding keys) sent to Java/Tomcat endpoints, causing sustained CPU exhaustion. The attack uses the DJBX31A hash function collision property of Java's Hashtable.
  • Alert on POST requests with Content-Type: application/x-www-form-urlencoded where the body contains thousands of parameters with identical hash values (colliding keys). The PoC generates up to 2MB payloads for Java targets.
  • The Metasploit module generates a random payload to bypass IDS signatures; detection should focus on parameter count anomalies and CPU spike correlation rather than static payload signatures.
  • Monitor Tomcat for requests exceeding the maxParameterCount threshold (default 10000). Requests with parameter counts near or above this limit targeting .jsp endpoints are strong indicators of HashDoS exploitation attempts.
  • ·The PoC targets Java's DJBX31A hash function (charrange 0–128) for collision generation; PHP uses DJBX33A (charrange 0–255). Ensure detection logic distinguishes Java/Tomcat targets (typically .jsp paths, default max payload 2MB) from PHP targets (default max 8MB).
  • ·CVE-2011-4858 and CVE-2012-0022 share overlapping patches in Tomcat; both involve parameter-handling DoS but via different mechanisms (hash collisions vs. general parameter count inefficiency). Treat them as distinct detections.

CVSS provenance

nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
ghsa5.0MEDIUM
osv5.0MEDIUM
vendor_redhat5.0MEDIUM
vendor_ubuntu5.0MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.