Explore our new Cybersecurity Terms Glossary, explained by our experts.
Cybersecurity Terms Glossary
An exploit is a piece of code, a sequence of commands, or a crafted input that takes advantage of a specific vulnerability to make a system do something its owner never intended.

What Is an Exploit?
An exploit is code, a command sequence, or a specially crafted input that takes advantage of a vulnerability to make software or hardware behave in a way its designers did not intend—running attacker code, bypassing authentication, reading memory, or raising privileges. A vulnerability is the weakness; the exploit is the tool that turns that weakness into access.
The distinction matters for risk. Thousands of new CVEs are published each year, but only a fraction ever have working, reliable exploits, and those are the ones attackers use at scale.
Three terms are often blurred together:
Frameworks such as Metasploit separate these deliberately, so one exploit can deliver many payloads and one payload can ride on many exploits.
A remote exploit works over a network against a listening service, with no prior access. A local exploit needs an existing foothold and is typically used for privilege escalation. A client-side exploit targets software the victim opens—a browser, a PDF reader, an Office document—and usually needs a phishing email or a malicious website to deliver it.
Memory corruption exploits, including the classic buffer overflow, use-after-free, and type confusion bugs, overwrite memory to hijack execution. Injection exploits feed commands into interpreters, as with SQL injection or OS command injection. Logic exploits abuse flawed design, such as an authentication check that can be skipped by changing one parameter.
A zero-day exploit targets a flaw the vendor does not yet know about or has not fixed. An n-day exploit targets a flaw that has been disclosed and patched, relying on organisations being slow to update. In practice, most breaches involve n-days.
| Exploit | Year | Why it mattered |
|---|---|---|
| EternalBlue (CVE-2017-0144) | 2017 | An SMBv1 exploit leaked by the Shadow Brokers in April and reused weeks later by WannaCry, which disrupted many NHS trusts in May 2017 |
| Log4Shell (CVE-2021-44228) | 2021 | A single crafted string in a log message gave remote code execution in countless Java applications |
| ProxyShell (CVE-2021-34473 and others) | 2021 | A chain of Microsoft Exchange flaws exploited widely to drop web shells |
| MOVEit Transfer (CVE-2023-34362) | 2023 | A SQL injection zero-day used by Cl0p for mass data theft |
EternalBlue shows how fast the gap closes: Microsoft had released the patch in March 2017, two months before WannaCry, yet unpatched systems were still hit hard.
MITRE ATT&CK tracks exploitation across several tactics, which helps defenders plan detections: T1190 (Exploit Public-Facing Application) for initial access, T1203 (Exploitation for Client Execution), T1068 (Exploitation for Privilege Escalation), and T1210 (Exploitation of Remote Services) for lateral movement.
Since exploitation, not mere vulnerability, drives risk, prioritise accordingly:
Using an exploit against a system without permission is an offence under the Computer Misuse Act 1990, and section 3A also covers making, supplying, or obtaining articles for use in such offences. Legitimate use depends on written authorisation and a clear scope, which is exactly what a professional engagement provides. Our penetration test services use controlled exploitation to prove which weaknesses in your estate are genuinely reachable and what they would expose.
No. Many vulnerabilities are difficult or impossible to exploit in a real environment because of configuration, compensating controls, or the conditions required to trigger them. That is why prioritisation should consider evidence of exploitation, such as CISA’s Known Exploited Vulnerabilities catalogue and EPSS, rather than severity scores alone. A penetration test confirms which findings are genuinely exploitable in your environment.
An exploit kit is a toolkit hosted on a malicious or compromised website that fingerprints a visitor’s browser and plug-ins, then automatically serves an exploit for any vulnerable component it finds. Kits such as Angler and RIG were common in the mid-2010s. They have declined as browsers have hardened and plug-ins like Flash have disappeared, but the drive-by technique remains.
For high-profile flaws in internet-facing products, mass scanning and exploitation often begin within days of disclosure, and sometimes within hours once a proof of concept is published. Log4Shell was being exploited at scale almost immediately after details emerged in December 2021. Critical internet-facing systems therefore need emergency patching processes measured in days, not monthly cycles.
Researching publicly available exploit code is common in security work, but in the UK the Computer Misuse Act 1990 makes it an offence to obtain or supply such tools with the intention that they will be used to commit an offence. Keep research inside isolated lab environments, use code only against systems you own or are authorised to test, and document your purpose.
You May Be Interested In These
We use a few cookies that are needed to make this website work, and they are always on. We would also like to set analytics cookies, to see which pages are useful; functional cookies, so that our live chat works; and advertising cookies, to measure our campaigns. We will not set any of those until you say yes, and you can change your mind at any time from the Cookie Settings link in the footer.
Choose the cookies you are happy for us to use. Strictly necessary cookies are always on; everything else is off until you turn it on.
These cookies keep the website working: they hold your security checks, your form submissions and the choice you make here. The site cannot run without them, so they are always on.
These let our live chat open and remember your conversation, and let the newsletter sign-up work. Switch them off and the chat window will not appear.
These tell us which pages are read and how people find us, so that we can improve the site. The reports are about groups of visitors, never about you personally.
These let us measure our advertising and show you our adverts on other websites, such as LinkedIn, Google and Meta. Switch them off and you will still see adverts, but they will be less relevant.