{"id":11221,"date":"2024-11-07T12:51:00","date_gmt":"2024-11-07T17:51:00","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=11221"},"modified":"2024-11-07T12:55:41","modified_gmt":"2024-11-07T17:55:41","slug":"elasticsearch-7-7-0-with-log4j-2-24-1","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=11221","title":{"rendered":"ElasticSearch 7.7.0 with Log4j 2.24.1"},"content":{"rendered":"\n<p>Interestingly, I am still able to <a href=\"https:\/\/www.rushworth.us\/lisa\/?p=11218\" data-type=\"post\" data-id=\"11218\">manually upgrade the log4j components of ElasticSearch 7.7.0<\/a> to keep off the &#8220;naughty list&#8221; of vulnerabilities at work. I am successfully using 2.24.1 with ElasticSearch 7.7.0, OpenDistro, and the S3 backup plug-in. <\/p>\n\n\n\n<p>Same script as before &#8212; just downloaded newer JARs, placed them into the \/tmp folder on each server, and set the l4jver variable to the current release. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nexport l4jver=2.24.1\nsystemctl stop elasticsearch \n\n# Remove old jars\nrm  --interactive=never \/opt\/elk\/elasticsearch\/lib\/log4j-api-*.jar\nrm  --interactive=never \/opt\/elk\/elasticsearch\/lib\/log4j-core-*.jar\nrm  --interactive=never \/opt\/elk\/elasticsearch\/modules\/x-pack-identity-provider\/log4j-slf4j-impl-*.jar\nrm  --interactive=never \/opt\/elk\/elasticsearch\/modules\/x-pack-security\/log4j-slf4j-impl-*.jar\nrm  --interactive=never \/opt\/elk\/elasticsearch\/plugins\/opendistro_security\/log4j-slf4j-impl-*.jar\nrm  --interactive=never \/opt\/elk\/elasticsearch\/modules\/x-pack-core\/log4j-1.2-api-*.jar \nrm  --interactive=never \/opt\/elk\/elasticsearch\/plugins\/repository-s3\/log4j-1.2-api-*.jar \n\n# Copy in upgraded jars\ncp \/tmp\/log4j-api-$l4jver*.jar \/opt\/elk\/elasticsearch\/lib\/\ncp \/tmp\/log4j-core-$l4jver*.jar \/opt\/elk\/elasticsearch\/lib\/\ncp \/tmp\/log4j-slf4j-impl-$l4jver*.jar \/opt\/elk\/elasticsearch\/modules\/x-pack-identity-provider\/\ncp \/tmp\/log4j-slf4j-impl-$l4jver*.jar \/opt\/elk\/elasticsearch\/modules\/x-pack-security\/\ncp \/tmp\/log4j-slf4j-impl-$l4jver*.jar \/opt\/elk\/elasticsearch\/plugins\/opendistro_security\/\ncp \/tmp\/log4j-1.2-api-$l4jver*.jar \/opt\/elk\/elasticsearch\/modules\/x-pack-core\/\ncp \/tmp\/log4j-1.2-api-$l4jver*.jar \/opt\/elk\/elasticsearch\/plugins\/repository-s3\/\n\n# Fix permissions\nchown elkadmin:elkadmin \/opt\/elk\/elasticsearch\/lib\/log4j*\nchown elkadmin:elkadmin \/opt\/elk\/elasticsearch\/modules\/x-pack-core\/log4j*\nchown elkadmin:elkadmin \/opt\/elk\/elasticsearch\/modules\/x-pack-identity-provider\/log4j*\nchown elkadmin:elkadmin \/opt\/elk\/elasticsearch\/modules\/x-pack-security\/log4j*\nchown elkadmin:elkadmin \/opt\/elk\/elasticsearch\/plugins\/repository-s3\/log4j*\nchown elkadmin:elkadmin \/opt\/elk\/elasticsearch\/plugins\/opendistro_security\/log4j*\n\nsystemctl start elasticsearch \n\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Interestingly, I am still able to manually upgrade the log4j components of ElasticSearch 7.7.0 to keep off the &#8220;naughty list&#8221; of vulnerabilities at work. I am successfully using 2.24.1 with ElasticSearch 7.7.0, OpenDistro, and the S3 backup plug-in. Same script as before &#8212; just downloaded newer JARs, placed them into the \/tmp folder on each &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1588],"tags":[1590,1589,2057],"class_list":["post-11221","post","type-post","status-publish","format-standard","hentry","category-elk","tag-elasticsearch","tag-elk","tag-log4j"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11221"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11221\/revisions"}],"predecessor-version":[{"id":11222,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11221\/revisions\/11222"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}