I want to run a test for some servers to see if they are vulnerable to a bunch of vulnerabilities in CVE database (cve.mitre.org). I have access to the servers so I can know the version numbers of all the installed packages. I am newbie in using CVE database, I spent sometime reading about it but I could not find the answer to my question. So is it stored in the database the affected package and the affected versions?
The end goal that I want is to run a script on my servers to see if there are any updates for specific packages that are important as these updates contain security patches.