Common Vulnerabilities Explained: Types, Risks and How to Fix Them

Common Vulnerabilities Explained: Types, Risks and How to Fix Them

Common vulnerabilities are the security weaknesses that attackers exploit most often, and understanding them is the first step toward fixing them. A common vulnerability is a flaw in software, a system or a configuration that an attacker can use to steal data, take control or disrupt a service, and the same small set of flaws turns up again and again in breached systems.

The list is not random. Year after year, the same categories appear in incident reports and in the OWASP Top 10, which lists the most critical risks to web applications. That repetition is good news for defenders, because a focused set of fixes covers a large share of real-world risk.

Most of these flaws are not exotic. They come from ordinary mistakes: trusting user input, misconfiguring a server, or leaving a known flaw unpatched.

Key takeaways

  • A common vulnerability is a weakness in software or configuration that attackers can exploit, and the same flaws recur across most breaches.
  • CVE gives each publicly known vulnerability a unique identifier, while CVSS scores its severity from 0.0 to 10.0.
  • Injection, broken access control, cross-site scripting and security misconfiguration are among the most frequent web application flaws.
  • Most common vulnerabilities have known fixes, and patching, safe coding and correct configuration cover the majority of risk.
  • Prioritise by exploitability and exposure, not by score alone, and fix internet-facing flaws first.

What counts as a common vulnerability

A vulnerability is any weakness that could let an attacker harm a system, and a common vulnerability is one that appears frequently, is well understood, and has a known fix. The word common matters because it tells a team where to spend its limited time. Fixing the flaws attackers actually use delivers far more protection than chasing rare or theoretical problems.

Vulnerabilities can sit in application code, in libraries and frameworks, in operating systems, or in configuration. A developer who builds a database query from untrusted input creates a code flaw, while a team that ships a server with default credentials creates a configuration flaw. Both can be just as damaging, and attackers rarely care which kind they find.

Best for: any team that wants a shared vocabulary for talking about security flaws, from developers to managers to auditors.

How vulnerabilities get named and scored

When a vulnerability becomes publicly known, it is usually given a CVE identifier, which stands for Common Vulnerabilities and Exposures. CVE is run by MITRE under the sponsorship of CISA, the United States Cybersecurity and Infrastructure Security Agency. The identifier lets everyone from vendors to security teams refer to the same flaw without confusion.

The identifier alone says nothing about severity, so vulnerabilities are also scored with CVSS, the Common Vulnerability Scoring System, maintained by FIRST, the Forum of Incident Response and Security Teams. CVSS scores run from 0.0 to 10.0, and the bands are None at 0.0, Low from 0.1 to 3.9, Medium from 4.0 to 6.9, High from 7.0 to 8.9, and Critical from 9.0 to 10.0.

The score reflects properties of the flaw itself, such as whether it can be exploited over a network and whether authentication is needed. Scores are a starting point, not a verdict, because a Critical score on an internal tool may matter less than a High score on a public login page.

Injection flaws: SQL injection

Injection happens when an application sends untrusted data to an interpreter as if it were a command. SQL injection is the classic example. If a login form builds a database query by pasting user input directly into it, an attacker can type database commands into the username field and the application will run them.

The consequences can be severe. A successful SQL injection can expose entire tables of customer records, change or delete data, or in some cases give the attacker a foothold on the database server itself. It remains one of the oldest and most damaging web flaws, even though the fix has been understood for years.

The fix is to keep data and commands separate. Parameterised queries, also called prepared statements, send the query structure and the user data separately, so the database never treats input as code. Input validation helps, but it is a second layer, not a replacement for parameterisation.

Best for: developers building any feature that takes user input and passes it to a database, a shell or another interpreter.

Cross-site scripting (XSS)

Cross-site scripting, or XSS, lets an attacker run scripts in another user’s browser through a vulnerable web application. It usually happens when an application includes user-supplied content in a page without properly encoding it. The browser cannot tell the attacker’s script apart from the application’s own code, so it runs it with the user’s privileges.

Stored XSS is the most dangerous form, because the malicious script is saved on the server and delivered to every user who views the affected page. Reflected XSS travels through a crafted link, while DOM-based XSS happens entirely in the browser’s JavaScript. All three can steal session tokens, deface pages or redirect users to malicious sites.

The main defence is output encoding, which ensures user content is displayed as text rather than executed as code. Modern frameworks encode output by default, but applications that build HTML by hand or insert raw HTML can undo that protection. Content Security Policy adds a useful second layer. Similar input-handling problems appear in AI applications too, as our guide to the OWASP LLM Top 10 security risks every AI builder should know explains.

Broken access control

Broken access control means users can do things they should not be allowed to do. It is the most common serious web application risk in the OWASP Top 10, and it often comes from missing checks rather than clever attacks. If an application hides an admin button but never checks permissions on the server, anyone who guesses the admin URL can use it.

A frequent form is the insecure direct object reference, where an application identifies a resource by a predictable number in the URL. Changing a user ID from 1042 to 1043 in a profile URL should never show another person’s account, yet in vulnerable applications it does exactly that. The fix is to check on every request that the logged-in user is allowed to access the requested resource.

