What is computer / software vulnerability?

Vulnerability is a flaw in computer or software that allows hackers to execute malicious code, or gain access to the affected machine in a non-legitimate way.

Vulnerability can be a buggy code prone to exploits, weak passwords, virus infections or other software that creates a weak link in the security system.