CVE-2012-0507: Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution Vulnerability
Yes. CVE-2012-0507 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 3 March 2022. It is known to have been used in ransomware campaigns. Public exploit code is available: 1 Metasploit module and 1 Exploit-DB entry. EPSS puts the chance of further exploitation attempts in the next 30 days at 98.2%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 3 March 2022
- Used in ransomware
- Yes, known ransomware use
- Public exploit code
- 1 Metasploit module and 1 Exploit-DB entry
- Chance of exploitation (EPSS)
- 98.2% in the next 30 days, higher than 99.9% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 9.8 Critical (version 3.1)
- Affects
- Oracle Java SE
- Type of flaw
- Type confusion (CWE-843)
- Published
- 7 June 2012
- US federal patch deadline
- 24 March 2022
What it is
An incorrect type vulnerability exists in the Concurrency component of Oracle's Java Runtime Environment allows an attacker to remotely execute arbitrary code.
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Update 30 and earlier, and 5.0 Update 33 and earlier allows remote attackers to affect confidentiality, integrity, and availability via unknown vectors related to Concurrency. NOTE: the previous information was obtained from the February 2012 Oracle CPU. Oracle has not commented on claims from a downstream vendor and third party researchers that this issue occurs because the AtomicReferenceArray class implementation does not ensure that the array is of the Object[] type, which allows attackers to cause a denial of service (JVM crash) or bypass Java sandbox restrictions. NOTE: this issue was originally mapped to CVE-2011-3571, but that identifier was already assigned to a different issue.
Description from the CVE record.
Is CVE-2012-0507 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2012-0507 on 3 March 2022. That was 9 years after the CVE was published, so attackers are still finding unpatched systems long after the fix. CISA also marks it as known to be used in ransomware campaigns.
Public exploit code
These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.
| Source | Entry | Published |
|---|---|---|
| Metasploit | Java AtomicReferenceArray Type Violation Vulnerability | |
| Exploit-DB | Oracle Java - AtomicReferenceArray Type Violation (Metasploit) | 30 March 2012 |
What to do
CISA's required action: Apply updates per vendor instructions.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place Oracle Java SE runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
- Assume low-skill attackers can use it. A Metasploit module exists, which packages the attack into a standard tool.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one in Java SE. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in Oracle products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2026-21962 | Oracle HTTP Server and Oracle Weblogic Server Proxy Plug-in | No public exploit found | 74.3% | 20 January 2026 |
| CVE-2026-46817 | Oracle E-Business Suite | No public exploit found | 14.2% | 28 May 2026 |
| CVE-2026-35273 | Oracle PeopleSoft Enterprise PeopleTools | Ransomware Public exploit | 97.5% | 11 June 2026 |
| CVE-2024-21182 | Oracle WebLogic Server | No public exploit found | 74.2% | 16 July 2024 |
| CVE-2025-61757 | Oracle Fusion Middleware | Public exploit | 89.8% | 21 October 2025 |
| CVE-2025-61884 | Oracle E-Business Suite | Ransomware Public exploit | 96.2% | 12 October 2025 |
Sources
- CVE record for CVE-2012-0507
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- marc.info (vendor-advisory, x_refsource_HP)
- www.oracle.com (x_refsource_CONFIRM)
- secunia.com (third-party-advisory, x_refsource_SECUNIA)
- marc.info (vendor-advisory, x_refsource_HP)
- krebsonsecurity.com (x_refsource_MISC)
- secunia.com (third-party-advisory, x_refsource_SECUNIA)
- marc.info (vendor-advisory, x_refsource_HP)
- weblog.ikvm.net (x_refsource_MISC)
Machine-readable: /api/cve/CVE-2012-0507.json