What is an exploit?

In cyber security, an exploit is a piece of code, a crafted input or a sequence of steps that takes advantage of a vulnerability to make a system do something its owner never intended: run the attacker's code, reveal data, or grant access. In everyday English, to exploit means to use something for your own benefit, often unfairly; the security meaning is the same idea applied to a flaw in software. A vulnerability is the weakness; the exploit is what makes it usable.

Section Glossary Updated Tracked in CVE, KEV, EPSS

Quick facts

What it is
Code, input or steps that use a vulnerability to cause an unintended effect
Needs
A vulnerability that is reachable by the attacker
Common results
Remote code execution, data exposure, privilege escalation, denial of service
How vulnerabilities are named
By CVE identifiers, with details in the National Vulnerability Database
Proof of use in the wild
The CISA Known Exploited Vulnerabilities catalog lists vulnerabilities with evidence of exploitation

An exploit is neutral in itself. Security teams write and run exploits to prove a weakness is real; attackers run them to break in.

Vulnerability vs exploit vs attack

  • Vulnerability. The weakness: a missing check, a parsing bug, an unsafe default. It can exist for years without harming anyone.
  • Exploit. The means of using it: a request with a crafted parameter, a malformed file, a script that runs the steps.
  • Attack. An exploit used against a real target, with a real effect.

When no fix exists yet, all three get the prefix zero-day; zero-day explains why that word describes the fix rather than the attack.

Types of exploits

  • Remote and local. A remote exploit works over the network with no prior access; a local one needs the attacker to already run something on the machine, often to gain more privileges.
  • Known and zero-day. A known exploit targets a published vulnerability that has a fix, which many systems still lack; a zero-day exploit targets one with no fix yet.
  • Web application exploits. Requests that abuse how an application handles input, such as SQL injection or command injection.
  • Client-side exploits. Malicious pages or files that use a flaw in a browser, document reader or plugin when a user opens them.
  • Exploit kits. Packaged toolsets that probe a visitor's software and deliver a matching exploit automatically, sold or rented to people who could not write the exploits themselves.

Most real attacks use known exploits, not zero-days. Scanning the internet for systems that still lack a months-old fix is cheaper than finding a new flaw.

WHAT DECIDES WHETHER AN EXPLOIT WORKS FIX EXISTS WORKS ON THE TARGET REQUEST FILTER CAN MATCH ZERO-DAY EXPLOIT KNOWN EXPLOIT, UNPATCHED KNOWN EXPLOIT, PATCHED WEB INJECTION EXPLOIT // the middle column is the one that matters, and patching is what empties it
// four situations, and what makes an exploit succeed

How exploits are tracked

Vulnerabilities get CVE identifiers, and the NVD adds severity scores and affected versions. Severity says how bad a flaw would be if used, not whether anyone uses it, so two other sources matter for priorities.

The CISA Known Exploited Vulnerabilities catalog lists vulnerabilities with evidence of exploitation in the wild. The Exploit Prediction Scoring System from FIRST estimates the probability that a vulnerability will be exploited in the coming days. Public exploit databases collect proof-of-concept code, which helps defenders test and also lowers the effort for attackers.

What an exploit looks like in web traffic

Against a website, an exploit usually arrives as an HTTP request: a parameter carrying database syntax, a path climbing out of its folder, a header with a payload a vulnerable component will parse. Many follow published examples closely, because attackers copy them, and that is what makes them recognisable.

Refusing requests with a known exploit shape while the vulnerable code waits for its fix is virtual patching. It covers the variants someone anticipated, not every variant, so it buys time rather than replacing the fix.

Defending against exploits

  1. Know what you run. An inventory of software and versions is the only way to know which new vulnerabilities apply to you.
  2. Patch by exploitation, not only by score. Anything in the KEV catalog or with a high EPSS probability goes first.
  3. Reduce what is reachable. Services, admin panels and old endpoints that are not exposed cannot be exploited from outside.
  4. Filter in front of applications. Requests matching known exploit patterns can be refused while fixes are applied.
  5. Watch for the effect. New processes, unexpected outbound connections and sudden data volumes show an exploit that got through.

Questions

What is an exploit in cyber security?

Code, a crafted input or a sequence of steps that takes advantage of a vulnerability to make a system do something unintended, such as running the attacker's code or revealing data.

What is the difference between a vulnerability and an exploit?

A vulnerability is the weakness in software. An exploit is the means of using that weakness. A vulnerability without a working exploit is a risk; with one, it is a threat.

What is an exploit kit?

A packaged toolset that probes a visitor's browser and plugins for known flaws and delivers a matching exploit automatically, usually sold or rented to attackers.

What is a zero-day exploit?

An exploit for a vulnerability that has no fix available yet, so defenders cannot patch it and can only reduce exposure or block known attack shapes.

How do I know if a vulnerability is being exploited?

Check the CISA Known Exploited Vulnerabilities catalog for evidence of use in the wild, and the EPSS score for the likelihood of exploitation.