Answer · Security & Patching
Virtual Patching: When a WAF or IPS Rule Buys You Time
What virtual patching is, when it is a sound stopgap, how to validate it, and why it never replaces the real fix.
In short
Virtual patching is a WAF or IPS rule that blocks the exact request pattern an exploit needs, without touching the vulnerable code itself. It buys time when no vendor patch exists yet, a change freeze is in effect, or the system is too fragile to patch immediately. It is a mitigation, not a fix.
What a virtual patch actually is
A virtual patch sits in front of the vulnerable system rather than inside it. A web application firewall, an intrusion prevention system, or a reverse proxy inspects incoming traffic and drops or rejects requests that match the exploit's shape, such as a malformed header, an oversized chunk, or a specific URI pattern. The underlying code stays unpatched. Only the path an attacker would use to reach it gets closed.
This is different from a configuration workaround, like disabling a vulnerable feature outright. A virtual patch lets the system keep running normally for legitimate traffic while filtering out the one request pattern that triggers the bug.
When virtual patching is the right call
Virtual patching fits a narrow set of situations, not every unpatched vulnerability:
- No vendor patch exists yet. The advisory is public, exploitation is active, and the fixed version has not shipped.
- A change freeze is in effect. Quarter-end, a regulatory audit window, or a production deploy freeze makes an emergency code or firmware change too risky to schedule immediately.
- The system is fragile or hard to patch fast. Legacy infrastructure, a vendor appliance with a slow update cycle, or a system where a failed patch means an outage worse than the vulnerability itself.
In all three cases, the virtual patch is the thing that closes the exposure window today while the real fix gets scheduled, tested, and rolled out properly, inside whatever patch management process already governs staging and rollback.
The Fortinet advisory and its virtual patch
Fortinet's advisory FG-IR-24-015, published February 8, 2024, covers CVE-2024-21762, an out-of-bounds write (CWE-787) in the FortiOS and FortiProxy SSL VPN that may let a remote, unauthenticated attacker execute code through crafted HTTP requests. Fortinet rated it CVSSv3 9.8, critical. CISA added it to the Known Exploited Vulnerabilities catalog the next day, February 9, 2024.
Fortinet's own guidance names the real fix: upgrade to FortiOS 7.4.3, 7.2.7, 7.0.14, 6.4.15, 6.2.16, or 6.0.18 or later. The listed workaround is to disable SSL VPN entirely; disabling webmode alone is explicitly called out as not a valid workaround. For organizations that could not take SSL VPN down immediately, Fortinet also lists a virtual patch: the IPS signature "HTTP.Chunk.Length.Invalid," which blocks the malformed chunked-encoding pattern the exploit depends on.
That is the shape of a sound virtual patch: a specific signature tied to the specific exploit mechanism, published by the vendor alongside the advisory, not a general-purpose "block suspicious traffic" rule.
How to validate a virtual patch
A rule deployed and forgotten is worse than no rule, because it creates false confidence. Validation has two parts.
Confirm the rule is actually blocking the exploit path. Run a rescan against the signature or rule, ideally with a non-destructive proof-of-concept request matching the advisory's described pattern, and confirm the WAF or IPS rejects it. A scan that only checks "is the rule enabled" without testing the traffic pattern tells you nothing.
Watch the logs after deployment. Confirm the rule is firing against real traffic, not silently passing requests through because of a misconfigured scope, an excluded path, or a load balancer terminating TLS before the rule ever sees the payload. A rule that never triggers in production logs is a rule that was never actually in the traffic path.
This is the same discipline that applies to any emergency mitigation under an urgent critical response lane: verification rescans and log review are not optional steps after the fact, they are part of calling the mitigation done.
The transition plan: virtual patch is not the end state
CISA's guidance on known exploited vulnerabilities is explicit: organizations should apply the vendor update, and if a product is end-of-life or cannot be updated, it should be removed from the network. Workarounds, including virtual patches, are temporary measures meant to transition to an official patch, not permanent substitutes for one.
Practically, that means every virtual patch needs an owner and a date. Someone tracks the vendor's fixed-version release, schedules the real upgrade, and removes or downgrades the compensating rule once the system is confirmed on a patched version. Leaving a virtual patch in place indefinitely, "because it's working," is how a temporary mitigation quietly becomes the permanent (and unverified) security posture for a system nobody remembers to finish patching.
Where this fits an urgent response
Virtual patching is one tool inside a critical-response workflow, not a replacement for one. Our urgent critical response lane covers rapid intake, triage, containment and mitigation (including WAF virtual patching where it applies), verification rescans, and a post-incident report with hardening steps, working alongside whatever patch management tooling is already in place, from Tenable or Qualys scanning to AWS Systems Manager Patch Manager or Azure Update Manager for the eventual fix. Published response targets for a critical finding are acknowledgment within 15 minutes, an engineer engaged within 1 hour, and mitigation within 24 hours; these are response targets, not contractual guarantees, measured from the point an issue is reported or found by scanning. For a deeper look at how fast different severities should realistically move, see our breakdown of how fast critical CVEs should be patched, and for what the first 24 hours of a live incident actually look like, see emergency vulnerability response.
The short version
A virtual patch is a WAF or IPS rule that blocks an exploit's request pattern while the real fix is pending, appropriate for a missing vendor patch, a change freeze, or a fragile system that cannot be patched immediately. Validate it with a rescan against the actual exploit pattern and confirm it is firing in production logs, then track the vendor's fixed version and retire the rule once the system is upgraded. For how that staging and rollback discipline works in practice, see our patch management SLA guidance, and how a team structures that work day to day on our how it works page.
Frequently asked questions
- Is a WAF rule the same thing as patching the vulnerability?
- No. A WAF or IPS rule blocks the request pattern that triggers the exploit, but the underlying vulnerable code is untouched. The vulnerability still exists; the virtual patch only closes the external path to it, which is why CISA's guidance treats workarounds as temporary and expects a transition to the vendor's official patch.
- Can a virtual patch be bypassed?
- Yes, if the signature is narrow and an attacker finds a variant request that triggers the same bug differently, or if the rule's scope misses a path the traffic actually takes. That is why validation with rescans and log review matters, and why a virtual patch is scheduled for removal once the real patch lands, not left as a long-term control.
- What if the vendor hasn't released a patch yet?
- Follow the vendor's own advisory for an interim mitigation, which may be a configuration workaround, a virtual patch signature, or both, as Fortinet published for CVE-2024-21762 (disable SSL VPN, or apply the "HTTP.Chunk.Length.Invalid" IPS signature). Track the advisory for the fixed version and move to it as soon as it ships.
Sources
The team behind Asaasin Engineering

Blend Berisha
Technical Lead / Engineering Lead

Doruntina Buzhala
Business Development Manager

Erin Abduli
Full-Stack Engineer

Florent Hoti
Co-Founder & CEO

Gentrit Hoti
Software Engineer

Hana Anadolli
Operations Manager

Krenar Mahmuti
AI Automations Specialist