Log4j 2: New vulnerability on DoS in 2.16.0 and below
- Security
- Published
- 1 min read
- @scqrinc
Log4j (opens in a new tab) 2.17.0 was released due to security reason. It fixes DoS vulnerability in 2.16.0 and below on v2.
As to the new vulnerability on DoS (denial-of-service), it’s safe with a default Pattern Layout where a Context Lookup such as $${ctx:loginId} are NOT used in logging configuration.
Otherwise, the CVSS score is 7.5 and the severity is high.
On Log4j 2 with custom Pattern Layout with Context Lookups such as $${ctx:loginId}, updating its version to 2.17.0 is recommended to fix the vulnerability called CVE-2021-45105 (opens in a new tab). It can cause service down.
Alternatively, it can be mitigated to replace Log4j 2 non-default Context Lookups with Thread Context Map patterns (%X, %mdc, or %MDC) or to reduce references to them in configuration, thanks to The Apache Software Foundation (opens in a new tab) effort and information: https://logging.apache.org/log4j/2.x/security.html (opens in a new tab)
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.