Report this

What is the reason for this report?

How to know if I have "log4j"?

Posted on December 11, 2021

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.



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!

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.
0
Pinned Answer

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

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.