Sphere
Log in Join
☆ 12

Log4Shell still present on an internal java app

found log4j-core 2.14.1 in an internal service (not internet-facing, but on the corp network). upgrade to 2.17.1 is on the roadmap but takes weeks due to red tape. is there an immediate mitigation that isn't just 'block JNDI'? we're worried about lateral movement.

⚑ Report

4 replies

☆ 0
C cardboard ·2026-10-28#1

for 2.14.1, the recommended mitigation if you can't upgrade is set log4j2.formatMsgNoLookups=true (system property) — that stops the JNDI lookup in most cases. note it's less complete for 2.15. also remove the JndiLookup class from the jar as a belt-and-braces step.

⚑ Report
☆ 0
A async48 ·2026-10-29#2

can we set the property without a code deploy? app runs in tomcat 9. could add -Dlog4j2.formatMsgNoLookups=true to CATALINA_OPTS and restart. is that enough for 2.14.1?

⚑ Report
☆ 0
L lgtm ·2026-10-31#3

yes, for 2.14.1 that property is the official mitigation (CVE-2021-44228). also block outbound LDAP/RMI from that host at the firewall — lateral movement needs egress. and check if you're on 2.15+ where that flag isn't sufficient.

⚑ Report
☆ 0
C coffee ·2026-11-02#4

added the JVM flag, restarted tomcat, firewalled outbound LDAP/389 and RMI/1099 from that vlan. bought us time until the upgrade. also found two other services on the same old log4j, flagged those too.

⚑ Report
Log in to reply.