Safeguard
Security Guides•

What is the difference between a vulnerability, an exploit and malware?

A vulnerability is a weakness, an exploit is a way to use it, and malware is harmful software. Plain definitions and how they link in supply chain attacks.

Safeguard Security Team
4 min read

A vulnerability is a weakness in software. An exploit is a method or tool that takes advantage of that weakness. Malware is software built to cause harm. They connect in a chain: an attacker uses an exploit against a vulnerability, often to install malware.

Three words, three roles

NIST's glossary defines a vulnerability as a weakness in an information system, system security procedures, internal controls or implementation that a threat source could take advantage of. Think of an unlocked window. The window being unlocked is the weakness. It does nothing on its own.

TermPlain meaningDoor analogy
VulnerabilityA weakness in software, settings or processAn unlocked window
ExploitA technique or tool that uses a weaknessSomeone climbing in through it
MalwareSoftware designed to cause harmWhat the intruder leaves behind or does inside
PatchAn update that fixes a weaknessLocking the window

CISA defines patches as updates that address security vulnerabilities.

How they chain together

  1. A flaw exists in a piece of software.
  2. Someone finds it and writes an exploit.
  3. The exploit lets an attacker run code or read data they should not reach.
  4. The attacker may drop malware to stay in place or spread.
  5. The vendor ships a patch, and your update closes the window.

Steps 1 and 5 are about software quality and maintenance. Steps 2 to 4 are about attackers.

Where the supply chain fits

A supply chain attack skips some steps. Instead of finding a weakness in your software, the attacker places harmful code in something you trust, such as a library or an update. That can be malware delivered straight through a trusted channel, with no weakness in your own device needed. That is why official sources and update hygiene matter even when your device is fully patched.

Which one should worry you most

SituationConcern level
A vulnerability exists in a component you use, no known attackFix on a normal schedule
A vulnerability exists and is known to be exploitedFix now. CISA's KEV catalog lists these
A component you use is found to contain malwareTreat as an incident, remove it, check for impact
An exploit exists for software you no longer updateReplace the software

What this means for choices you make

  • Install patches, because they close weaknesses before exploits arrive.
  • Use official sources, because malware often rides in fake downloads.
  • Retire unsupported software, because new weaknesses will never be fixed.
  • Ask vendors how they track flaws and ship fixes.

Where Safeguard fits

Safeguard finds known vulnerabilities in your dependencies, uses reachability and exploitability analysis to show which ones your code can actually trigger, and applies policies and gates so known problems do not ship. It builds an SBOM so you can answer which products contain an affected component. Free scan: gold.safeguard.sh/scan.

Try it yourself

Click through it at your own pace, or open it full screen.

Notice how a finding changes in priority once it is marked reachable or exploited.

Quick check

Can software be vulnerable without being attacked?

Yes. Most vulnerabilities are never used in an attack. They still deserve a fix, because that can change quickly.

Is a patch the same as an antivirus scan?

No. A patch removes a weakness. Antivirus tries to detect harmful software. They do different jobs.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.