Log4Shell: How the Log4j RCE Works, How to Test for Exposure, and Which Versions to Update

· Original article ↗

Summary

A recap explains how Log4Shell abuses Log4j’s JNDI/LDAP functionality, describes an open-source exposure test, and outlines patch and mitigation guidance, including updates for Java 7 and Java 8 or later.

Key points

  • The article describes how an attacker-controlled JNDI/LDAP lookup can trigger remote code execution through vulnerable Log4j applications.
  • It recommends testing input fields with an open-source tool; an LDAP connection indicates potential vulnerability, but no code is sent and connection logs are not retained beyond 30 minutes.
  • A negative test result may not rule out exposure: obfuscated payloads can evade detection, and malicious processes may run without outbound communication.
  • The article says vendor patching and mitigation were ongoing because Log4j was widely used across third-party software.
  • It identifies Log4j 2.17.1 as the latest patch for Java 8 or later, addressing the JDBC Appender RCE in 2.17.0, and recommends Log4j 2.14.4 for Java 7.
  • It notes that Log4j 2.16 disables JNDI by default, while re-enabling it for dependent applications carries ongoing risk.
  • The article links to additional open-source testing environments at github[.]com/NCSC-NL/log4shell and github[.]com/leonjza/log4jpwn.

Article Details

Vulnerability Types
  • Remote code execution via JNDI/LDAP lookup
Severity
Critical
Affected Versions
  • Log4j 2.17.0 (RCE via JDBC Appender)
  • Log4j 2.14.4 (Java 7 guidance)
  • Log4j 2.17.1 (Java 8 or later guidance)
Exploitation Status
unknown
Exploit Availability
unknown
Patch Status
available

MITRE ATT&CK

CVE

People

Vendors

Products

Related Articles