An Interest In:
Web News this Week
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
December 15, 2021 07:28 pm GMT
Original Link: https://dev.to/sebiboga/how-to-fix-apache-solr-impacted-by-cve-2021-4428-vulnerability-3ehe
[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
- Open SOLR UI
- In Dashboard check if you see
-Dlog4j2.formatMsgNoLookups=true
Original Link: https://dev.to/sebiboga/how-to-fix-apache-solr-impacted-by-cve-2021-4428-vulnerability-3ehe
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To