Skip to content

A java agent to patch the CVE in L4J2

81k downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

description_a858e633-1aaf-4f8f-939a-886fe606408c.png

Log4jPatcher

A Java Agent based mitigation for Log4j2 JNDI exploits.

This agent employs 2 patches:

  • Disabling all Lookup conversions (on supported Log4j versions) in org.apache.logging.log4j.core.pattern.MessagePatternConverter by setting noLookups to true in the constructor.
  • Disabling the org.apache.logging.log4j.core.lookup.JndiLookup class by just returning null in its lookup function.

To use

Add -javaagent:Log4jPatcher.jar as a JVM argument.

More information on this CVE and it's impact is available at CreeperBlog (creeperhost.net)