The Log4j 2 Security Vulnerability Incident (Log4Shell)

A summary of the open source security issue known as Log4Shell.

A vulnerability in Apache Log4j 2 (CVE-2021-44228, NVD) could lead to further damage such as malware infection, prompting urgent security update measures worldwide (2021.12.10). This post summarizes the related details.

Log4j

Log4j is an open source project from the Apache Software Foundation, used for logging purposes in most Java-based web services. log4j-logo

Timeline

  • 2021.11.24 First discovered by the Alibaba Cloud security team (Apache announcement)
  • 2021.11.30 The Log4j team opened the pull request Restrict LDAP access via JNDI (merged 12/5)
  • 2021.11.30 The Log4j team opened the pull request no longer formats lookups in messages by default (merged 12/5)
  • 2021.12.09 The issue began to spread after a tweet posted the Log4j 2 security PR along with a screenshot reproducing the vulnerability
  • 2021.12.10 The issue gained widespread attention after Minecraft’s technical lead announced via tweet that the issue had been fixed
  • 2021.12.10 The security vulnerability was patched with the release of Log4j 2.15.0
  • 2021.12.12 The Log4j team added Disable JNDI by default
  • 2021.12.12 Log4j 2.15.1 release candidate (JNDI disabled by default)

Press Coverage (Korea)

Response Measures

Response Examples (Reference)

Scope of Impact

  • Log4j versions from 2.0-beta9 up to (but not including) 2.15.x

  • Regarding Spring Boot

    • Spring Boot defaults to a different logging library, Logback, and is affected by the vulnerability only
      if the default logging system has been switched to Log4j2.
    • As of 2021.12.12, in Spring Boot 2.6.1 (the latest version at the time), switching to Log4j2 without specifying a version installs 1.14.1
    • Spring Boot 2.6.2, not yet released at the time, was planned to update to Log4j 2.15.x

Known Vulnerability Scanners

Attack Method

  • Log4Shell is classified as an RCE (Remote Code Execution) vulnerability.
  • It carries the risk of zero-day attacks (attacks that exploit a publicly disclosed but not yet patched security vulnerability).
  • See here for details log4shell-exploit-flow Image source

Government Considers Surveying Open Source Usage

The government is also considering ways to raise the security level of open source software. A Ministry of Science and ICT official said, “Because there is so much open source in use, similar incidents are likely to occur again,” and added, “we are considering follow-up measures, including a usage survey.”

(excerpted from this article)