Public Vulnerability Reports

Oracle Java Runtime Environment mlib_ImageCreate Integer Overflow Vulnerability

03.04.13

BACKGROUND

Oracle's JRE is a platform that supports the execution of programs developed using the Java programming language. It is available for multiple platforms, including Windows, Linux and Mac OS. The JRE platform also supports Java Applets, which can be loaded from Web pages. For more information, please visit the vendor's website at http://www.java.com.

DESCRIPTION

Remote exploitation of an integer overflow vulnerability in Oracle Corp.'s Java Runtime Environment (JRE) could allow an attacker to execute arbitrary code with the privileges of the current user.

The vulnerability exists within the mlib_ImageCreate function in the ImageLib library. This function fails to properly validate "width" and "height" arguments. An integer overflow occurs when calculating the amount of data to be copied based on these two values. This results in an undersized buffer being allocated, which is later overflowed. This can lead to the execution of arbitrary code.

ANALYSIS

Exploitation of this vulnerability results in the execution of arbitrary code with the privileges of the current user. To exploit this vulnerability, a user must load a Web page containing a specially crafted Java applet or Java Web Start application. After the user visits the malicious Web page, no further user interaction is needed. An attacker typically accomplishes this via social engineering or injecting content into compromised, trusted sites. Typical social engineering attacks will pass URLs as part of instant messages or e-mail.

DETECTION

The following versions of Java are vulnerable:

  • 7 Update 15 and prior
  • 6 Update 41 and prior
  • 5.0 Update 40 and prior

WORKAROUND

Disable the Java plug-in in Internet Explorer, Firefox, Safari, Opera and Google Chrome as a workaround. This workaround will prevent Java Applet and Java Web Start applications from running from websites and may impact the browser experience with websites using Java plug-in technology. Regular Java applications are not affected by this workaround.

VENDOR RESPONSE

Oracle has released a fix which addresses this issue. For more information, consult their advisory at the following URL:

http://www.oracle.com/technetwork/topics/security/alert-cve-2013-1493-1915081.html

CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2013-0809 to this issue. This is a candidate for inclusion in the CVE list (http://cve.mitre.org/), which standardizes names for security problems.

DISCLOSURE TIMELINE

01/24/2013 Initial Vendor Notification
01/24/2013 Initial Vendor Reply
03/04/2013 Coordinated Public Disclosure

CREDIT

This vulnerability was reported to iDefense by Vitaliy Toropov.

Get paid for vulnerability research
http://labs.idefense.com/methodology/vulnerability/vcp.php

Free tools, research and upcoming events
http://labs.idefense.com/

LEGAL NOTICES

Copyright © 2013 Verisign, Inc.

Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of iDefense Verisign. If you wish to reprint the whole or any part of this alert in any other medium other than electronically, please e-mail customer service for permission.

Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.