Vulnerabilities and exploits are closely related security concepts which are often confused but it is critically important to understand the…