Vulnerability, exploit, attack and malware: the difference, explained

What a vulnerability, an exploit, an attack, malware and a CVE are, which flaws show up most on websites, and how much is at stake in each case.

When a site's security fails, words show up that get used as synonyms and aren't: vulnerability, exploit, attack, malware. And numbers, like a CVE or a CVSS score, that sound serious even when they sometimes aren't.

This guide sorts out the vocabulary, shows which flaws appear most and, above all, how much is at stake in each case: comment spam is not the same as card data stolen at checkout. If something has already happened, start with what to do if your site was hacked.

Reviewed in

From flaw to hack, in four steps

They get used as synonyms, but they're four different things and they come in order. A vulnerability without an attack is a risk; an attack on something without the flaw is noise. The problem is when they meet.

  1. Vulnerability

    A flaw in the software, the configuration or how it's used that would let someone do something they shouldn't be able to. It exists even if nobody has taken advantage of it yet.

    In a house: a window that doesn't latch.

  2. Exploit

    The specific technique or code that takes advantage of that flaw. For many known vulnerabilities there are published exploits, and they can be automated.

    In a house: knowing that window opens if you push from below.

  3. Attack

    Someone using an exploit, or another technique, against your site. Most are automated: programs that try thousands of sites without knowing whose they are.

    In a house: someone trying every window on the street.

  4. Incident

    The attack worked: they got in, changed something or took data. Only here is there a hack.

    In a house: they got into the house.

The rest of the vocabulary

Grouped by what each word is for. The examples are typical cases, not any particular site.

What's on a compromised site

Malware · malicious software
Any code planted to do harm or profit. On a website it's usually hidden in files or in the database.
Example: a script that sends your visitors to a gambling site.
Backdoor · webshell
Code that leaves a hidden way back in, even if you change the passwords. That's why cleaning only what you can see isn't enough.
Example: an innocently named file in the images folder that runs commands.
SEO spam
Hidden pages or links to rank other sites (gambling, pharmacies, replicas). Often Google sees it before you do.
Example: Google results with your domain and titles in another language.
Card skimmer · Magecart, e-skimming
Code on the checkout that copies card details as the customer types them and sends them to a third party. Payment works normally, which is why it takes a while to spot.
Example: one extra script on the payment page, named after a well-known library.
Defacement
The site's look is changed to show a message. It's noticed straight away, which is why it's usually among the least serious of the visible ones.
Example: the home page replaced by a banner with a signature.

How flaws are named and measured

CVE · Common Vulnerabilities and Exposures
A unique number for a publicly known vulnerability. Published by the CVE Program, sponsored by CISA (US) with MITRE as secretariat. Over 48,000 were published in 2025.
Example: CVE-2025-48757, the permissions flaw in apps built with Lovable.
CVSS · severity score
A 0–10 score estimating how serious a flaw is: low (0.1–3.9), medium (4–6.9), high (7–8.9) and critical (9–10). It measures the flaw, not your case: a critical one in a plugin you don't use doesn't affect you.
Example: a 9.8 is usually someone taking control without a password.
NVD · National Vulnerability Database
NIST's (US) database that takes each CVE and adds the CVSS score and which software and versions it affects.
Example: you look up a plugin's CVE and see from which version it's fixed.
Patch · security update
The update that fixes a vulnerability. Until you install it, the flaw stays open, even once it's public.
Example: a plugin update with the note «security fix».
Zero-day
A vulnerability exploited before a patch exists. They make the most noise; for small sites the usual risk is different: known flaws in software that wasn't updated.
Example: a flaw that makes the news the same day the attacks start.
OWASP Top 10
The reference list of the ten most important web application risks, by the OWASP foundation. The 2025 version puts broken access control first.
Example: A01:2025 Broken Access Control.

The most common kinds of flaw

