What is Oracle Java SE?
Oracle Java SE includes the Java Runtime Environment (JRE), which enables browser-based Java applets — programs embedded in web pages that run inside the JRE security sandbox. The HotSpot JVM is Java's primary virtual machine and includes a bytecode verifier that enforces type safety before code is executed. A flaw in this verifier can allow crafted bytecode to bypass type checks and escape the Security Manager sandbox, achieving arbitrary code execution. Java applet vulnerabilities were the dominant drive-by download vector from approximately 2010 to 2013.
Overview
CVE-2012-1723 is a vulnerability in the HotSpot component of Oracle Java SE — specifically in the bytecode verifier — that allows type confusion leading to Security Manager sandbox escape. An untrusted Java applet that exploits this flaw can execute arbitrary code on the host system with the privileges of the user running the browser. With a CVSS score of 9.8 and no authentication or user interaction required beyond visiting a web page, this vulnerability was rapidly integrated into crimeware exploit kits and used in mass exploitation.
Oracle patched this in the June 2012 Critical Patch Update (Java 6u33, Java 7u5).
Affected Versions
| Product | Vulnerable Versions | Fixed Version |
|---|---|---|
| Java SE 7 (JDK/JRE) | 7u4 and earlier | 7u5 |
| Java SE 6 (JDK/JRE) | 6u32 and earlier | 6u33 |
| Java SE 5.0 (JDK/JRE) | 5.0u35 and earlier | 5.0u36 |
Technical Details
The HotSpot JVM's bytecode verifier enforces Java's type system before code execution — it checks that all type operations are valid before JIT compilation. CVE-2012-1723 involves a type confusion in the HotSpot verifier where crafted bytecode sequences could pass verification while actually performing operations that violate type safety at runtime.
The specific flaw relates to how HotSpot handles certain combinations of bytecode instructions that the verifier fails to properly constrain. A malicious applet could exploit this to:
- Create a reference of one type treated as a different, more privileged type
- Use this type confusion to access and modify JVM internal data structures
- Disable or bypass the Security Manager
- Execute arbitrary Java code (including
Runtime.exec()) outside the sandbox
Attack characteristics:
- No memory corruption required — pure logic/type system flaw
- Reliable across platforms (Windows, macOS, Linux) with JRE browser plugin installed
- Silent drive-by: victim only needs to visit a web page hosting a malicious applet
- No user prompt or interaction beyond page load
Discovery
The vulnerability was discovered through security research and included in Oracle's June 2012 CPU. It was rapidly weaponized by crimeware authors following the patch release, with working exploits in Blackhole Exploit Kit within weeks.
Exploitation Context
CVE-2012-1723 was heavily exploited in drive-by download campaigns via Blackhole Exploit Kit, Cool Exploit Kit, and other crimeware platforms. Attackers compromised legitimate websites and injected exploit kit landing pages; any visitor with a vulnerable Java browser plugin would be silently infected. The ransomwareUse: true flag reflects that ransomware precursors and early ransomware families used this vulnerability as a primary infection vector.
The June 2012 timeframe coincided with peak Blackhole EK activity, and CVE-2012-1723 became one of the most-deployed Java exploits of that era.
Remediation
- Apply Oracle CPU June 2012 — update to Java 7u5 / Java 6u33
- Disable the Java browser plugin if not strictly required — this eliminates the applet attack surface entirely
- Java SE 6 and 7 are end-of-life (Java 6 EOL: 2013, Java 7 EOL: 2015) — migrate to Java 17 LTS or Java 21 LTS
- In enterprise environments, enforce minimum Java version requirements via Group Policy or endpoint management
- Deploy network-level controls to detect Java exploit kit traffic patterns (e.g., applet loading followed by outbound connections to unusual hosts)
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2012-1723 |
| Vendor / Product | Oracle — Java SE |
| NVD Published | 2012-06-16 |
| NVD Last Modified | 2025-10-22 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CISA KEV Added | 2022-03-03 |
| CISA KEV Deadline | 2022-03-24 |
| Known Ransomware Use | ⚠️ Yes |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2012-06-12 | Oracle releases Java 6u33 and Java 7u5 patching CVE-2012-1723 and related HotSpot issues |
| 2012-06-16 | CVE-2012-1723 published |
| 2012-07 | Blackhole Exploit Kit integrates CVE-2012-1723 for drive-by download campaigns |
| 2022-03-03 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-03-24 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2012-1723 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Oracle Critical Patch Update — June 2012 | Vendor Advisory |