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

Analysis of Facebook's Information Architecture

<br />Original: http://uicom.net/blog/?p=762...

A brief discussion on several ways to implement front-end JS sandbox

Table of contents Preface iframe implements sandb...

Solution to prevent caching in pages

Solution: Add the following code in <head>: ...

Detailed explanation of Docker container network port configuration process

Exposing network ports In fact, there are two par...

Implementing parameter jump function in Vue project

Page Description:​ Main page: name —> shisheng...

Interpretation of Vue component registration method

Table of contents Overview 1. Global Registration...

WeChat applet records user movement trajectory

Table of contents Add Configuration json configur...

Difference between varchar and char types in MySQL

Table of contents aforementioned VARCHAR Type VAR...

Cross-browser development experience summary (I) HTML tags

Add a DOCTYPE to the page Since different browser...

A detailed introduction to JavaScript execution mechanism

Table of contents 1. The concept of process and t...

Tips for viewing History records and adding timestamps in Linux

Tips for viewing History records and adding times...

XHTML Getting Started Tutorial: Commonly Used XHTML Tags

<br />Just like an article, our web pages sh...

The main idea of ​​​​dynamically setting routing permissions in Vue

I have seen some dynamic routing settings on the ...