Java4Shell (CVE-2026-114938) critical severity memory-corruption vulnerability affects OpenJDK 17, 21, 25 and 27 on x86-64 with AVX-512. Azul has your Security-only, Stability-first™ patch

Log4Shell

Log4Shell is a critical remote code execution vulnerability in Apache Log4j 2, one of the most widely used logging libraries in the Java ecosystem. Tracked as CVE-2021-44228, it let an attacker run code on a vulnerable server by getting the application to log a single crafted string. When it was disclosed in December 2021, the Log4Shell vulnerability put an enormous number of Java applications at risk and became a defining moment for software supply chain security.

Log4Shell at a glance

AttributeDetail
CVE identifierCVE-2021-44228 (the “Log4Shell CVE”)
Affected softwareApplications that log user-controlled input with Log4j 2
SeverityCVSS 3.x base score of 10, the highest available
Reported byChen Zhaojun of the Alibaba Cloud Security Team, on November 24, 2021
PatchedDecember 9, 2021
Root causeLog4j 2 performed JNDI lookups on attacker-controlled strings in log messages

Log4Shell explained: how the exploit works

Log4j 2 can substitute values into log messages using expressions. One of the supported expressions asks the Java Naming and Directory Interface (JNDI) to look up an object at a given address, including addresses on LDAP servers anywhere on the internet.

That combination is what made the Log4Shell exploit so simple:

  1. An attacker sends a request containing a string. Any field an application is likely to log will do, including a URL, a form field, or an HTTP header such as User-Agent.
  2. The application logs that string, and Log4j 2 resolves the expression.
  3. Log4j 2 contacts the attacker’s server and loads the Java object data it returns.
  4. The attacker’s code runs inside the application’s process.

Even where code execution was blocked, attackers could still leak data, such as environment variables, by embedding values in the lookup address. Besides LDAP, other JNDI lookup protocols, including RMI and DNS, were also potentially exploitable.

Why the Log4Shell vulnerability was so severe

Three factors combined. The exploit needed no authentication and very little skill. Log4j 2 was embedded in a huge range of commercial and open-source software, often as a transitive dependency that teams did not know they had. And the flaw had been present in the code since 2013 without being noticed. Security researchers described it as among the most serious vulnerabilities ever disclosed, and Wiz and EY reported that it affected 93% of enterprise cloud environments.

How Log4Shell was fixed

Apache released a fix on December 9, 2021, and follow-up releases hardened Log4j 2 further, including by restricting the protocols JNDI can use. Early mitigations, such as blocking requests that contain JNDI, were easy to bypass, so upgrading Log4j 2 to a fixed release was the dependable remedy. Teams that could not upgrade immediately removed the vulnerable component or applied the configuration workarounds Apache documented.

Lessons Log4Shell taught Java teams

  • You cannot patch what you cannot see. Many organizations spent days or weeks simply finding where Log4j 2 ran.
  • Presence is not the same as use. A vulnerable library sitting on disk is a different risk from one that is loaded and handling production traffic.
  • Patch speed matters. The window between disclosure and mass exploitation can be very short.

The pattern has repeated. In November 2026, researchers disclosed Java4Shell (CVE-2026-114938), a memory-corruption flaw in OpenJDK’s Base64 decoder. The difference is where the flaw lives: Log4Shell was in a library your application chose to include, while Java4Shell is in the Java runtime itself. Teams need to keep both layers under control. Read more in our guide to Java4Shell remediation.

How Azul helps with Log4Shell-class risks

Log4Shell was a library vulnerability, so no Java runtime update fixes it by itself; the fix is upgrading Log4j 2. What Azul helps with is the part that cost teams the most time: knowing what is actually running and what is actually exposed.

  • Azul Intelligence Cloud uses data from production Java runtimes to show which classes and JARs are actually loaded and used. Its Vulnerability Detection capability uses that class-level runtime data so teams can tell a vulnerable component that executes in production from one that is merely present, and prioritize accordingly. Azul reports that this approach can eliminate up to 99% of false positives.
  • Azul Runtime Inventory shows which Java runtimes you run in production and whether each is on the latest security update.
  • Azul Core provides builds of OpenJDK with support from Java experts, quarterly Critical Patch Updates and Patch Set Updates, monthly Critical Security Patch Updates (CSPUs) built on a Security-only, Stability-first approach, and out-of-cycle updates for urgent issues, so the runtime layer is covered when the next flaw lands there.