Remote code execution in Oracle Java SE

Published: 2012-08-26 | Updated: 2016-12-29
Severity Critical
Patch available YES
Number of vulnerabilities 1
CVE ID CVE-2012-4681
Exploitation vector Network
Public exploit This vulnerability is being exploited in the wild.
Vulnerable software Java SE Subscribe
Vendor Oracle

Security Advisory

This security advisory describes one critical risk vulnerability.

1) Error Handling

Severity: Critical

CVSSv3: 8.9 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H/E:F/RL:O/RC:C] [PCI]

CVE-ID: CVE-2012-4681

CWE-ID: CWE-388 - Error Handling


The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to improper handling of Rhino Javascript errors. A remote attacker can create a specially crafted Web site, trick the victim into visiting it and bypass sandbox restrictions to download and execute arbitrary code  with privileges of the current user.

Successful exploitation of the vulnerability results in arbitrary code execution on the vulnerable system.

Note: the vulnerability was being actively exploited.


Update the latest version from vendor's website:

Vulnerable software versions

Java SE: 6 Update 10, 6 Update 11, 6 Update 12, 6 Update 13, 6 Update 14, 6 Update 15, 6 Update 16, 6 Update 17, 6 Update 18, 6 Update 19, 6 Update 20, 6 Update 27, 6 Update 30, 6 Update 32, 6 Update 34, 7, 7 Update 2, 7 Update 4, 7 Update 6

CPE External links

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.