Malware & ransomware

What Is a Zero-Day Exploit? How Unknown Flaws Become Attacks

A zero-day exploit hits a vulnerability the vendor does not know exists. Here is how the attack works, why it is so dangerous, and what actually defends against it.

Cysoro Security TeamPublished · 9 min read
MALWARE & RANSOMWARE Zero-Day Exploit The flaw nobody knows about — until it is used 0 DAYS NO PATCH · NO SIGNATURE · NO WARNING CYSORO.COM
Quick answer

A zero-day exploit is code or a technique that attacks a software vulnerability unknown to the vendor, so no patch exists and defenders have had zero days to prepare. Attackers discover the flaw, build an exploit for it and use it before anyone else knows it is there. Once the flaw is disclosed and patched, it stops being a zero-day and becomes an ordinary known vulnerability.

Key takeaways

  • A zero-day exploit attacks a flaw the vendor does not know about, so no patch exists when the attack starts.
  • Famous zero-days include Log4Shell, Stuxnet and MOVEit — each caused damage far beyond a normal bug.
  • You cannot patch a zero-day, so defense means fast patching of everything else, least privilege and watching CISA's KEV catalog.

Most software bugs get found, reported and fixed before attackers can use them. A zero-day breaks that sequence: the attacker finds the flaw first, builds an exploit for it, and uses it while the vendor still has no idea the flaw exists. That head start is what makes zero-days the most feared attacks in cybersecurity.

What is a zero-day exploit?

A zero-day exploit is a method or piece of code specifically built to trigger a software vulnerability that is unknown to the vendor. It lets attackers run commands, steal data, escalate privileges or bypass authentication on a system that has no patch available, because nobody knew the flaw needed fixing.

The name comes from the clock. When a vulnerability is discovered by attackers and exploited before the vendor knows about it, the vendor has had zero days to develop and ship a fix. Defenders are starting from nothing, while the attacker already has working code.

Three terms are often mixed up, so keep them separate:

  • Zero-day vulnerability — the hidden flaw itself, sitting in code or hardware.
  • Zero-day exploit — the code or technique built to trigger that flaw.
  • Zero-day attack — the actual use of the exploit against a live target.

A related term is CVE, or Common Vulnerabilities and Exposures. A CVE identifier is assigned once a vulnerability is publicly disclosed. At that point the flaw is no longer a zero-day: it is a known vulnerability, and vendors prioritize a patch for it.

How does a zero-day exploit work?

A zero-day exploit works by finding a precise weakness in how software handles input, memory or authentication, then feeding it crafted data that makes the program do something its developers never intended. Common weaknesses include memory corruption, use-after-free errors, type confusion and flaws in how software parses files or network data.

The zero-day lifecycle 1 Flaw is written a bug ships in released code 2 Attacker finds it research, fuzzing or code review 3 Exploit is built code that triggers the flaw reliably 4 Attack in the wild no patch exists, no signature yet 5 Disclosed, patched CVE assigned, fix shipped, no longer 0-day The danger window is stages 2 to 4 — when only the attacker knows.
The zero-day lifecycle, from a shipped bug to a patched vulnerability. Illustration by Cysoro.

Attackers usually reach the flaw through ordinary channels: a malicious web page, an email attachment, a crafted file or a direct network request. Browser zero-days are a good example. A victim visits a booby-trapped page, the exploit triggers a memory flaw in the browser engine, and the attacker gains code execution inside the browser. That is often chained with a second flaw — a sandbox escape — to reach the operating system itself.

Exploit chaining is common because one flaw rarely gives full control. A typical chain starts with a flaw that gets code running in a restricted process, adds a sandbox escape, then escalates privileges to install malware, steal credentials or move across the network. Each link in the chain was once someone's zero-day.

Finding these flaws is skilled work. Attackers and researchers use fuzzing — feeding programs huge volumes of malformed input and watching for crashes — code review, and close study of patches, since a patch for one bug often hints at nearby bugs that were not fixed.

Why are zero-day exploits so dangerous?

Zero-day exploits are dangerous because every normal defense assumes the flaw is known. Signature-based antivirus has no signature for them. Vulnerability scanners cannot flag a flaw that has no CVE. And patching — the single most effective defense in cybersecurity — is impossible until the vendor knows the flaw exists.

The window of exposure can be long. Flaws have been exploited secretly for months or years before discovery, and even after disclosure the danger does not end: many organizations patch slowly, so a former zero-day keeps working against unpatched systems for years. CISA's annual review of the most exploited vulnerabilities found that zero-days made up more than half of the top 15 exploited vulnerabilities in 2023, up sharply from the year before.

Zero-days are also hard to detect in progress. A well-built exploit leaves little trace, and its traffic can look like ordinary use of the application it targets. That is why detection has to focus on behavior — unusual process activity, unexpected network connections, strange file changes — rather than on recognizing the exploit itself.

