Mineuniverse
Log in Register
Mods

Log4J2 JNDI Exploit Fix

This mod fixes a critical vulnerability in Log4J2 in conjunction with JNDI.
by sfPlayer1
Download Claim this project
11,162 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Miscellaneous

This is a tiny client and server, Fabric and Forge mod to fix the Log4J2 exploit that surfaced 2021-12-10 and may lead to crashes, stalls or remote code execution in some cases.

 

Instead of using this mod you should update your mod loader to the following versions, if possible:

- Fabric Loader 0.12.12+ for all MC versions

- Forge 1.18.1-39.0.0+ for MC 1.18.1

- Forge 1.18-38.0.17+ for MC 1.18
- Forge 1.17.1-37.1.1+ for MC 1.17.1
- Forge 1.16.5-36.2.20+ for MC 1.16.5
- Forge 1.15.2-31.2.56+ for MC 1.15.2
- Forge 1.14.4-28.2.25+ for MC 1.14.4
- Forge 1.13.2-25.0.222+ for MC 1.13.2
- Forge 1.12.2-14.23.5.2857+ for MC 1.12.2

If your want to play Minecraft versions between 1.7 and 1.18 that are not in this list or you want to use mods that are incompatible with the updated mod loader versions, the Log4J2 JNDI Exploit Fix mod is a decent option.

 

This mod works by removing a highly problematic log content remote lookup feature, which is not used otherwise. If unmitigated anyone can draft a malicious chat or disconnect message, use mis-framed packets or other forms of activity that involves generating user controlled log output to exploit the bug. Since both client and server log, they are equally at risk.

 

Minecraft, CurseForge and Fabric Loader mitigated the problem in their launcher, but servers and some old versions remain vulnerable at the time of writing.

 

Likely fixed by their platform are currently and thus don't need the mod:

- Vanilla client

- Updated Fabric client or server (Fabric Loader 0.12.12+)

- Updated Forge 1.12+ client and server

- 1.18.1-rc3+ client and server

- Any client and server manually mitigated as per https://www.minecraft.net/en-us/article/important-message--security-vulnerability-java-edition

 

Likely vulnerable are currently and thus need the mod:

- Unmitigated Vanilla server older than 1.18.1-rc3

- Outdated Fabric or Forge server

- Outdated Fabric or Forge client

- Forge client or server older than 1.12

 

 

 Incompatible with the mod:

- Forge 1.17+ due to its module encapsulation - use the Java/JVM argument -Dlog4j2.formatMsgNoLookups=true instead (only works for 1.17+!)

- Fabric with Loader 0.12.10+ as it comes with a similar fix, use Fabric Loader 0.12.12 instead of this mod

 

There should be no harm in using the mod even if it is not necessary outside the above incompatibilities. It does a small one time operation at startup to remove the superfluous but exploitable JNDI lookup mechanism.

 

There is no guarantee that the mod definitely fixes the exploit, but it acts on a fundamental level. It does not prevent exploiting messages from traversing the server to other clients.

1.0.0 Forge 1.13.x-1.16.x
MC 1.16-Snapshot, 1.16.3, 1.13.1, 1.15-Snapshot, 1.16.1, 1.14.4, 1.14.1, 1.14.3, 1.15, 1.16, 1.13, 1.16.5, 1.15.2, 1.14, Forge, 1.16.4, 1.14.2, 1.16.2, 1.13-Snapshot, 1.14-Snapshot
Beta 2021-12-10 Get
1.0.0 Any Fabric
MC 1.7.6, 1.16-Snapshot, 1.17.1, 1.9.1, 1.16.3, 1.13.1, 1.9.3, 1.8.7, 1.7.4, 1.7.7, 1.15-Snapshot, 1.7.5, 1.4.6, 1.6.1, 1.0, 1.16.1, 1.10-Snapshot, 1.9.4, 1.9.2, 1.8.4, 1.7.9
Beta 2021-12-10 Get

More from sfPlayer1

Sampler
998,926
Industrial Craft
48,383,668
IC2 Classic
2,289,805
FastCraft
15,986,527

You Might Also Like

LoadingTips
A mod that adds custom tips to the loading screen
999,218
Sampler
Performance oriented debugging/administration tools
998,926
VulkanMod
Vulkan renderer mod for Minecraft.
997,115
Charm Fixer
Disables some modules on charm to fix incompatbility issues with owo
996,251
Trading station
Basic items to item trading machines
99,755
NarrateBookForMe [FABRIC]
Adds a narration keybind, and two GUI buttons to the book screen. Text-to-speech (tts) / narration on the go! Client sided.
99,734