Skip to content

CVE-2012-0507 — Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java…

Key facts

CVE-2012-0507 is a Critical (9.8) vulnerability: Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java…. This entry ships a detection-only PoC and a Docker test lab. It is on the CISA Known Exploited Vulnerabilities (KEV) catalog (added 2022-03-03), confirming active exploitation in the wild, and is linked to known ransomware campaigns.

Actively exploited — on the CISA KEV catalog

CVE-2012-0507 is listed on the CISA Known Exploited Vulnerabilities (KEV) catalog (added 2022-03-03), confirming exploitation in the wild. It is linked to known ransomware campaigns. Federal remediation deadline: 2022-03-24. Prioritise patching and deploy the detection and prevention rules below.

CVE CVE-2012-0507
Severity Critical (9.8)
CISA KEV Actively exploited (added 2022-03-03) · ransomware
Detection / prevention —
PoC poc.py
Source 2012/CVE-2012-0507/

Details

English | 한국어

Description

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.

Vulnerability Details

Property Value
CVE ID CVE-2012-0507
CVSS Score 9.8

Proof of Concept

Download

# Download PoC script
curl -O https://raw.githubusercontent.com/fankh/vulnerability-poc/main/2012/CVE-2012-0507/poc.py

Usage

# Run PoC against target
python3 poc.py --target <TARGET_URL>

# With authentication
python3 poc.py --target <TARGET_URL> --username <USER> --password <PASS>

⚠️ Warning: This PoC is for authorized security testing only. It uses detection-only techniques and does not exploit or damage target systems.

Test Lab

This repository includes a Docker-based test environment with both vulnerable and patched applications.

Quick Start

# Clone and navigate to CVE directory
cd CVE-2012-0507

# Start both applications
docker-compose up -d

# Run tests
./run-tests.sh    # Linux/Mac
./run-tests.ps1   # Windows PowerShell

Application Endpoints

Application URL Status
Vulnerable App http://localhost:8080 Shows vulnerability
Patched App http://localhost:8081 Demonstrates fix

Directory Structure

├── README.md           # English documentation
├── README_KO.md        # Korean documentation
├── poc.py              # PoC detection script
├── docker-compose.yml  # Container orchestration
├── run-tests.sh        # Linux/Mac test runner
├── run-tests.ps1       # Windows test runner
├── vulnerable-app/     # Vulnerable version
│   ├── app.py
│   ├── Dockerfile
│   └── requirements.txt
└── patched-app/        # Fixed version
    ├── app.py
    ├── Dockerfile
    └── requirements.txt

References

  • http://blogs.technet.com/b/mmpc/archive/2012/03/20/an-interesting-case-of-jre-sandbox-breach-cve-2012-0507.aspx
  • http://krebsonsecurity.com/2012/03/new-java-attack-rolled-into-exploit-packs/
  • http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00009.html
  • http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00010.html
  • http://marc.info/?l=bugtraq&m=133364885411663&w=2
  • http://marc.info/?l=bugtraq&m=133365109612558&w=2
  • http://marc.info/?l=bugtraq&m=133847939902305&w=2
  • http://marc.info/?l=bugtraq&m=134254866602253&w=2
  • http://marc.info/?l=bugtraq&m=134254957702612&w=2
  • http://rhn.redhat.com/errata/RHSA-2012-0508.html
  • http://rhn.redhat.com/errata/RHSA-2012-0514.html
  • http://rhn.redhat.com/errata/RHSA-2013-1455.html
  • http://secunia.com/advisories/48589
  • http://secunia.com/advisories/48692
  • http://secunia.com/advisories/48915
  • http://secunia.com/advisories/48948
  • http://secunia.com/advisories/48950
  • http://weblog.ikvm.net/PermaLink.aspx?guid=cd48169a-9405-4f63-9087-798c4a1866d3
  • http://www.debian.org/security/2012/dsa-2420
  • http://www.oracle.com/technetwork/topics/security/javacpufeb2012-366318.html
  • http://www.securityfocus.com/bid/52161
  • https://bugzilla.redhat.com/show_bug.cgi?id=788994
  • http://blogs.technet.com/b/mmpc/archive/2012/03/20/an-interesting-case-of-jre-sandbox-breach-cve-2012-0507.aspx
  • http://krebsonsecurity.com/2012/03/new-java-attack-rolled-into-exploit-packs/
  • http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00009.html
  • http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00010.html
  • http://marc.info/?l=bugtraq&m=133364885411663&w=2
  • http://marc.info/?l=bugtraq&m=133365109612558&w=2
  • http://marc.info/?l=bugtraq&m=133847939902305&w=2
  • http://marc.info/?l=bugtraq&m=134254866602253&w=2
  • http://marc.info/?l=bugtraq&m=134254957702612&w=2
  • http://rhn.redhat.com/errata/RHSA-2012-0508.html
  • http://rhn.redhat.com/errata/RHSA-2012-0514.html
  • http://rhn.redhat.com/errata/RHSA-2013-1455.html
  • http://secunia.com/advisories/48589
  • http://secunia.com/advisories/48692
  • http://secunia.com/advisories/48915
  • http://secunia.com/advisories/48948
  • http://secunia.com/advisories/48950
  • http://weblog.ikvm.net/PermaLink.aspx?guid=cd48169a-9405-4f63-9087-798c4a1866d3
  • http://www.debian.org/security/2012/dsa-2420
  • http://www.oracle.com/technetwork/topics/security/javacpufeb2012-366318.html
  • http://www.securityfocus.com/bid/52161
  • https://bugzilla.redhat.com/show_bug.cgi?id=788994
  • https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-0507

Generated by PoC Generator on 2026-07-05T08:17:01.111688286

Frequently asked questions

What is CVE-2012-0507?

CVE-2012-0507 is a Critical (9.8) vulnerability: Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java…. This entry ships a detection-only PoC and a Docker test lab. It is on the CISA Known Exploited Vulnerabilities (KEV) catalog (added 2022-03-03), confirming active exploitation in the wild, and is linked to known ransomware campaigns.

How do I detect CVE-2012-0507?

Run the detection-only PoC included with this entry against your Docker test lab to confirm whether a target is affected; pair it with your own IDS logging.

How do I block or mitigate CVE-2012-0507?

Upgrade to a fixed version per the vendor advisory; the NVD record lists the affected versions. Use the included PoC to verify your remediation.

Is CVE-2012-0507 actively exploited?

Yes. CVE-2012-0507 is on the CISA Known Exploited Vulnerabilities (KEV) catalog, added 2022-03-03, which means it has been exploited in the wild. CISA also links it to known ransomware campaigns. CISA set a federal remediation deadline of 2022-03-24. Prioritise patching and deploy the detection and prevention rules above.


For authorized security testing and research only. See the full source and NVD record.