What is a zero-day? And why the name tells you what to do
A zero-day is a vulnerability the vendor has had zero days to fix. Here is how the term splits three ways, how the clock runs, and what a defender can do with no patch.
A zero-day is a vulnerability that the people responsible for fixing it have known about for zero days. That's the whole definition. The number in the name is a count of days since the vendor found out, and on the day the term applies, that count is nought: the flaw is real, somebody outside the vendor knows about it, and there is no patch because nobody has had time to write one.
Everything else people mean by "what is a zero day" is built on that clock. Once you see the clock, the term stops being scary and starts being useful, because it tells you precisely which of your controls still work.
What is a zero-day? One word, three different things
The press uses "zero-day" for three distinct objects, and conflating them is how people end up either panicking or ignoring the right one.
| Term | What it is | Who has it |
|---|---|---|
| Zero-day vulnerability | A flaw in software that the vendor does not yet know about | The person who found it, and anyone they told or sold it to |
| Zero-day exploit | Working code or a technique that turns the flaw into control, access or data | Whoever wrote it, usually a much smaller set |
| Zero-day attack | That exploit being used against a real target | The attacker, and eventually whoever notices |
A vulnerability is a possibility. An exploit is a capability. An attack is an event. You can have the first without the second for years. When a headline says "zero-day", read on until you can tell which of the three it means.
The trust boundary is always the same one: code that was supposed to handle untrusted input safely, and doesn't. The label says nothing about where that boundary sits, a browser's image parser, a VPN login page, a library deep in a dependency tree. It only tells you the fix hasn't shipped.
The clock, and who is on it
The day count starts when the vendor learns of the flaw. Day zero is the day they're told. Day thirty is a month later, and if there's still no patch, it isn't strictly a zero-day any more, just an unpatched vulnerability, which is a different and in some ways worse problem.
The window that matters to a defender has four points, and they don't always arrive in this order:
- Discovery. Someone finds the flaw. A researcher, an attacker, a fuzzer, or a developer reading their own code.
- Exploitation. Someone uses it against a target. If this happens before the vendor knows, it was a true zero-day attack.
- Disclosure. The vendor is told, or the flaw is published, or both. The clock starts here.
- Patch. A fix ships. Then a second clock starts: the time between the patch existing and you applying it.
The gap that gets the headlines is between discovery and disclosure, when the attacker alone knows. The gap that actually gets most organisations breached is between patch and deployment, when everyone knows and the fix is sitting in an update queue.
Who finds these is a market. Independent researchers report flaws, sometimes for free, sometimes through a bug bounty programme; coordinated disclosure usually means giving the vendor a set period to fix before publishing, and that period is a negotiation, not a law. Vendors triage and (ideally) fix and credit. CERTs act as intermediaries when a researcher can't reach a vendor or a flaw spans many products. Brokers buy exploits for governments or for whoever pays, and that market is where a zero-day exploit can stay private for years. You can't see into it, so don't assume it's empty.
Underneath all of this: a flaw's value is highest while it is unknown, and disclosure destroys that value. Every participant's incentives follow from that.
Why most intrusions are not zero-days
This is the opinion I'd most like a reader to leave with. Zero-days are expensive to find, expensive to weaponise, and burn on first detection. An attacker with a working one spends it on targets worth that cost. For almost everyone else, the cheapest path in is a vulnerability patched months ago on a system never updated, a credential from a breach dump, or a phishing email. The old, public flaw with a free exploit beats the secret one on cost every time.
So if you are a small company, a university lab, or a developer with a side project, a zero-day is unlikely to be what gets you. The unpatched thing you already know about is. That's not a reason to ignore zero-days; it's a reason to get your ordering right.
What a defender can do with no patch
The useful thing about the name is this: "zero-day" tells you that one control, patching, is temporarily unavailable. It says nothing about the others. So the question becomes which controls don't depend on knowing the flaw in advance.
Reduce what's reachable. An exploit needs to reach the vulnerable code. Every service exposed to the internet that doesn't need to be is a free shot. Every internal system that can talk to every other one turns a single exploited box into a network. Attack surface reduction and segmentation are boring and they work against flaws nobody has found yet, which is the entire point. The cost: inventories take time, segmentation breaks things quietly relying on flat networks, and someone has to own the exception list.
Detect behaviour, not signatures. A signature for a zero-day exploit does not exist by definition. What does exist is the behaviour that follows exploitation: a web server spawning a shell, a document reader making outbound connections, a service account logging in from somewhere new, a large transfer at 3am. Telemetry that alerts on those patterns catches attacks it has never seen. The cost is tuning; untuned behavioural detection generates noise, and noise is how real alerts get missed.
Apply vendor mitigations. Between disclosure and patch, vendors often publish workarounds: disable a feature, block a port, set a flag. These are crude and sometimes break something. Apply them anyway, and note what to undo once the patch lands.
Harden the layer around the flaw. A good set of security headers won't stop a server-side zero-day, but it limits what a browser-side one can do with your site; the one-command check in read your security headers takes a minute. And your dependencies are a zero-day surface you didn't write: Ritika's post on how dependencies run code before your code does is the right mental model for why a flaw in a library you've never heard of is still your flaw.
Patch inside a window you decided in advance. When the fix ships, the zero-day becomes an n-day, and the race is between you and every attacker who can read a diff. Decide the window before the emergency: internet-facing systems inside days, internal systems inside a defined longer period, exceptions written down. A window set under pressure is whatever the loudest person in the room says.
| Control | Works against unknown flaws? | Main cost |
|---|---|---|
| Patching | No, only once a fix exists | Testing, downtime, discipline |
| Attack surface reduction | Yes | Inventory effort, breaking hidden dependencies |
| Segmentation | Yes, limits blast radius | Design time, exceptions, friction |
| Behavioural detection | Yes, after exploitation begins | Tuning, analyst time |
| Vendor mitigations | Yes, once published | Feature loss, must be reversed later |
Notice that the one control everyone talks about is the one that doesn't help on day zero.
So this week: pick the system you'd least like to see in a headline, list what it exposes and what it can reach, and remove one thing from each list. Then ask whether, if that box started behaving oddly tonight, anything would tell you. If not, that's your project.
Frequently asked questions
Is a zero-day the same as a critical vulnerability?
No. "Zero-day" describes timing: the vendor has had no time to fix it. "Critical" describes impact: what an attacker gets if they succeed. A zero-day can be low impact, and a critical flaw can be years old with a patch nobody applied.
How long does a zero-day stay a zero-day?
Strictly, until the vendor knows about it. In practice people keep using the word until a patch is available. Once a fix exists, it's more accurate to call it an n-day, where n is the number of days you've had the fix and not applied it.
Can antivirus or a firewall stop a zero-day?
Signature-based tools can't recognise an exploit nobody has seen. Behaviour-based endpoint tools and well-configured firewalls can still catch what happens after the exploit runs, such as unexpected processes, connections or privilege changes. Treat them as detection and containment, not prevention.
Where do I report a vulnerability I've found?
Look for the vendor's security contact or a security.txt file on their site, or a bug bounty programme if they run one. If you can't reach them, a national CERT can act as an intermediary. Don't test on systems you aren't authorised to test, and give the vendor time before you publish.