# Security Vulnerability

> A weak spot in code that an attacker could use to do harm.

**Field:** Software Development  
**Category:** Security  
**Also known as:** Vulnerability, Security Hole, Security Flaw, Vuln

## Think of it like

Think of it like a window someone forgot to lock. Nothing bad has happened yet, but it could.

## Definition

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.

## Example

Jack's shop lets anyone change the order number in the address. They then see another customer's order. That is a weak spot, even before anyone uses it.

## Why it matters

Every app has some. The job is to find and fix them before attackers do.

## Common mistake

Waiting weeks to install a fix. Attackers often use a known hole within days.

## Three principles

- **A weakness.** Not yet an attack.
- **Usually a bug.** Like trusting input.
- **Patch fast.** The risk is the gap.

## Related terms

- [Common Vulnerabilities and Exposures (CVE)](https://learn.benibix.com/term/development/cve)
- [OWASP Top 10](https://learn.benibix.com/term/development/owasp-top-10)
- [Bug](https://learn.benibix.com/term/development/bug)
- [Input Validation](https://learn.benibix.com/term/development/input-validation)
- [Exploit (Security)](https://learn.benibix.com/term/development/exploit)
- [Zero-Day Vulnerability](https://learn.benibix.com/term/development/zero-day)

## Told apart from

- [Vulnerability vs Exploit](https://learn.benibix.com/compare/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.

---

Source: https://learn.benibix.com/term/development/vulnerability
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
