ThinkRoost
Technology and AI

Software engineering · 5 min

Log4Shell

Learn about a widespread vulnerability.

ReflectText size
Source reading

What the sources describe

Log4j is free, open-source software used by many Java programs to record events, called logging. It is maintained by volunteers through the Apache Software Foundation and is used in countless applications and services.

In November 2021, Chen Zhaojun of Alibaba Cloud's security team privately reported a serious flaw. It was publicly disclosed in December 2021 and named Log4Shell. If an attacker could get a program to log a specially crafted piece of text, Log4j could be made to fetch and run code from the attacker's server.

This was easy to exploit. For example, typing the text into a chat box in the game Minecraft could affect vulnerable servers. The flaw received the highest severity score. The head of the US Cybersecurity and Infrastructure Security Agency called it one of the most serious she had seen.

Organisations rushed to find and update affected software, which was difficult because Log4j was often hidden inside other programs. A US government review in 2022 warned that vulnerable versions could remain in use for a decade or more.

Our interpretation

Connecting the ideas

In December 2021, the Log4Shell flaw in widely used Log4j logging software was disclosed; attackers could make programs run their code simply by getting specially crafted text logged.

The idea, in plain language

The big idea

Know what is inside your software, because hidden parts can carry risks.

Use it in real life

Use it in real life

Check the apps on your phone and remove any you no longer use, then update the rest. For one app, look up its developer and how often it is updated. Write down why unused or outdated software can increase security risks, using Log4Shell as an example.

Practice scenario (made up for this lesson)

Try it

Made-up example: What could attackers do with Log4Shell?

A good answer: make programs fetch and run code from their servers by getting specially crafted text logged.

Quick quiz

1. Why was Log4Shell easy to exploit?

2. Why was fixing Log4Shell difficult?

3. What did a 2022 US government review warn?

Finished reading?

Make this the next Doom video?

Vote for the lessons you'd most like to see turned into a short animated story.

How was this lesson?

No ratings yet — be the first.

Sign in to rate

Sources

Limitations

Checked against the US cybersecurity agency's guidance; discovery details rely on Wikipedia.

Voice: Debby — Soft and soothing (tap to change)

Debby narration · part 1 of 15