A patch gap is the stretch of time when a security fix exists but you are not protected by it yet. The fix has been written, and sometimes published, but the update has not reached your machine or you have not installed it.
Why the gap exists
Fixing a bug and protecting users are two different steps. Developers write the fix, test it, build a release and publish it. Then every user has to receive it and, often, restart the program. Each step takes time, and the slowest one is usually the last: people postpone restarts, administrators wait to test updates, and some systems rarely update at all.
The gap gets wider when the fix is public before the release is. Open-source projects often commit a fix to a public repository days before a packaged update ships. Anyone reading that change can see exactly what was wrong.
Why attackers like it
A published fix is a map. It points to the vulnerable code and often to the way to trigger it. Attackers compare the old and new versions, work out the flaw and build an exploit for everyone who has not updated. This works against a flaw that is no longer secret to the vendor but is still unfixed on your computer. It differs from a zero-day vulnerability, where no fix exists at all.
Reading a fix and writing an exploit used to take skilled people a lot of time. AI models can now speed up that work, which makes every hour of the gap more valuable to an attacker. Researchers have reported that AI models can turn public security patches into working attacks on software that has not yet been updated. That is why teams that ship software now watch the hours between a public fix and the update landing.
How to shorten it
If you build software: ship fixes in small releases, use automatic updates, keep a fix private until the release is ready, and avoid bundling several bugs into one change that could be chained together.
If you use software: turn on automatic updates, restart browsers and apps when they ask, and treat "the fix exists" as different from "I am protected."
An example
A browser team fixes a memory bug on Monday and posts the change publicly. The packaged update reaches most users on Thursday. Between Monday and Thursday, the bug is described in public and still open on every laptop that has not updated. That is the patch gap.
The gap is part of vulnerability management and links to remote code execution, the kind of flaw that makes it dangerous, to a supply chain attack, another route into updated or unupdated software, and to fuzzing, a way defenders find bugs before attackers do. An agent sandbox can limit the damage when something slips through.