Vulnerability vs Exploit
People think a vulnerability and an exploit are the same thing, and they are not. The vulnerability is the weak spot in the code. The exploit is the code or the steps that use that weak spot to do harm. A hole can sit there for years with no exploit. Once an exploit is public, fixing the hole becomes urgent.
Security Vulnerability
A weak spot in code that an attacker could use to do harm.
A vulnerability is a weak spot in software that an attacker could use. It might let someone read data they should not, run their own code or crash the app. Most come from plain bugs, like trusting what a user types. Once found, it is fixed with a patch. The danger is greatest in the gap between people learning of it and people installing the fix.
Exploit (Security)
Code or steps that use a security hole to do harm. Fix the hole and it stops working.
An exploit is code or a set of steps that uses a hole to do harm. The hole is the weak spot, and the exploit is how someone uses it. It might steal data, crash a server or let an attacker run their own code. Some exploits are shared in public to prove a hole is real. Fixing the hole makes the exploit stop working.
In one line
- Security Vulnerability
- A weak spot in code that an attacker could use to do harm.
- Exploit (Security)
- Code or steps that use a security hole to do harm. Fix the hole and it stops working.