CVE-2012-1723 — Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution Vulnerability

CVE-2012-1723

Oracle Java SE — HotSpot JVM Bytecode Verifier Type Confusion Enables Sandbox Escape via Malicious Applets

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:

  1. Create a reference of one type treated as a different, more privileged type
  2. Use this type confusion to access and modify JVM internal data structures
  3. Disable or bypass the Security Manager
  4. 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

  1. Apply Oracle CPU June 2012 — update to Java 7u5 / Java 6u33
  2. Disable the Java browser plugin if not strictly required — this eliminates the applet attack surface entirely
  3. 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
  4. In enterprise environments, enforce minimum Java version requirements via Group Policy or endpoint management
  5. Deploy network-level controls to detect Java exploit kit traffic patterns (e.g., applet loading followed by outbound connections to unusual hosts)

Key Details

PropertyValue
CVE ID CVE-2012-1723
Vendor / Product Oracle — Java SE
NVD Published2012-06-16
NVD Last Modified2025-10-22
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CISA KEV Added2022-03-03
CISA KEV Deadline2022-03-24
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-03-24. Apply updates per vendor instructions.

Timeline

DateEvent
2012-06-12Oracle releases Java 6u33 and Java 7u5 patching CVE-2012-1723 and related HotSpot issues
2012-06-16CVE-2012-1723 published
2012-07Blackhole Exploit Kit integrates CVE-2012-1723 for drive-by download campaigns
2022-03-03Added to CISA Known Exploited Vulnerabilities catalog
2022-03-24CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2012-1723 Vulnerability Database
CISA KEV Catalog Entry US Government
Oracle Critical Patch Update — June 2012 Vendor Advisory