CVE-2012-0507: Oracle Java AtomicReferenceArray Type Confusion Sandbox Escape
- Vendors
- Debian ProjectSunOracle CorporationSuse
CVE-2012-0507 is a vulnerability in the Concurrency component of Oracle Java SE affecting JRE 7 Update 2 and earlier, 6 Update 30 and earlier, and 5.0 Update 33 and earlier. Third-party researchers identified improper array-type enforcement in AtomicReferenceArray: the implementation does not ensure that its backing array has the runtime type Object[]. This permits type confusion that can crash the JVM or bypass Java sandbox restrictions, enabling arbitrary code execution. Oracle's original advisory did not confirm these implementation details. The vulnerability was widely incorporated into exploit kits and used for drive-by malware installation, including Flashback infections.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise confidentiality, integrity, and availability by allowing untrusted Java code to escape the sandbox and execute with the privileges of the affected user. Attackers can install malware, access or modify user-accessible data, or crash the JVM. Observed exploitation included automatic Flashback installation on vulnerable Mac systems through malicious web applets.
Mitigation
If you can’t patch tonight, do this now.
Disable or remove the Java browser plug-in to block the documented malicious-applet drive-by attack path. Where Java is unnecessary, uninstall the runtime. Endpoint exploit prevention can provide an additional layer of protection, but does not replace patching.
Remediation
Patch, then assume compromise.
Apply the vendor security updates addressing CVE-2012-0507. Oracle released the relevant Java update in February 2012; Apple released its corresponding Java update on April 3, 2012. For present-day deployments, replace affected legacy Java installations with a supported, fully patched release and remove obsolete runtimes that applications or browser integrations could still invoke.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2012-0507 exploited in the wild?
- Yes. As of Nov 18, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 3, 2022.
- Is there a public exploit for CVE-2012-0507?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2012-0507, the earliest disclosed Feb 14, 2012.
- Is there a patch for CVE-2012-0507?
- Apply the vendor security updates addressing CVE-2012-0507. Oracle released the relevant Java update in February 2012; Apple released its corresponding Java update on April 3, 2012.
- What products are affected by CVE-2012-0507?
- Sun Jre, Oracle Corporation Jre, Debian Project Debian Linux, Suse Linux Enterprise Java, Suse Linux Enterprise Software Development Kit, and 2 more.
- How severe is CVE-2012-0507?
- CVE-2012-0507 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 98.2% (100th percentile) as of Nov 18, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.