Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
log4j2-rce-recap — Little recap of the log4j2 remote code execution (CVE-2021-44228) | Kitploit
Tools/GitHubGitHub/cbuschka/log4j2-rce-recap
Vulnerability AnalysisCode AnalysisExploitationWeb SecurityLearning & Education
GitHubcbuschka/log4j2-rce-recap

log4j2-rce-recap

Little recap of the log4j2 remote code execution (CVE-2021-44228)

View Repository
284 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    600
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    391
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    321
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    292
  • 6

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    257

Explore all tools

Browse our collection of tools

View all tools →
Share

Little recap of the log4j2 remote code execution (CVE-2021-44228)

Requirements

  • maven >= 3
  • java >= 8
  • no running ldap on 127.0.0.1:1389

Usage

Build with maven.

mvn test

The surefire plugin will be executed two times:

  • ExploitabilityTest proofs the expolitability of the bug.

  • MitigationTest will be executed with the vm property -Dlog4j2.formatMsgNoLookups=true and proof the effectiveness of the mitigation.

In Short

log4j vs log4j2

log4j2 is not log4j 1.x; both are logging frameworks, but they are API incompatible. log4j 1.x is not affected by this bug, but may have different security flaws.

The exploit

  • log4j2 evaluates a lookup pattern ( ${...} ) both on formatting string and arguments. so when input from outside is logged such patterns can be added and log4j2 will evaluate them.
  • the lookup handle for jndi is enable by default, and so it can be triggered by such a lookup pattern described above, e.g. ${jndi:127.0.0.1:1389/a}
  • because of bugs in the jndi code java is prone to remote code executions
  • because of those three parts coming together, remote code executions now can be triggered from outside

References

  • the cve
  • log4j12 ticket adding log4j2.formatMsgNoLookups
  • mitigation via agent
  • analysis post on stack exchange
  • presentation about flaws in jndi
  • mitigation for spring
  • article on heise in german
  • another poc
  • list of bulletins
Download Tool