A software vulnerability is a mistake in a program that someone could use to make it do harm.
This guide is for anyone who wonders why apps need so many security updates. You do not need to write code to be affected: every app and device you use runs code written by people, and people make mistakes.
In short
- Most bugs are just annoying. A bug becomes a security hole when someone can use it to read, change or break things they should not.
- Common causes include trusting what users type, missing permission checks and mistakes in how a program handles memory.
- A hole is found, reported to the maker, fixed and then patched by users. The risky gap is before your copy is updated.
- Many holes matter because of what the program can reach, such as passwords, keys and tokens stored on the same machine.
What you will learn
- Explain how an ordinary coding mistake can turn into a security hole.
- Name a few common kinds of mistake in plain words.
- Describe the life of a hole, from mistake to patch.
- Check that your own apps and devices get their fixes.
- Security hole (vulnerability)
- a weakness in software that could be used to cause harm.
- Way to use the hole (exploit)
- a method or piece of code that takes advantage of a weakness.
- Fix (patch)
- an update from the maker that closes the hole.
What is a software vulnerability?
Think of a shop door with a lock that clicks shut but does not catch. It looks locked, and most people never notice. Anyone who pushes it in the right way can walk in.
A software vulnerability is like that faulty lock. The program works for normal use, so the mistake goes unseen. But a person who sends the right input can make the program do something its makers never planned.
Not every bug is a security hole. A button in the wrong place is just a bug. It becomes a security problem when it lets someone see, change or stop something they should not [1].
Where the comparison stops working: a faulty shop lock only affects one shop. One mistake in a popular program can sit in millions of copies at once, all with the same weakness.
For how security people weigh threats against weaknesses, see Threats, Vulnerabilities and Risk for Beginners. This page looks at how the weakness gets into the code.
Why does it matter?
Holes in common software are a regular route into homes and businesses. Knowing how they happen makes updates and safe coding easier to take seriously.
If you use apps and devices at home
What could happen: a phone or router misses a fix for months, and a known hole stays open.
Check this: turn on automatic updates where you can.
If you are learning to code
What could happen: your app trusts whatever a user types, and a stranger uses that to read your database.
Check this: treat every input from outside your program as untrusted.
If you run a small business website
What could happen: someone finds a hole in your site and has no way to tell you about it.
Check this: publish a simple contact route for security reports.
What does it look like?
Here is a made-up note a developer might write while reviewing code. It shows the mistake in plain words, with no working code.
Example only. All values are made up.
Review notes: EXAMPLE-shop order page - The page shows order details for the number in the web address. (1) - It does not check that the order belongs to the signed-in user. (2) - Changing 0001 to 0002 shows someone else's order. (3) - The server also keeps a FAKE-api-key-0000 in the same folder. (4) Fix: check the owner on every request; move the key to a vault. (5)
- The feature works fine for normal customers.
- The missing check is the actual mistake. One public list of common weaknesses ranks missing permission checks highly [1].
- This is how the mistake becomes a hole: other people's data is exposed.
- In a real file, this line would contain a key the server uses to reach another service. A second hole could expose it.
- The fix closes the gap, and the key is kept somewhere safer.
Why this is risky: nothing looks broken, so the mistake can stay hidden until someone tries it.
The safer way: check permissions on every request, test with a second account, and keep keys out of the program's folder.
How does it work?
- A mistake is made. A developer misses a check or trusts input they should not. Common kinds include letting user text be read as a command, missing permission checks and writing past the end of a block of memory [1].
- The software ships. The program passes normal tests, because normal users never trigger the mistake.
- Someone finds it. That could be the maker, an outside researcher or an attacker. When attackers find it first and use it before a fix exists, it is called a zero-day.
- It is reported and fixed. Good makers offer a clear way to report holes [2]. The researcher tells the maker privately, the maker fixes it, and then details are published. This is called coordinated disclosure.
- Users install the fix. The hole is only closed on a device once its update is installed. Until then, the old copy stays at risk.

