On this page

It is 6 pm on a Friday. Your VPN vendor publishes an advisory: a critical flaw, already exploited in the wild, with a fix promised “in the coming days”. Your network lead asks the question nobody has a runbook for: what do we do tonight?

That is a zero-day vulnerability seen from the defender’s chair. You do not get to patch. You get to decide, quickly and with half the facts, whether to cut access, apply a workaround or watch and wait.

This guide is for the person making that call: what a zero-day is, who gets hit, three real cases and a checklist to limit damage before the patch exists.

Key takeaways

  • A zero-day vulnerability is a flaw attackers can use before the vendor has a fix. Once a patch ships, it becomes an n-day, and the race moves to you.
  • Enterprise technology is now a main target: 48% of the zero-days Google tracked in 2025, about half of them in security and networking products.
  • You cannot patch a zero-day, but you control how far it reaches: exposure, segmentation and a rehearsed no-patch playbook.
  • For most companies, the unknown flaws most likely to hurt them are in their own code. Only testing finds those.

What is a zero-day vulnerability?

A zero-day vulnerability is a security flaw in software, firmware or hardware that the vendor does not know about, or knows about but has not fixed yet. The name describes the defender’s head start: zero days. The NIST glossary defines a zero-day attack as one that “exploits a previously unknown hardware, firmware, or software vulnerability” (NIST CSRC glossary).

Three terms get mixed up:

  • Zero-day vulnerability: the flaw itself.
  • Zero-day exploit: the code or technique that abuses the flaw.
  • Zero-day attack: an exploit used against a real target.

Zero-day vs n-day vulnerability

When the vendor publishes a fix, the flaw becomes an n-day (or one-day): public and patchable, but still unpatched in most places for a while.

Zero-day N-day
Who knows about it Attackers, sometimes the vendor Everyone, including attackers who read advisories
Patch available No Yes
Can a vulnerability scanner find it? Rarely, no check exists yet Yes, once a check is published
CVE ID and CVSS score Often not assigned yet Usually published
What protects you Exposure control, segmentation, detection, vendor workarounds Fast patching, ranked by exploitation and exposure

How a zero-day unfolds: five stages

  1. Introduced. A coding mistake ships, such as a parser that trusts its input or a login step that can be skipped.
  2. Discovered. A researcher reports it to the vendor privately. An attacker uses or sells it.
  3. Exploited. Attacks begin, often quietly and against few targets.
  4. Disclosed. The vendor publishes an advisory, sometimes with a workaround and no patch.
  5. Patched. A fix ships. The window stays open for everyone who has not installed it.

Your exposure runs from stage 1 until you patch, not until the vendor does. The gap between stages 4 and 5 is where the Friday night calls happen.

How common are zero-day attacks?

Fewer than you might think, but concentrated in the products businesses depend on.

  • 90 exploited zero-days in 2025. Google Threat Intelligence Group counted 90 zero-days exploited in 2025, up from 78 in 2024. 43 of them (48%) targeted enterprise technology, an all-time high, and 21 of those were in security and networking products (GTIG 2025 zero-day review).
  • Exploitation is now the top way in. Verizon’s 2026 Data Breach Investigations Report found that 31% of breaches started with vulnerability exploitation, the first time in the report’s 19 years that it overtook stolen credentials (Verizon, May 2026). The figure covers known flaws and zero-days alike.
  • The window keeps shrinking. Mandiant put the average time-to-exploit in 2023 at five days (excluding outliers), down from 32 days in 2021 and 2022, and 97 of the 138 exploited vulnerabilities it analyzed were exploited as zero-days (Google Cloud, Mandiant).

The uncomfortable conclusion: the firewall, VPN and file-transfer server that protect your network are now prime targets on it.

Three real cases that show the pattern

MOVEit Transfer (2023): a file server becomes a data leak

From May 27, 2023, the CL0P ransomware gang exploited a previously unknown SQL injection flaw, CVE-2023-34362, in Progress Software’s MOVEit Transfer. It installed a web shell on internet-facing servers and stole data from the databases behind them (CISA advisory AA23-158A).

Lesson: a file-transfer server holds exactly the data attackers want, and it sits on the internet by design.

