00->1
Learning pathStep 31 of 62Web and technical attacks ← All writeups

Zero-Day, Explained

If you are reading this, you have probably seen "zero-day" in headlines about serious attacks, and you want to know exactly what it means and whether anything can be done about it.

By the end you will be able to define a zero-day vulnerability, exploit and attack, explain why the name makes sense, follow the timeline from discovery to patch, name famous examples, and describe realistic defences.


1. What a zero-day is

Three related terms are often mixed up:

Term Meaning
Vulnerability A flaw in hardware, firmware or software that could be abused
Exploit The method or code that takes advantage of the flaw. Wikipedia: "the delivery mechanism that takes advantage of the vulnerability to penetrate the target's systems"
Attack Using the exploit against a target

For how these words are defined by NIST, and how CVE, CVSS and the KEV catalog track known flaws, see Threats and Vulnerabilities.

A zero-day vulnerability is one "unknown to its developers or anyone capable of mitigating it" (Wikipedia: Zero-day vulnerability). NIST defines a zero-day attack as "an attack that exploits a previously unknown hardware, firmware, or software vulnerability" (NIST glossary).

Why "zero" days?

Defenders have had zero days to prepare, because the flaw was unknown to them when it was first used. Wikipedia notes the term originally counted "the number of days since a new piece of software was released to the public," and later came to describe undisclosed vulnerabilities and the vendor's response time.

What zero-day is not

A vulnerability is not a zero-day just because it is serious or widely exploited. Once a vendor knows about it and has released a patch, further attacks on unpatched systems are attacks on a known, fixable flaw. Attacks on known, unpatched flaws are common, which is why CISA maintains the Known Exploited Vulnerabilities catalogue, "the authoritative source of vulnerabilities that have been exploited in the wild," for prioritizing patching (CISA KEV). The practical lesson: patch known issues first, because you can fix those today.


2. The life of a vulnerability

A simplified timeline (the details vary):

Stage What happens
1. Introduced A flaw is written into the software, usually by accident
2. Discovered A researcher, a criminal, a government or the vendor finds it. If the finder tells no one, it becomes a zero-day
3. Exploited (maybe) If attackers use it before the vendor knows, it is a zero-day attack "in the wild"
4. Reported The vendor is told, by a researcher or because the attack was noticed
5. Patch developed Wikipedia: "security patches can take months to develop, or may never be developed"
6. Disclosed Details are published, often after the patch
7. Patched by users The real defence only works when systems are updated

The window between stage 3 and stage 7 is the danger period. Even after a patch exists, some organizations are slow to apply it, which turns a zero-day into a well-known "n-day" problem for them.

Responsible disclosure and deadlines

Researchers who find flaws often report privately to the vendor and allow time to fix. Google's Project Zero uses a 90+30 policy: the vendor has 90 days to patch, and details are published 30 days after the patch (or at 90 days if there is no patch). For vulnerabilities already being exploited in the wild, its policy shortens the deadline to 7 days (Project Zero policy). Bug bounty programs pay researchers for reports; Vulnerability Disclosure and Bug Bounty explains how they work.

The market

Wikipedia describes three kinds of buyers for zero-day information: "white" (vendors and responsible disclosure programs), "gray" (governments, for offensive or defensive use), and "black" (organized crime). It cites a 2015 estimate that government and criminal markets were at least ten times larger than the white market. The existence of buyers is why finding a serious flaw can be valuable and why some stay hidden.


3. Notable examples

Case What it shows
Stuxnet (discovered 2010) A worm targeting industrial control systems, "believed to be responsible for causing substantial damage to the Iran nuclear program." It used four zero-day vulnerabilities in Windows (Wikipedia: Stuxnet). Shows zero-days used in a targeted, state-level operation
ProxyLogon (2021) Vulnerabilities in Microsoft Exchange exploited by the Chinese-sponsored group Hafnium (Wikipedia). Shows mass-impact flaws in widely deployed server software
EternalBlue (leaked 2016) An exploit developed by a government agency, released by the "Shadow Brokers," and later used in the WannaCry and NotPetya attacks (Wikipedia). Shows how a leaked exploit can become a widespread threat

Google Threat Intelligence Group tracked 90 zero-day vulnerabilities exploited in the wild in 2025. That is lower than the record high of 100 in 2023, higher than 78 in 2024, and "within the 60–100 range established over the previous four years, indicating a trend toward stabilization at these levels". Google also reports that 43 of the 90 (48%) affected enterprise technologies, an all-time high (Google Cloud blog). Counts are revised as new evidence arrives, so the figures for earlier years differ slightly between Google's yearly reports.


4. Defence: protecting against the unknown

You cannot patch a hole nobody knows about. But you can reduce how much a single unknown flaw can do, and make sure you are not exposed to the many known ones.

Layer What to do How it helps with zero-days
Prompt patching Apply vendor updates quickly, starting with systems exposed to the internet and with vulnerabilities in the KEV catalogue Shrinks the window once the vendor learns of the flaw and a fix is released
Reduce attack surface Remove unused software, services and ports; expose less to the internet A flaw in software you do not run cannot hurt you
Defense in depth Layered controls "so that attacks are likely to require breaching multiple levels of security" (Wikipedia) One bypass does not mean full compromise
Least privilege Run software with the minimum rights The exploit gains only limited access (see the privilege escalation post)
Multi-factor authentication Protects accounts even if one system is exploited Limits what a foothold can reach
Exploit mitigations and sandboxing Memory protections and isolating applications Makes exploitation harder and contains it. MITRE lists exploit protection and application isolation as mitigations for exploitation
Segmentation Separate networks and sensitive systems Contains spread
Behavioural detection Monitor for unusual behaviour (new processes, odd network connections) instead of only known signatures Zero-days have no known signature, but the actions after the exploit often look abnormal
Logging and monitoring Keep logs and watch them You can notice and investigate even without a signature (see false negatives)
Backups and a response plan Tested offline backups and an incident response plan Limits harm if the worst happens
Threat intelligence Follow vendor advisories and threat reports Quick awareness once a zero-day is announced (see threat intelligence)

When a zero-day is announced for software you use

  1. Check whether you run it (an asset inventory helps).
  2. Apply vendor mitigations immediately if a patch is not ready: disable the feature, block access, apply a workaround.
  3. Patch as soon as the fix arrives.
  4. Hunt for signs of compromise from the period before disclosure.
  5. Review and tighten exposure afterwards.

5. Common mistakes

Myth The facts
"Zero-day means very serious" It means unknown to the vendor at the time. Severity is a separate question
"Most breaches use zero-days" Many attacks use known vulnerabilities for which patches exist, so patching known flaws is the first priority
"Antivirus will catch it" Signature-based tools cannot match something never seen. Behaviour-based detection and layered defences help
"Zero-days only matter to governments" Criminals use them too, and leaked exploits spread quickly
"A patch ends the problem" Only for systems that have been updated
"There is nothing we can do" Attack surface reduction, least privilege, segmentation and detection all lower the impact

Closing

A zero-day is a flaw nobody on the defending side knows about yet, used before a fix exists. They are a small part of the picture compared with attacks on known, unpatched flaws, but when they happen they are hard to stop with patches alone.

Keep these points:

  • Zero-day = unknown to the defenders when first used.
  • Known, unpatched vulnerabilities are a major route in too. Patch those first.
  • Reduce what a single flaw can do: least privilege, layered defences, segmentation.
  • Detect behaviour, not just signatures.
  • Have a plan for when a zero-day in your software is announced.