CVE-2010-4476: Medium severity Sun Java Runtime Environment (JRE) vulnerability
The Double.parseDouble method in Java Runtime Environment (JRE) in Oracle Java SE and Java for Business 6 Update 23 and earlier, 5.0 Update 27 and earlier, and 1.4.229 and earlier, as used in OpenJDK, Apache, JBossweb, and other products, allows remote attackers to cause a denial of service via a crafted string that triggers an infinite loop of estimations during conversion to a double-precision binary floating-point number, as demonstrated using 2.2250738585072012e-308.
Apache Tomcat introduced workarounds to avoid being affected by this issue in versions 7.0.7, 6.0.32, and 5.5.33.
Other sources
The Double.parseDouble method in Java Runtime Environment (JRE) in Oracle Java SE and Java for Business 6 Update 23 and earlier, 5.0 Update 27 and earlier, and 1.4.229 and earlier, as used in OpenJDK, Apache, JBossweb, and other products, allows remote attackers to cause a denial of service via a crafted string that triggers an infinite loop of estimations during conversion to a double-precision binary floating-point number, as demonstrated using 2.2250738585072012e-308.
— MITRE
The post on http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/ describes a (on first sight) trivial DoS when parsing strings into Java Double objects. However that code could likely occur in serialization routines, http header parsing and impair server availability.
Runtime (java app hang):
class runhang { public static void main(String[] args) { System.out.println("Test:"); double d = Double.parseDouble("2.2250738585072012e-308"); System.out.println("Value: " + d); } }
DevTime (javac hang):
class compilehang { public static void main(String[] args) { double d = 2.2250738585072012e-308; System.out.println("Value: " + d); } }
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 5.5.33 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 6.0.32 - Upgrade
Upgrade
maven/org.apache.tomcat:tomcatto a version that resolves this vulnerability.Fixed in 7.0.7 - Upgrade
Upgrade
apache/tomcatto a version that resolves this vulnerability.Fixed in 7.0.7 - Upgrade
Upgrade
apache/tomcatto a version that resolves this vulnerability.Fixed in 6.0.32 - Upgrade
Upgrade
apache/tomcatto a version that resolves this vulnerability.Fixed in 5.5.33
Event History
Frequently Asked Questions
What is the severity of CVE-2010-4476?
CVE-2010-4476 has a high severity rating due to its potential to cause a denial of service.
How do I fix CVE-2010-4476?
To fix CVE-2010-4476, ensure that you update to Oracle Java SE 6 Update 24 or later, or apply the recommended patches for affected versions.
Which software is affected by CVE-2010-4476?
CVE-2010-4476 affects multiple versions of the Java Runtime Environment including Oracle Java SE 6 Update 23 and earlier, and related software like Apache Tomcat.
Can CVE-2010-4476 be exploited remotely?
Yes, CVE-2010-4476 can be exploited remotely, allowing attackers to cause a denial of service on vulnerable systems.
What products utilize the vulnerable method in CVE-2010-4476?
The vulnerable `Double.parseDouble` method in CVE-2010-4476 is utilized by various products including OpenJDK, JBossweb, and Oracle's Java SE.