About Apache Log4j RCE vulnerability (CVE-2021-44228)
- Security
- Published
- 2 min read
- @scqrinc
Table of contents
Summary Summary
- Caused by Apache Log4j (opens in a new tab)’s JNDI (“Java Naming and Directory Interface”) features.
- How is it severe? The CVSS (opens in a new tab) score is 10, the maximum, which means the highest risk.
Description Description
CVE-2021-44228 (named “log4shell” or “log4jam”): Remote code execution (RCE) severe vulnerability, discovered in Log4j, affects a wide range.
It’s because Log4j is related to JAVA, one of general-purpose programming languages and used widely, and also used by popular frameworks such as Spring (opens in a new tab), Struts (opens in a new tab), LogStash (opens in a new tab) and Solr (opens in a new tab) etc. internally.
To be a pity, it’s straightforward and easier for attackers to exploit the CVE-2021-44228 (log4shell) vulnerability. As to services open to some network, especially Internet, the situation is really dangerous.
It has been being considered as a historical one, with being referred to Heartbleed (opens in a new tab) and Shell shock (or Bashdoor) (opens in a new tab), discovered in 2014.
Updating Log4j version to 2.15.0 is strongly recommended.
How to fix it How to fix it
- Strongly recommended to updated log4j version 2.15.0 (or later).
Second best and temporary ways to mitigate it Second best and temporary ways to mitigate it
Well, When it’s difficult to update #Log4j, they are possible:
- Use WAF.
- if ver >= 2.10.0: Disable JNDI lookup with system property (log4j2.formatMsgNoLookups) or environment variable (LOG4J_FORMAT_MSG_NO_LOOKUPS).
- else: Remove JndiLookup from classpath.
This post is based on the tweets by my company (opens in a new tab).
More on: Security for developers
-
Suppose you get along with GPG (The GNU Privacy Guard, GnuPG) for good privacy, and sometimes want to change the passphrase of its secret key.
-
A new sudo vulnerability was found.
-
Chrome on Windows (and more), whose version is prior to 109.0.5414.74, has risk to make remote attack easy.
Scqr [secureal]
Scqr [secureal]: the engineering practice of Reflerd Inc. (opens in a new tab)
Comments and feedback are welcome.