XSS · Cross-Site Scripting
Lets someone inject code that runs in other people's browsers, for example through a comment or a form that doesn't filter what it receives.
Example: a comment that, when shown, steals the session of whoever reads it, admin included.
Broken access control
The site lets someone do what they shouldn't: see another person's data or change settings without being an admin.
Example: changing a number in the address and seeing another customer's order.
CSRF · Cross-Site Request Forgery
Makes your own browser, with your session open, send an order without you noticing.
Example: a link that, if you open it while logged in, creates an admin user.
SQL injection
Slipping instructions into a field (a search box, a form) that end up running in the database.
Example: a search box that returns the user list with their hashed passwords.
Local file inclusion · LFI
Getting the site to read or run server files it shouldn't expose.
Example: reading the configuration file that holds the database password.
Brute force · credential stuffing
Trying passwords, thousands a minute, until one works. Also with passwords leaked from other sites, because many people reuse them.
Example: login attempts on the admin panel all night.

Which flaws show up most

WordPress is where most public data exists: Patchstack logs every new vulnerability in plugins, themes and core. In 2025 there were 11,334, 91% in plugins, and almost half (46%) still had no patch when they were made public. Here's how they split by type in the first half of the year:

New WordPress vulnerabilities by type, first half of 2025
  • Cross-Site Scripting (XSS) 34.7%
  • Cross-Site Request Forgery (CSRF) 19%
  • Local file inclusion (LFI) 12.6%
  • Broken access control 10.9%
  • SQL injection 7.2%
  • Other types 15.6%

Source: Patchstack, 2025 mid-year report

Most frequent isn't most exploited. XSS tops the list because it's an easy mistake to make, but according to Patchstack the most exploited type in real attacks during 2025 was broken access control. And on sites that actually get infected, what shows up most is malicious redirects and SEO spam (Sucuri). Attackers are fast, too: for the most exploited flaws, the first attempt arrives after a median of five hours.

How much is at stake

Not every hack is equally serious. What makes it serious isn't the technique but what gets taken or broken. From least to most:

  1. Comment spam or fake users

    Bots posting links or creating accounts. It gets cleaned up and filtered.

    What's at stakeThe site's tidiness. Annoying, but on its own not dangerous.

  2. Visible change to the site (defacement)

    Noticed straight away and reverted from a backup, but you still have to find how they got in.

    What's at stakeImage and trust, while it lasts.

  3. SEO spam and redirects

    Among the most common on infected sites, and it can go unnoticed for weeks.

    What's at stakeRankings and reputation: Google may flag the site as dangerous and your customers end up somewhere else.

  4. Your server used for phishing or sending spam

    Your site is used as a base to scam others, under your name.

    What's at stakeYour domain and your email: they end up on blocklists and stop arriving.

  5. Personal data exposed

    Forms, customer accounts, orders. In Argentina there's currently no general duty to report it, but there is a duty to have security measures, and the harm is real.

    What's at stakeYour customers' data: names, emails, phones, addresses, orders. Argentina's Law 25,326 requires you to protect it.

  6. Intellectual property copied

    Less visible than other cases and hard to measure, but it can't be recovered: once copied, it's out.

    What's at stakeWhat makes your business unique: your own code, designs, price and customer lists, internal documents.

  7. Server takeover or data held hostage (ransomware)

    Without backups off the server, recovery can be slow or impossible.

    What's at stakeThe whole business until it's back: the site, the email and sometimes connected systems.

  8. Card data stolen at checkout

    No store should keep the PIN or the security code (PCI DSS forbids it), so the realistic worst case isn't a card database: it's a skimmer copying each card as it's typed, that nobody spotted.

    What's at stakeYour customers' money and trust, and trouble with your payment processor.

Where to check whether your software has known flaws

Look up each plugin, theme or system with its version. If a vulnerability shows up for your version and there's a patch, update; if there's no patch, disable or replace it until there is.