What are famous zero-day exploit examples?

A few zero-days changed how the whole industry thinks about patching. Each one below was a zero-day when it was first used, and each caused damage far beyond an ordinary bug.

Log4Shell (CVE-2021-44228)

Log4Shell was a remote code execution flaw in Apache Log4j 2, a logging library used by a huge share of Java applications. An attacker could get a server to run their code simply by getting it to log a crafted string, such as one containing a JNDI lookup to an attacker-controlled server. No authentication was needed, and the flaw scored the maximum CVSS rating of 10.0.

It was disclosed on December 9, 2021, and mass scanning began within hours. CISA added it to its Known Exploited Vulnerabilities catalog the same month and issued an emergency directive requiring federal agencies to patch or mitigate by December 23. Because Log4j was buried inside countless products, many organizations did not even know they were running it. Years later, Log4Shell still appears on lists of the most commonly exploited vulnerabilities, because unpatched instances remain.

Stuxnet (2010)

Stuxnet was a worm that targeted industrial control systems, and it used several zero-day flaws in Windows to spread and to reach its target: centrifuges in Iran's nuclear program. It was the first widely known case of a cyberattack physically damaging industrial equipment, and it showed that zero-days could be used as weapons against infrastructure rather than just for theft or espionage.

MOVEit Transfer (2023)

The MOVEit Transfer file-transfer product had a zero-day SQL injection flaw that a ransomware group exploited at scale in 2023, stealing data from hundreds of organizations and millions of people. It topped CISA's list of the most exploited vulnerabilities that year, and the fallout continued for months as more victims were identified. The case is a reminder that a zero-day in a widely used business product can become a mass-extortion event within days.

Chrome and other 2026 zero-days

Zero-days are not history; CISA keeps adding new ones to its catalog. In November 2026 alone, CISA added flaws including a Google Chromium use-after-free vulnerability and a Microsoft Outlook vulnerability, both confirmed to be exploited in the wild. The catalog is updated continuously, and each entry carries a deadline by which federal agencies must remediate — a useful urgency signal for everyone else. You can follow the catalog at CISA's Known Exploited Vulnerabilities catalog.

Who uses zero-day exploits, and how are they bought?

Nation-state groups were the earliest heavy users of zero-days, and they remain the most capable. But the market has widened. Ransomware gangs use zero-days to break into networks fast, commercial spyware vendors sell exploits to governments, and brokers buy and sell vulnerability information in a market where a reliable exploit for a major product can be worth a large sum.

There is also a legitimate side. Security researchers find flaws and report them to vendors under coordinated disclosure, giving the vendor time to build a patch before the details go public. Bug bounty programs pay researchers for the same work through official channels. The same flaw can therefore be worth money to a vendor, a broker or an attacker — and the researcher's choice of buyer decides whether it becomes a patch or a weapon.

That market is why zero-days are not going away. As long as complex software has bugs, and as long as someone will pay for exclusive knowledge of them, attackers will keep hunting. Your defense has to assume some flaws in your software are unknown to everyone except an attacker.

Zero-day vs n-day: what is the difference?

An n-day vulnerability is a known flaw with a patch available — the "n" stands for the number of days since disclosure. The distinction matters because the defense is completely different: n-days are fixed by patching, while zero-days cannot be patched at all.

Zero-dayN-day
Vendor knows?NoYes
Patch available?NoYes
CVE assigned?Not yetYes
Detected by scanners?NoYes
Main defenseBehavior monitoring, least privilege, segmentationPatch promptly
Typical attackerNation-states, advanced gangs, brokersAnyone, including automated mass scanning

Here is the uncomfortable part: most real-world damage comes from n-days, not zero-days. Attackers routinely exploit flaws that were patched months or years ago, because so many systems remain unpatched. CISA's findings show Log4Shell — patched in December 2021 — still being actively exploited years later. Patching promptly protects you against the far larger threat, and it is also the fastest way to close a zero-day once it is disclosed.

How do you defend against zero-day exploits?

You cannot patch a zero-day, so defense is about limiting what an exploit can do and spotting it quickly. The goal is to make the attack fail, or to catch it before it becomes a breach.