Ivanti Connect Secure (2024): mitigation before the patch

In January 2024, CISA ordered US federal agencies to apply Ivanti’s temporary mitigation for two chained flaws, CVE-2023-46805 and CVE-2024-21887, because no permanent update existed and exploitation was widespread. Agencies also had to run Ivanti’s integrity checker, and later had to reissue connected certificates, keys and passwords before returning devices to service (CISA ED 24-01).

Lesson: for an edge device, the order is mitigate, check for compromise, rebuild on a patched version, then rotate secrets before it goes back into service.

PHP2Shell (2026): zero-day and n-day in the same week

Our October 2026 Xpose covered PHP2Shell, two PHP runtime flaws disclosed and patched on October 21, 2026. Amazon Threat Intelligence logged an exploitation attempt on October 17, four days before disclosure, and new exploit attempts within hours of the patch (AWS Security Blog). For anyone unpatched, the zero-day and the n-day were the same attack.

Lesson: your patch process is part of your zero-day defense.

These cases point to seven defenses that work before a patch exists.

1. Know every system you expose to the internet

You cannot respond to an advisory for a product you do not know you run. The first question is “do we have this, where, and on which version?” If answering takes a day, you have lost a day.

From the pentester’s side: on external tests, the host most likely to fall to the next edge-device zero-day is often one the client forgot: an old VPN portal from a migration, a test copy of the file-transfer server, a management page opened “temporarily”. Attack surface discovery across all your domains gives you that list before you need it.

2. Take management interfaces off the internet

Many enterprise zero-days sit in an appliance’s admin web interface. GTIG’s advice is blunt: do not expose device ports to the internet unless needed. Put admin panels behind a VPN or an IP allowlist.

A zero-day in an interface attackers cannot reach is a patching task, not an incident.

3. Assume the edge device falls, and segment for it

If your VPN gateway were compromised tonight, what could it reach? In too many networks the answer is “most things”, domain controllers included.

Keep firewalls, VPNs and DMZ hosts in segments that reach only what they need, as GTIG recommends. An internal network penetration test shows how far an attacker gets from a compromised foothold.

4. Detect behaviour, not signatures

There is no signature for an exploit nobody has seen. You can see its effect: an appliance starting a process it never runs, a web server launching a shell, a file server sending gigabytes to an unfamiliar address.

Baseline normal behaviour for internet-facing systems, send their logs where an attacker on the box cannot delete them, and plant canary files or decoy credentials that alert when touched.

5. Write a no-patch playbook before you need it

Most teams have a patch process. Few have one for when there is nothing to patch. Agree these in advance:

  • Who can approve taking a service offline outside business hours.
  • A fast lane that skips the normal change board for exploited, critical flaws. GTIG recommends exactly this.
  • A current inventory of components, ideally a software bill of materials (SBOM), so “are we affected?” takes minutes.
  • Who calls the vendor and your incident response provider.

6. Patch exposed systems first, then check for compromise

When the fix arrives, attackers study it to find the flaw it closes. Rank patches by whether the flaw is exploited and whether the system is exposed, not by CVSS score alone. CISA’s Known Exploited Vulnerabilities catalog is the best free signal for “exploited”, and our guide to CVSS 3.1 scoring explains why a 9.8 on an internal test server can wait behind an exploited 7.5 on your VPN.

A patch closes the door but does not remove someone already inside. In the MOVEit and Ivanti cases, responders were told to look for web shells, rogue accounts or tampered files, not just install the fix.

7. Find the zero-days in your own code first

Most zero-day articles skip this. For a typical SaaS or e-commerce company, the unknown flaw most likely to cause a breach is not in Windows or Chrome. It is in your own application: an API that returns another customer’s invoice when one ID changes, or an admin function any logged-in user can call.

No vendor will ever publish an advisory for those, and no off-the-shelf scanner check exists for them. To the attacker who finds one first, it is a zero-day with no expiry date. Broken access control flaws like these hold first place in the OWASP Top 10:2025, and finding them is the job of a web application penetration test.

Zero-day response checklist: the first 72 hours

