Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 15, 2021 07:28 pm GMT

[how to fix] Apache SOLR impacted by CVE-2021-4428 vulnerability

Apache SOLR is impacted by CVE-2021-4428
Now what?

Here is how you can fix it:

STOP SOLR

[Windows] solr.cmd stop -p 8983
[Linux] service solr stop

Edit

solr.cmd(for Windows)
solr (for Linux)
files from \bin directory

[Windows]

  • in solr.cmd file, find this line:

set START_OPTS=-Duser.timezone=%SOLR_TIMEZONE%

  • right after this line, add this line:

set "START_OPTS=%START_OPTS% -Dlog4j2.formatMsgNoLookups=true"

[Linux]

  • in solr file, find this line:

SOLR_START_OPTS=(

  • inside the brackets () wherever you want add this

"-Dlog4j2.formatMsgNoLookups=true"

START SOLR

Let's TEST if the changes had effect

  1. Open SOLR UI
  2. In Dashboard check if you see -Dlog4j2.formatMsgNoLookups=true

Image description

Image description


Original Link: https://dev.to/sebiboga/how-to-fix-apache-solr-impacted-by-cve-2021-4428-vulnerability-3ehe

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To