Five layers that blunt a zero-day 1 Patch fast, patch everythingcloses n-days and shrinks the window once a zero-day is disclosed 2 Least privilege everywherean exploited browser or app should not have admin rights 3 Segment the networkone compromised host should not reach servers or backups 4 Watch behavior, not signaturesendpoint detection flags unusual processes and connections 5 Offline backups, tested restoresyour last resort when an exploit becomes ransomware
Defense in depth against zero-days — no single layer stops them, but together they limit the damage. Illustration by Cysoro.
  • Patch within days, not months. When CISA adds a flaw to its KEV catalog, treat it as an emergency: it is confirmed to be exploited in the wild.
  • Use least privilege. If a browser exploit runs as a standard user instead of an administrator, it cannot install system-wide malware or disable security tools.
  • Segment the network. Keep workstations, servers and backups on separate segments so one compromised host cannot reach everything.
  • Use behavioral detection. Endpoint detection and response tools watch for unusual behavior — a browser spawning a shell, an office app reaching the internet — and can stop an exploit chain even when no signature exists.
  • Keep browsers and plugins updated. Browsers are the most common zero-day target, and vendors ship fixes fast. Enable automatic updates everywhere you can.
  • Maintain offline backups. If a zero-day becomes ransomware, a tested offline backup is the difference between recovery and paying.

For a small business, the practical starting point is the basics done well: automatic updates, standard user accounts, and the rest of the controls in our small business cybersecurity checklist. Those controls stop most attacks, including most former zero-days.

You can also check whether your own passwords have already appeared in breaches with our pwned password checker.

What should you do when a zero-day is announced?

When a serious zero-day is disclosed, speed matters more than perfection. Vendors usually publish mitigations before the full patch, and those mitigations can close the hole in the meantime.

  1. Check whether you run the affected product. Search your asset inventory, and remember that vulnerable libraries can be buried inside other products, as Log4j was.
  2. Apply the vendor's mitigation first — disable a feature, block a pattern at the firewall, or change a configuration setting.
  3. Patch as soon as the fix is available, starting with internet-facing systems.
  4. Look for signs of compromise. Vendors and CISA usually publish indicators of compromise with the advisory; check your logs for them.
  5. Watch for follow-on patches. Early fixes are sometimes incomplete, as happened with Log4j, so keep updating until the vendor confirms the final version.
Do not wait for the next patch cycleA confirmed exploited vulnerability is not a routine update. Treat CISA KEV additions as emergency changes and patch out of band.

The bottom line

A zero-day exploit is dangerous precisely because it arrives before the defense does: no patch, no signature, no CVE. Famous cases like Log4Shell, Stuxnet and MOVEit show the scale of damage one unknown flaw can cause.

You cannot prevent zero-days from existing, but you can make them fail. Patch everything else fast, run with least privilege, segment your network, watch behavior and keep offline backups. Check your own exposure with our free security headers checker to see how well your website is hardened against common attacks.

Frequently asked questions

What is a zero-day exploit in simple terms?

A zero-day exploit is an attack that uses a security hole nobody knows about yet. Because the software maker does not know the hole exists, there is no fix, and the attacker can use it freely until someone discovers it and a patch is released.

What is the difference between a zero-day vulnerability, exploit and attack?

The vulnerability is the hidden flaw in the software. The exploit is the code or method built to trigger that flaw. The attack is the actual use of the exploit against a live system to steal data, install malware or take control.

Why is it called a zero-day?

It is called a zero-day because the vendor has had zero days to fix the problem. The name describes the time between the flaw being discovered by attackers and a patch being available, which at the start is zero.

What is an example of a zero-day exploit?

Log4Shell is the best-known example. It was a flaw in the Apache Log4j logging library disclosed in December 2021 that let attackers run code on a server just by getting it to log a crafted string. It affected countless Java applications and was exploited within hours of disclosure.

How long does a zero-day stay a zero-day?

A flaw stops being a zero-day the moment it is publicly disclosed or the vendor learns about it, because defenders can then act. Some flaws are exploited secretly for months or years before discovery, while others are found by researchers and disclosed responsibly within days.

Can antivirus stop a zero-day exploit?

Traditional signature-based antivirus usually cannot, because there is no known signature for a brand-new exploit. Behavioral detection, allowlisting, sandboxing and keeping software updated are more effective, because they can catch unusual behavior even when the specific exploit is unknown.

Are zero-day exploits only used by governments?

No. Nation-state groups were the earliest users, but criminal gangs, ransomware operators and commercial spyware vendors all use zero-days now. Ransomware groups in particular use them to break into networks quickly, before a patch can be deployed.

How do I protect my business from zero-day exploits?

Patch everything promptly, because most damage comes from known flaws rather than true zero-days. Use least-privilege access, segment your network, keep offline backups, and monitor CISA's Known Exploited Vulnerabilities catalog for flaws confirmed to be under attack.

Sources

  1. Palo Alto Networks — What Is a Zero-Day Attack?
  2. CISA — Known Exploited Vulnerabilities Catalog
  3. CISA — CISA Adds Six Known Exploited Vulnerabilities to Catalog
  4. CPO Magazine — CISA Annual Top Exploited Vulnerabilities List Finds Zero-Days On the Rise
Written & fact-checked byCysoro Security Team

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.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Palo Alto Networks' zero-day explainer, CISA's Known Exploited Vulnerabilities catalog and CISA's annual top exploited vulnerabilities findings.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free