Skip to content

History and stories

Log4Shell: the flaw hiding in a line of text

Attackers could take over a server by typing a special message into a chat box or a search field. The server did the rest.

1 min readStory

The short version

In December 2021, a flaw in a common piece of free software let attackers take over systems by getting them to record one line of text.

The story

Log4j is free software that keeps records, called logs, for programs written in the Java language. It is used inside a huge range of products, from business software to websites to the game Minecraft.

In December 2021, a flaw in it became public, soon named Log4Shell. If a program used Log4j to record a piece of text, and that text contained a certain kind of instruction, Log4j would follow it and could run code from anywhere on the internet. Attackers only had to get their text logged: in a chat message, a username, or a website form.

It was easy to use, and the flaw had been there since 2013. It received the highest possible severity rating. Attacks began almost immediately.

Why it mattered

The hardest part was knowing where Log4j was. Most businesses did not use it directly; it was buried inside products they had bought. Over the following weeks, IT teams worked through every system asking vendors whether they were affected.

The lesson today

Many products contain other products. When a flaw like this appears, the response depends on knowing what you run, who supplies it and how to reach them, then getting updates applied quickly.

All case files

Talk to us about your technology

Tell us what you run today and what is getting in the way. We will get back to you about how we can help.

Customize cookies

Choose which cookies this site may use. You can change this at any time from Cookie settings at the bottom of every page.