Safeguard
Vulnerability Analysis

Code Red (2001): The Worm That Made Buffer Overflows Everyone’s Problem

A factual retrospective on the July 2001 Code Red worm, which exploited a buffer overflow in Microsoft IIS, infected hundreds of thousands of servers, and helped establish modern patch management as a discipline.

Safeguard Research Team
2 min read

Code Red (2001): The Worm That Made Buffer Overflows Everyone's Problem

Summary

Code Red began spreading on 13 July 2001 and infected an estimated 359,000 hosts in under 14 hours at its peak. It targeted Microsoft Internet Information Services (IIS) web servers, defaced pages with the text "Hacked By Chinese!", and attempted a coordinated denial of service against a hardcoded IP address associated with the White House.

Technical Root Cause

The worm exploited a buffer overflow (CWE-121) in the Indexing Service ISAPI extension shipped with IIS, tracked as CVE-2001-0500. A long, crafted URL overflowed a stack buffer and allowed arbitrary code execution in the context of the web server.

Microsoft had published a patch in June 2001, roughly a month before the outbreak. Many IIS installations were vulnerable without their operators realising it, because the Indexing Service extension was installed and enabled by default even on servers that never used indexing.

Why It Mattered

Code Red, and Nimda which followed that September, marked the point at which internet-scale worms became a mainstream operational concern rather than a research topic. Two specific lessons emerged that have held since.

First, default-enabled components are attack surface whether or not anyone uses them, which is a substantial part of why "secure by default" and minimal installation footprints became standard guidance. Second, an organisation cannot patch what it does not know it is running, and a large share of Code Red victims did not know the vulnerable extension was present.

OWASP / CWE Mapping

  • CWE-121: Stack-based Buffer Overflow
  • OWASP A05:2021: Security Misconfiguration (default-enabled unused component)
  • OWASP A06:2021: Vulnerable and Outdated Components

Lasting Impact

The response to Code Red and Nimda directly shaped Microsoft's Trustworthy Computing initiative announced the following January, which changed default configurations across subsequent Windows and IIS releases. It is the earliest incident in this series, and its root cause, unknown inventory plus an available unapplied patch, recurs unchanged in SQL Slammer two years later and in WannaCry sixteen years later.

How Safeguard Helps

Asset discovery and inventory address the part of this that has not changed in two decades: knowing what is actually deployed, including components enabled by default that nobody chose deliberately.

References

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.