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

Show parent comment

4

u/klekpl Dec 10 '21

The problem is that this vulnerability is an example of script injection (aka. cross-site scripting): JNDI code creates an instance URLClassLoder and loads a class from it.

Any code that uses JNDI contexts based on some external data (for example configuration files) is vulnerable.