PT-2012-1213 · Oracle+4 · Oracle Java Se+5
Michael Schierl
·
Published
2012-08-27
·
Updated
2025-03-13
·
CVE-2012-4681
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Oracle Java SE versions 7 Update 6 and earlier
Description
The issue allows remote attackers to execute arbitrary code via a crafted applet that bypasses SecurityManager restrictions. This is achieved by using
com.sun.beans.finder.ClassFinder.findClass and leveraging an exception with the forName method to access restricted classes from arbitrary packages such as sun.awt.SunToolkit. Then, it uses "reflection with a trusted immediate caller" to leverage the getField method to access and modify private fields. The vulnerability was exploited in the wild in August 2012 using Gondzz.class and Gondvv.class.Recommendations
For Oracle Java SE versions 7 Update 6 and earlier, update to a version later than 7 Update 6 to resolve the issue. As a temporary workaround, consider disabling the use of crafted applets until a patch is available. Restrict access to the
com.sun.beans.finder.ClassFinder.findClass and forName method to minimize the risk of exploitation. Avoid using the getField method in the affected API endpoint until the issue is resolved. At the moment, there is no information about additional mitigation measures.Exploit
Fix
RCE
Improper Privilege Management
Improper Access Control
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Centos
Hp-Ux
Java Platform
Oracle Java Se
Red Hat
Suse