Apache Log4j2 reports a nuclear-level vulnerability and a quick fix

Apache Log4j2 reports a nuclear-level vulnerability and a quick fix

Apache Log4j2 reported a nuclear-level vulnerability, and the stack leader’s circle of friends went wild. Many programmers stayed up until midnight to go online urgently. Did you sleep last night? ?

Apache Log4j2 is a Java-based logging tool and an upgrade of Log4j. It provides many optimizations available in Logback based on its predecessor Log4j 1.x, and fixes some problems in the Logback architecture. It is currently one of the best Java logging frameworks.

The triggering condition of this Apache Log4j2 vulnerability is that as long as the data entered by external users will be logged, remote code execution can be caused.

Affected versions

2.0 <= Apache log4j2 <= 2.14.1

Latest official patch

https://github.com/apache/logging-log4j2/releases/tag/log4j-2.15.0-rc2

Temporary solution

1) Set jvm parameters:

-Dlog4j2.formatMsgNoLookups=true

2) Log settings:

log4j2.formatMsgNoLookups=True

3) Set system environment variables:

FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS = true

4) Close the corresponding application's external network connection and prohibit active external connections

Reference: https://github.com/apache/logging-log4j2

If you haven't upgraded yet, please check and repair it immediately to avoid any losses. .

Summary of additional information:

Vulnerability fix:

Apache has officially released a patch, and Tencent security experts recommend that affected users upgrade to a secure version as soon as possible.

Patch download address:
https://github.com/apache/logging-log4j2/releases/tag/log4j-2.15.0-rc1

Vulnerability Mitigation Measures:

(1) JVM parameter -Dlog4j2.formatMsgNoLookups=true

(2) log4j2.formatMsgNoLookups=True

That’s all about the breaking news! This is the end of the article on how to quickly fix the Apache Log4j2 nuclear-level vulnerability. For more information about the Apache Log4j2 nuclear-level vulnerability, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Apache Hudi's flexible payload mechanism hardcore analysis
  • Vertica Integrated Apache Hudi Heavy Usage Guide
  • How does Apache Tomcat handle high concurrent requests?
  • Detailed process of building and deploying Apache Pulsar cluster
  • Apache log4j2-RCE Vulnerability Reproduction and Repair Suggestions (CVE-2021-44228)
  • Query optimization that triples Apache Hudi performance

<<:  Example code for implementing fullpage.js full-screen scrolling effect with CSS

>>:  Bootstrap 3.0 study notes grid system case

Recommend

Detailed explanation of how to configure static IP in Centos8

After installing centos 8, the following error wi...

JS gets the position of the nth occurrence of a specified string in a string

Learn about similar methods for getting character...

SQL insert into statement writing method explanation

Method 1: INSERT INTO t1(field1,field2) VALUE(v00...

Several methods of calling js in a are sorted out and recommended for use

We often use click events in the a tag: 1. a href=...

Linux CentOS6.5 yum install mysql5.6

This article shares the simple process of install...

How to use Linux whatis command

01. Command Overview The whatis command searches ...

Steps to package and deploy the Vue project to the Apache server

In the development environment, the vue project i...

Problems with index and FROM_UNIXTIME in mysql

Zero, Background I received a lot of alerts this ...

Implementation steps for enabling docker remote service link on cloud centos

Here we introduce the centos server with docker i...

mysql is not an internal command error solution

The error "mysql is not an internal command&...

TortoiseSvn Little Turtle Installation Latest Detailed Graphics Tutorial

There were always problems when installing tortoi...

Configure nginx to redirect to the system maintenance page

Last weekend, a brother project was preparing to ...

Analysis of MySQL Aborted connection warning log

Preface: Sometimes, the session connected to MySQ...