Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cve list by API #530

Closed
grooverdan opened this issue Jan 27, 2021 · 2 comments
Closed

cve list by API #530

grooverdan opened this issue Jan 27, 2021 · 2 comments

Comments

@grooverdan
Copy link
Contributor

NIST has a couple of APIs that can be use to fetch CVE information for a product, and then information from the CVE.

The CPE (product) API is described https://csrc.nist.gov/CSRC/media/Projects/National-Vulnerability-Database/documents/web%20service%20documentation/Automation%20Support%20for%20CPE%20Retrieval.pdf

An example request would be:

These should be easy enough to match to a product.

CVE look up is https://csrc.nist.gov/CSRC/media/Projects/National-Vulnerability-Database/documents/web%20service%20documentation/Automation%20Support%20for%20CVE%20Retrieval.pdf

CVE rest lookup example:

https://services.nvd.nist.gov/rest/json/cve/1.0/CVE-2021-2056

With this information:

  • is doing an online lookup acceptable?
  • do you want to use this to populate the vulnerabilities.csv? (or could this interface be deprecated)
  • what would you like the report format to look like?

Which perl modules for web fetching and JSON are acceptable to add as a dependency (can make them optional of course)?

@jmrenouard
Copy link
Collaborator

Hi @grooverdan

Yes it could be nice to populate vulnerabilities.csv for offline mysql/mariadb database.

If you want to see update script doing that look at
https://github.com/major/MySQLTuner-perl/blob/master/build/updateCVElist.pl

@jmrenouard
Copy link
Collaborator

Hi @grooverdan

Feel free to reopen if needed
All is in
https://github.com/major/MySQLTuner-perl/blob/master/build/updateCVElist.pl

BR,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants