A zero-day attack exploits a software vulnerability that is unknown to the vendor and has no patch, so the developer has had zero days to fix it before the attack. Attackers use the flaw to run code, steal data or install malware, often before anyone knows the weakness exists. You cannot patch a zero-day in advance, so defense relies on fast patching once a fix appears, behavior-based detection, network segmentation and least privilege.
Key takeaways
- Zero day means the vendor has had zero days to fix the flaw, so no patch or signature exists when the attack starts.
- Famous zero-days include Stuxnet in 2010, which used four Windows flaws, and Log4Shell in 2021, rated 10 out of 10.
- Patch fast once a fix lands, segment your network, and use behavior-based detection, because signature tools cannot see an unknown flaw.
Most attacks use flaws everyone already knows about. A zero-day attack is different: it uses a flaw nobody knows about yet, so there is no patch, no warning and no signature to catch it. That is what makes it one of the most feared terms in security.
What does zero day mean?
Zero day means the vendor has had zero days to fix a vulnerability. The flaw exists in the software, but the vendor does not know about it, so no patch has been written and users have had no chance to protect themselves.
The name comes from counting days since the vendor learned of the flaw. A normal vulnerability gives the vendor time to build a fix before attackers use it widely. A zero-day gives them none, because the attack arrives on day zero, before disclosure.
Once the flaw is disclosed and a patch is released, it stops being a zero-day. It becomes a known vulnerability, usually with a CVE identifier, and from that point the risk depends on how fast people patch. IBM's zero-day guide gives Stuxnet and Log4Shell as the classic examples of that transition.
What is a zero-day attack?
A zero-day attack is the real-world use of a zero-day exploit against a live target. The attacker triggers the unknown flaw to run code, steal data, escalate privileges or install malware on a system that has no defense prepared for that specific weakness.
Because defenders do not know the flaw exists, they cannot write a rule for it. Palo Alto Networks notes that zero-day vulnerabilities can sit in operating systems, applications, device firmware or network hardware, often going undetected for months or even years before anyone finds them.
The attack itself may look ordinary: a crafted web page, a malicious email attachment, or a direct network request. The difference is what happens underneath, where a hidden bug lets the attacker do something the software was never meant to allow.
What is the difference between a zero-day vulnerability, exploit and attack?
These three terms describe three stages of the same problem, and mixing them up makes the news harder to follow. The vulnerability is the flaw, the exploit is the weapon built for it, and the attack is the weapon being used.
| Term | What it is | Example |
|---|---|---|
| Zero-day vulnerability | A hidden flaw unknown to the vendor, with no patch | A memory bug in a browser that lets code escape its sandbox |
| Zero-day exploit | Code written to trigger that flaw | A crafted web page that uses the browser bug to run commands |
| Zero-day attack | Using the exploit against a real target | Sending that page to staff to steal credentials |
| CVE | A public identifier given once the flaw is disclosed | CVE-2021-44228 for Log4Shell |
| N-day vulnerability | A known flaw with a patch available for N days | Any patched flaw users have not installed yet |
A CVE is what a zero-day becomes after disclosure. MITRE's CVE system gives each publicly known flaw a standard identifier, which is how vendors, researchers and defenders all refer to the same issue. Learn how malware delivered this way differs from other threats in our guide to virus vs malware.
How does a zero-day attack work?
A zero-day attack follows a clear sequence, from discovery to patch. The danger is concentrated in the middle, when the exploit is active and nobody outside the attacker knows the flaw exists.
Discovery
Someone finds the flaw by reading code, reverse engineering software, fuzzing inputs, or studying how a system behaves. That someone may be a security researcher, a criminal, or a government team.
Weaponization
The finder builds exploit code that reliably triggers the flaw. This often means crafting a malicious file, web page or network packet that makes the software misbehave in a useful way, such as running the attacker's commands.
Delivery and exploitation
The exploit reaches the target through a browser, an email attachment, a messaging app, or a direct network connection. Because no signature exists for it, it often passes filters that would catch known malware.
Attackers sometimes chain several zero-days together, using one to get in and another to gain higher privileges. That is how a single click can end in full control of a device.
What are famous examples of zero-day attacks?
Three cases show the range: a cyberweapon that broke physical equipment, a library flaw that put hundreds of millions of devices at risk, and a file-transfer flaw used for mass extortion.
Stuxnet (2010)
Stuxnet was a worm that exploited four different zero-day vulnerabilities in Microsoft Windows to reach nuclear facilities in Iran. Once inside, it sent malicious commands to uranium enrichment centrifuges, making them spin so fast they broke down. IBM notes that Stuxnet damaged about 1,000 centrifuges.
Stuxnet proved that a zero-day attack could cause physical destruction, not just data theft. It is widely attributed to the United States and Israel, though neither government has confirmed involvement.
Log4Shell (2021)
Log4Shell was a flaw in Log4j, a widely used open-source Java logging library. An attacker could gain remote control of a server by sending a specially crafted text string. Because Log4j sat inside popular programs and services, hundreds of millions of devices were at risk.
MITRE gave the flaw, CVE-2021-44228, the highest possible severity score of 10 out of 10. CISA issued urgent guidance, and researchers observed more than 100 Log4Shell attacks per minute at the peak, according to IBM.
MOVEit Transfer (2023)
In 2023, the Cl0p ransomware gang exploited a zero-day SQL injection flaw in MOVEit Transfer, a file-transfer tool used by hundreds of organizations. The flaw let attackers steal data from victims, which they then used for extortion. It showed how one zero-day in a shared supplier can hit many victims at once.
Who carries out zero-day attacks, and who do they target?
Nation-state groups and advanced persistent threat groups invest the most in zero-days, because the exploits are expensive to find and valuable to keep secret. They use them surgically against governments, defense, critical infrastructure and large companies.
Criminal groups also buy and use zero-days, often for ransomware or data theft. Some flaws are sold on underground markets, and researchers have reported prices reaching hundreds of thousands of dollars for a single high-value exploit, such as a Zoom zero-day offered for as much as $500,000 in 2020.
Ordinary users are rarely the first target, but they are often the later victims. Once a zero-day is disclosed and patched, attackers build it into wider campaigns that hit anyone who has not updated yet. That is why the patch window matters for everyone.
Why are zero-day attacks so hard to defend against?
Traditional defenses are reactive: they recognize threats they have seen before. A zero-day is, by definition, a threat nobody has seen before, so signatures, blocklists and known-bad indicators all miss it.
Attackers also benefit from time. A flaw can be exploited quietly for weeks or months while defenders look for a cause they cannot name. By the time the flaw is disclosed, the attacker may already have persistence, stolen data or a foothold to return through.
The window of vulnerability runs from the moment the bug is discovered until the patch is widely deployed. Palo Alto Networks notes that this period can range from weeks to months, with some flaws remaining unexploited for years before disclosure. The longer the window, the more damage a patient attacker can do.
How do you protect against zero-day attacks?
You cannot prevent every zero-day, but you can shrink the damage it can do and close the window fast once a fix exists. The defense is layered, because no single layer sees an unknown flaw.
Patch quickly, and prioritize what attackers already use
Turn on automatic updates for your operating system, browser and apps. For a business, check CISA's Known Exploited Vulnerabilities catalog, which lists flaws attackers are actively exploiting and sets deadlines for federal agencies. Treat KEV entries as your patch-first list.
Use behavior-based detection
Endpoint detection and response tools watch for suspicious behavior, such as a document launching a shell or a browser writing to system folders. That catches exploits whose files have never been seen before. Keep your home network segmented too; our guide to how to secure your Wi-Fi shows how to separate smart devices from your main computers.
Limit what an exploit can reach
Run as a standard user, not an administrator, for daily work. Segment your network so a compromised laptop cannot reach servers or backups. Apply workarounds vendors publish before a patch is ready, such as disabling an affected feature or blocking the vulnerable service from the internet.
For a small team, put these steps into a written plan with an owner and a patch window. Our small business cybersecurity checklist covers patching, backups and access control in one place.
What should you do when a zero-day is announced?
Act the same day, even if no patch exists yet. First, find out whether you run the affected software and which versions are vulnerable, using the vendor advisory or the CVE record.
- Apply the vendor workaround. Disable the feature, restrict network access, or add the detection rule the vendor publishes.
- Patch as soon as the fix is released. Do not wait for the next maintenance window if the flaw is in the KEV catalog.
- Check for signs of compromise. Look for unusual logins, new accounts, unexpected processes and outbound connections you cannot explain.
- Isolate anything suspicious. Disconnect a suspect device from the network before you investigate it further.
- Change credentials if exposure is possible. If the flaw could have exposed passwords or session tokens, rotate them after patching.
The bottom line
A zero-day attack works because the defender is blind to the flaw. You cannot patch what nobody knows about, so your real defense is everything around the patch: fast updates, behavior-based detection, segmentation and least privilege.
Keep automatic updates on, watch CISA's exploited-vulnerabilities list, and check your own exposure with the free security headers checker as part of a regular review. When the next zero-day is announced, the teams that recover fastest are the ones that were already ready to patch, isolate and respond.
Frequently asked questions
What does zero day mean?
Zero day means the software vendor has had zero days to fix a vulnerability, because nobody told them about it before it was exploited. The flaw is unknown to the vendor, so no patch exists and no antivirus signature is written for it yet.
What is the difference between a zero-day vulnerability, exploit and attack?
The vulnerability is the hidden flaw itself. The exploit is the code written to trigger that flaw. The attack is the real-world use of that exploit against a target to steal data, run code or install malware.
Can antivirus stop a zero-day attack?
Signature-based antivirus usually cannot, because it looks for threats it already knows. Behavior-based detection, endpoint detection and response, and application allowlisting have a better chance, because they watch for suspicious actions rather than known file signatures.
How long does a zero-day stay a zero-day?
It stays a zero-day until the flaw is disclosed and a patch or fix is available. Some flaws are exploited for months or years before anyone notices. Once a fix is released, it becomes a known vulnerability, and patching speed decides who stays exposed.
Are zero-day attacks common for home users?
Most zero-days target high-value victims such as governments, large companies and specific individuals, because the exploits are costly to find or buy. Home users are more often hit by the same flaw after it becomes public and is built into wider malware, which is why patching quickly still matters.
What is a zero-day market?
It is the trade in undisclosed vulnerabilities and exploits. Researchers may sell them to vendors through bug bounties, to brokers, or, in the worst case, to criminals or governments. Prices vary widely, and the most valuable flaws can sell for very large sums.
What should I do if a zero-day affects software I use?
Apply the vendor patch as soon as it is released, and apply any workaround the vendor publishes in the meantime. Check CISA's Known Exploited Vulnerabilities catalog for the flaw, restrict access to the affected system if you cannot patch yet, and watch for unusual activity.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Palo Alto Networks, IBM, CISA's Known Exploited Vulnerabilities catalog and MITRE CVE guidance.
How we write and fact-check →