Many public holes get an ID number called a CVE, so everyone can talk about the same problem. To learn how these numbers and their scores work, see CVE and CVSS for Beginners.
A hole is often more serious because of what the program can reach. If the program holds passwords, keys or tokens used by other software, a hole can expose those too. Software credentials like these are a kind of non-human identity.
A worked example
This story is made up to show the idea.
Gideon Strand builds websites for small firms. One of them, a bike shop, takes orders through a page he wrote two years ago.
A student who studies security emails the shop through the contact link on its security page. She says that by changing a number in the web address, she could see another customer's order. She did not download anything and has told nobody else.
Gideon checks and finds she is right. The page shows the order but never checks who owns it. He adds the missing check and tests it with two made-up customer accounts.
While he is there, he finds the payment service key saved in a file on the same server. He moves it to the hosting firm's secrets store and asks the payment service for a new key. Then he cancels the old one.
The shop thanks the student and, with her agreement, credits her on its security page. Gideon adds a permission check to his list of things to test on every new page.
Real tools follow the same path. In 2026, AWS published a security notice for its Amazon Q coding assistant. It said a harmful project folder could make commands run automatically, and it credited Wiz for reporting the issue through coordinated disclosure [3]. Read the full case in Amazon Q MCP Config Vulnerability 2026 [3].
Myths and mistakes
| What people think | What is true |
|---|---|
| Security holes are put in on purpose. | Most come from ordinary mistakes, such as a missed check or trusted input. |
| If the app works, it is safe. | Holes often hide in paths normal users never take. Working and safe are different tests. |
| Only big companies' software has holes. | Any code can contain mistakes, including small websites and home devices. |
| Once a fix is released, I am protected. | You are protected once the fix is installed on your device or server. |
| People who report holes are attackers. | Many are researchers trying to help. A clear reporting route makes it easier for them.[2] |
What can I do this week?
- Turn on automatic updates on your phone, computer and browser.
- Check your home router or office devices for waiting updates.
- If you run a website, add a security contact page so people can report holes.
- If you write code, test one page with a second account to check permissions.
- Read Exploits for Beginners to see how holes are used and why speed matters.
Checklist
- I can explain the difference between a bug and a security hole.
- I know a few common kinds of mistake that cause holes.
- I know a hole stays open until the fix is installed.
- Automatic updates are on where possible.
- Our website has a clear way to report security problems.
- Keys and passwords are not stored next to the code that uses them.
- New features are tested for missing permission checks.
Common questions
What is the difference between a bug and a vulnerability?
A vulnerability is a bug with security impact. A bug is any mistake that makes software behave wrongly. It counts as a vulnerability when someone could use it to see, change or stop something they should not be able to. Many bugs are harmless.
Why does software have so many security holes?
Because it is large and written by people. Modern apps contain huge amounts of code, often built from parts written by others. Every missed check or trusted input is a chance for a hole. Testing and reviews catch many, but not all.
Who finds vulnerabilities?
The makers, outside researchers and attackers. Makers find many in testing. Researchers often report them privately so they can be fixed. Attackers look for them too, which is why quick reporting and quick fixes both matter.
What is a zero-day?
A zero-day is a hole that attackers use before a fix is available. The name means the maker has had zero days to fix it. See our guide to zero-day vulnerabilities for more on what to do.
Is it legal to look for vulnerabilities?
Usually only with permission. Testing systems you do not own without permission can break the law in many countries. Many firms publish rules that say what testing they allow. Read them first, and stay inside them.
Where next?
Ready for the detail? Read the practitioner guide: Vulnerability Management Guide. It goes further into finding holes across many systems, deciding which to fix first and tracking fixes to the end.
Also useful:
- Exploits for Beginners
- CVE and CVSS for Beginners
- Zero Day Vulnerabilities for Beginners
- Secure Coding for Beginners
- Bug Bounties for Beginners
Related NHI Mgmt Group resources: Vulnerability Management for Beginners, Patch Management for Beginners and Non-Human Identities for Beginners.
Key terms
- Software vulnerability
- A weakness in code, settings or logic that could be used to cause harm.
- Exploit
- A method or piece of code that takes advantage of a weakness.
- Patch
- An update that fixes bugs or closes security holes.
- Zero-day
- A hole that is used by attackers before a fix is available.
- Coordinated disclosure
- Telling the maker about a hole privately, giving time to fix it, then publishing details.
- Input validation
- Checking that data from outside a program has the expected type, format and size before using it.
- CVE
- A standard ID number for a publicly known software vulnerability.
Sources and further reading
- MITRE, "2025 CWE Top 25 Most Dangerous Software Weaknesses", page last updated 15 December 2025. https://cwe.mitre.org/top25/archive/2025/2025_cwe_top25.html (accessed 1 Dec 2026).
- National Cyber Security Centre, "Vulnerability Disclosure Toolkit", last reviewed 7 November 2024. https://www.ncsc.gov.uk/information/vulnerability-disclosure-toolkit (accessed 1 Dec 2026).
- Amazon Web Services, "Security Bulletin 2026-047-AWS", 23 June 2026. https://aws.amazon.com/security/security-bulletins/2026-047-aws/ (accessed 1 Dec 2026).