r/java • • Dec 10 '21

Remote code injection in Log4j

https://github.com/advisories/GHSA-jfh8-c2jp-5v3q
212 Upvotes

70 comments sorted by

View all comments

16

u/papercrane Dec 10 '21

If running a recent JDK built and you don't have the com.sun.jndi.ldap.object.trustURLCodebase/com.sun.jndi.rmi.object.trustURLCodebase settings enabled then there shouldn't be any RCE, but the attacker could still get a ping back, and possibly exfiltrate data.

1

u/ebrandsberg Dec 12 '21

this is incorrect. It is harder to achieve, but the attacker can still do RCE. https://www.veracode.com/blog/research/exploiting-jndi-injections-java documents how.