Question

How to know if I have "log4j"?

I just read about a severe security vulnerability in something called “log4j” from Apache. I have a LAMP droplet and I need to know how to find out if log4j is installed on the droplet? I don’t see a package by that name, but I’m not sure if I’m looking for the right thing.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi all,

In addition to what has already been mentioned, I could suggest taking a look at this answer here:

What should I do to protect against CVE-2021-44228/Log4shell vulnerability with Apache Log4j?

Best, Bobby

Hi all,

In addition to what has already been mentioned, I could suggest taking a look at this answer here:

What should I do to protect against CVE-2021-44228/Log4shell vulnerability with Apache Log4j?

Best, Bobby

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @JigsawBob

From what I can see Apache log4j 2 is an open-source Java-based logging framework that should not be installed by default on your Apache server, hence you’ve not manually installed/configured it then CVE-2021-44228 should not affect your server.

Regards, Alex

Hi JigsawBob, log4j is not installed as part of the standard LAMP stack. Unless you installed it yourself it is not on your server so you don’t need to do anything.

There’s an easy nice opensource tool for log4j specifically

https://github.com/whitesource/log4j-detect-distribution

this will work on projects of maven/gradle, it will also do a file system search