Access control fails in other ways too: APIs that accept a role field from the client, password reset flows that do not verify identity, and files served from predictable paths. The pattern is always the same, which is that the application trusts the client instead of enforcing the rule itself. Deny by default is the guiding principle, and tests should probe for missing checks as deliberately as they probe for injection.

Hands typing on a laptop keyboard beside an open notebook, the screen glowing lime green with blurred code in a dark room
Hands typing at a laptop in a dark room, its screen glowing lime green. Most common vulnerabilities come from ordinary coding mistakes, and the fixes are usually straightforward.

Security misconfiguration and outdated components

Security misconfiguration covers the many ways a system can be set up insecurely. Default usernames and passwords left in place, error messages that reveal database details, directory listings left enabled, and cloud storage buckets left public all belong here. Modern systems have many layers to configure, and a single overlooked option can expose an entire system.

The fix is to treat configuration as code. Use hardened baselines, automate deployment so settings stay consistent, and scan regularly for drift. Remove default accounts and credentials, turn off features that are not needed, and keep error messages free of useful detail. Many breaches begin with a storage bucket or database accidentally made public, and our plain guide to cloud security posture management explains how continuous checks catch these mistakes before attackers do.

Almost every modern application is also built from other people’s code, and when a component has a known vulnerability, the application inherits it. A single direct dependency can pull in dozens of indirect ones, and a flaw deep in that tree is easy to miss. The fix starts with a software bill of materials, a list of every component and its version, followed by automated scanning and regular updates. Patching promptly matters most for internet-facing components, where public exploits often appear within days of disclosure.

Common vulnerabilities at a glance

Vulnerability Typical cause Main impact Key fix
SQL injection User input built into queries Data theft or loss Parameterised queries
Cross-site scripting Unencoded output in pages Session theft, defacement Output encoding
Broken access control Missing permission checks Unauthorised access Server-side checks, deny by default
Security misconfiguration Defaults, verbose errors, open storage Exposure of systems and data Hardened baselines, scanning
Vulnerable components Outdated libraries Known flaws inherited Inventory, scanning, patching
Insecure deserialization Untrusted data deserialized Remote code execution Avoid it, use strict formats
SSRF Server fetches user URLs Internal service access Allow-lists, network limits

Parameterised queries, output encoding, server-side permission checks and prompt patching address the flaws that dominate incident reports, and our guide to AI security testing tools teams actually need to know covers the scanners that help find them.

How to prioritise and fix common vulnerabilities

Fixing everything at once is rarely possible, so prioritisation matters. Start with flaws that are reachable from the internet and that have a public exploit, because those are the ones attackers will find first. Then work through the rest in order of severity and exposure, and set a clear deadline for each level of risk.

Patching is the most direct fix for known flaws in components and platforms, and it should be routine rather than occasional. For flaws in your own code, the fix is a code change followed by a test that proves the flaw is gone. Secure coding training, code review and automated scanning catch flaws before they reach production.

A practical checklist for tackling common vulnerabilities

  • Inventory every application and its components, and keep a current software bill of materials.
  • Scan dependencies regularly for known CVEs and patch internet-facing components first.
  • Use parameterised queries everywhere user input reaches a database.
  • Encode output in web pages and rely on framework defaults rather than building HTML by hand.
  • Enforce access control on the server for every page, function and API endpoint.
  • Remove default credentials, silence verbose errors and scan cloud settings for public exposure.
  • Combine CVSS scores with exposure and exploitability when deciding what to fix first.
  • Retest every fix and add a regression test so the flaw cannot return unnoticed.

Frequently asked questions

What is a common vulnerability?

A common vulnerability is a security weakness that appears frequently and is well understood, such as SQL injection or cross-site scripting. Attackers exploit these flaws because they are widespread and often left unfixed.

What is a CVE?

CVE stands for Common Vulnerabilities and Exposures. It is a system run by MITRE under CISA sponsorship that gives each publicly known vulnerability a unique identifier, so everyone can refer to the same flaw unambiguously.

What do CVSS scores mean?

CVSS scores severity from 0.0 to 10.0: None at 0.0, Low from 0.1 to 3.9, Medium from 4.0 to 6.9, High from 7.0 to 8.9, and Critical from 9.0 to 10.0. Higher scores mean a flaw is easier to exploit or more damaging, but context also matters.

Which common vulnerability is the most dangerous?

It depends on context. Injection and broken access control are usually the most damaging in web applications, while an unpatched internet-facing component with a public exploit is often the most urgent.

Can common vulnerabilities be fully eliminated?

No system can be made perfectly secure, but the most common vulnerabilities can be reduced to a very low level. Safe coding, prompt patching, correct configuration and regular testing together remove the flaws that cause most breaches.

How often should I scan for vulnerabilities?

Scan continuously where possible, and at least on every release for internet-facing systems. New vulnerabilities are disclosed daily, so a scan from a month ago says little about today’s risk.

Latest articles

Patch Management Explained

Patch Management Explained

Patch management is the process of finding, testing and applying software updates, known as patches, that fix security flaws and

Scroll to Top