Sources

  1. 11,334 new vulnerabilities were found in WordPress, its plugins and its themes in 2025 (42% more than 2024): 91% in plugins, 9% in themes and only 6 in core, all low priority.

    Counts vulnerabilities discovered, not attacks or affected sites.

    Patchstack, State of WordPress Security in 2026

  2. 46% of them had no patch when they were made public.

    Another figure from the same vendor (33%) measures something else: those that never get a patch.

    Patchstack, State of WordPress Security in 2026

  3. For the most exploited vulnerabilities, the median time to the first exploitation attempt was five hours, and about half of high-impact ones were exploited within 24 hours.

    Patchstack, State of WordPress Security in 2026

  4. Broken access control was the most exploited vulnerability type in 2025.

    Measured on the attacks Patchstack blocked.

    Patchstack, State of WordPress Security in 2026

  5. By type, in the first half of 2025: XSS 34.7%, CSRF 19%, local file inclusion 12.6%, broken access control 10.9% and SQL injection 7.2%, out of 6,700 new vulnerabilities.

    Patchstack didn't publish a full-year breakdown by type; we use the first half.

    Patchstack, 2025 mid-year report

  6. Of 70.8 million sites scanned in 2024, 1.66% were infected. Among the infected: malware and redirects 74.7%, SEO spam 38.4%, card stealers 1.7%, defacement 0.8%.

    A remote scan: it can't see backdoors. Categories overlap.

    Sucuri, SiteCheck Malware Trends Report 2024

  7. Exploiting vulnerabilities became the top way into breaches (31%), ahead of stolen credentials for the first time in 19 years.

    Covers breaches at organisations of all sizes, not just websites.

    Verizon, Data Breach Investigations Report 2026

  8. The CVE Program published 48,244 records in 2025 (40,077 in 2024).

    Other counts differ slightly depending on the cut-off date.

    CVE Program, metrics

  9. CVSS severity bands: none 0.0; low 0.1–3.9; medium 4.0–6.9; high 7.0–8.9; critical 9.0–10.0.

    FIRST, CVSS v3.1 and v4.0 specification

  10. The 2025 OWASP Top 10 puts broken access control first (A01:2025).

    OWASP Top 10:2025

  11. Sensitive authentication data (security code, PIN) must not be stored after payment authorisation, even encrypted.

    PCI Security Standards Council, PCI DSS FAQ

  12. In Argentina, Law 25,326 requires security measures for personal data (art. 9). AAIP Resolution 47/2018 recommends how to handle incidents, but there's currently no general duty to report them in the private sector.

    New data-protection bills are before Congress; this may change.

    Law 25,326 and AAIP Resolution 47/2018

FAQ

Does a vulnerability on my site mean I was hacked?
No. A vulnerability is a badly locked door; a hack is someone getting in. Almost all software has known flaws in some version: what matters is updating before someone takes advantage.
How serious is a CVE with a high score?
It depends on whether it affects you. The CVSS score measures the flaw in general: if you don't use that software, or already have a fixed version, it doesn't touch you. If you use it and there's no patch, disable it until there is.
How do I find out if a plugin I use has a flaw?
By looking it up in the databases above, or with a service that does it for you: security plugins and maintenance services warn you when an installed version shows up with a vulnerability.
If my customers' data leaked, do I have to report it?
In Argentina there's currently no general duty to notify the authority in the private sector, but there is a duty to protect the data (Law 25,326), and telling the people affected is usually the right thing. Bills before Congress may change this; if it happens to you, talk to a lawyer.
Is a security plugin enough?
It helps, but it doesn't replace the basics: updating, unique passwords with a second factor, removing what you don't use, and backups off the server. A firewall blocks many attacks, not all.
Why would anyone attack a small site like mine?
Because almost nobody picks it. Attacks are automated: they try thousands of sites looking for a vulnerable version, and yours makes the list for having that plugin, not for being you.
How do I make my website more secure?
Everything up to date, only the plugins you use, strong passwords, HTTPS and off-server backups that can be restored. If you want us to review it, there is our website security service.

Related services

Want us to check your site?

We'll tell you which software is out of date, which known vulnerabilities it has and what to do first.

Related service

Support and maintenance A monthly plan that keeps your site up to date, backed up and with someone on the other end when you need it.