First 4 hours: are we affected?

  • Confirm whether you run the product, which versions and where, including test and forgotten instances.
  • Check whether the vulnerable component or interface is reachable from the internet.
  • Read the vendor advisory and any CISA alert for workarounds and indicators of compromise.
  • Name one owner and one decision-maker.

Hours 4 to 24: reduce exposure

  • Apply the vendor workaround or mitigation.
  • If there is none and the system is exposed, restrict access or take it offline (criteria below).
  • Turn up logging and copy logs off the device.
  • Run any integrity checker the vendor provides.

Hours 24 to 72: hunt and prepare

  • Hunt for published indicators, unusual processes, new accounts and odd outbound traffic, going back to before disclosure.
  • If you find a compromise, preserve evidence before rebuilding, then rotate every credential, certificate and key the device held.
  • Stage and test the patch so you can apply it the moment it ships.
  • Note what slowed you down and fix it.

Isolate, restrict or monitor: decision criteria

  • Take it offline if it is internet-facing, actively exploited, has no workaround and the business can manage without it for a few days.
  • Restrict access (IP allowlist, VPN only, vulnerable feature disabled) when the service is critical but its users are known.
  • Monitor closely only when untrusted users cannot reach the vulnerable component and your logs can prove it.
  • When in doubt, treat an exploited, internet-facing zero-day as an incident, not a ticket.

Where AI-powered pentesting fits

AI is speeding up both sides. GTIG expects attackers to use AI in 2026 to accelerate reconnaissance, vulnerability discovery and exploit development, and Verizon says AI is shortening the time to exploit known flaws. Defenders need machine speed where it works and human judgement where it does not.

WhyXpose is an AI-powered pentesting platform built on that split:

  • AI-guided recon and scanning. WhyXpose AI agents plan and run recon and scan pipelines across your domains and choose next steps, so when an advisory drops you already know which hosts run what. Scheduled scans and monitoring in the platform are coming soon.
  • AI triage. AI drops false positives and ranks findings by risk, so the exposed, exploitable issue comes first.
  • Expert verification. Certified penetration testers and CVE holders verify every finding with a reproducible proof of concept and a CVSS 3.1 score, including logic and access control flaws in your own code.
  • Tracked to the fix. Findings live in WhyXpose vulnerability management with AI-drafted fixes reviewed by experts, retests after you fix and one-click PDF reports.

WhyXpose is verified under the Cyber Verification Programs for Anthropic Claude and OpenAI Codex, and also runs self-hosted open-source AI models. Our research team monitors the internet for new vulnerabilities and exposures every single day and reports what it finds privately to affected companies through responsible disclosure. More than 1,000 companies have been secured to date. Every month, the Xpose roundup, starting with January 2026, picks the critical CVEs worth patching first.

Frequently asked questions

What is a zero-day vulnerability in simple terms?

A security hole attackers can use before the software maker has a fix. “Zero days” is how much warning defenders had. Once a patch is out, it is called an n-day.

Can zero-day attacks be prevented?

Not completely, because you cannot patch a flaw nobody has disclosed. You can make them far less damaging: reduce what you expose, segment edge devices from critical systems, watch for unusual behaviour and patch fast once a fix exists.

Can a vulnerability scanner or antivirus detect a zero-day?

Usually not before disclosure, because both rely on known signatures and checks. Behaviour-based detection can catch an exploit’s effects. Once a check is published, scanners are the fastest way to find every vulnerable instance, as our comparison of penetration testing vs vulnerability scanning explains.

How long does a zero-day last?

Until the vendor ships a fix and you install it. Some flaws are exploited for days before an advisory, others go unnoticed for years. Your window ends when your systems are patched and checked for compromise.

Does a penetration test find zero-days?

A pentest finds unknown flaws in your own applications, APIs and configurations, which are effectively zero-days because nobody else knows them. It is not designed to hunt new bugs in commercial products such as VPN appliances, but it flags the exposed, outdated systems that would be hit first.

If a zero-day advisory landed tonight, would you know within an hour which of your systems are exposed? If not, start there. Get a demo of WhyXpose, or talk to a pentester about mapping your attack surface and testing the code only you own.

Put this guide into practice

Web, API, mobile and network pentests by certified testers, with a verified proof of concept for every finding.

Explore pentest services