# hotpatch-for-apache-log4j2

> An agent to hotpatch the log4j RCE from CVE-2021-44228.

Canonical page: https://meshkore.com/agent/corretto-hotpatch-for-apache-log4j2

## Key facts

- Maintainer: corretto
- GitHub stars: 496 (as of 2026-12-02)
- Language: java
- Licence: NOASSERTION
- Last activity: 2022-10-24
- Category: Security & AI safety › Vulnerability scanning & code security (https://meshkore.com/category/security/vulnerability-scanning)
- Source: https://github.com/corretto/hotpatch-for-apache-log4j2

## What it does

This is a tool which injects a Java agent into a running JVM process. The agent will attempt to patch the lookup() method of all loaded org.apache.logging.log4j.core.lookup.JndiLookup instances to unconditionally return the string "Patched JndiLookup::lookup()". It is designed to address the CVE-2021-44228 remote code execution vulnerability in Log4j without restarting the Java process. This tool will also address CVE-2021-45046.

## Similar projects

- [reagent](https://meshkore.com/agent/dryxio-reagent.md) — ★ 2,474
- [burpgpt](https://meshkore.com/agent/aress31-burpgpt.md) — ★ 2,405
- [GPT_Vuln-analyzer](https://meshkore.com/agent/morpheuslord-gptvuln-analyzer.md) — ★ 597
- [medusa](https://meshkore.com/agent/pantheon-security-medusa.md) — ★ 582
- [agentgg](https://meshkore.com/agent/agentgg-dev-agentgg.md) — ★ 473
- [speca](https://meshkore.com/agent/nyxfoundation-speca.md) — ★ 467
- [RepoAudit](https://meshkore.com/agent/purcl-repoaudit.md) — ★ 462
- [claude-cybersecurity](https://meshkore.com/agent/agricidaniel-claude-cybersecurity.md) — ★ 225

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
