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

CVEs in NVD and openCVE out of sync - manual re-import? #33

Open
dagobertdebug opened this issue Nov 7, 2022 · 2 comments
Open

CVEs in NVD and openCVE out of sync - manual re-import? #33

dagobertdebug opened this issue Nov 7, 2022 · 2 comments

Comments

@dagobertdebug
Copy link

dagobertdebug commented Nov 7, 2022

Hello, because my instance was not working for some time and I started again from a recent snapshot, my instance missed some CVEs.

image
image

docker exec -it webserver opencve import-data leads to [*] Import already done.

Is there a way to re-import the data manually? What would be the commands to have NVD and openCVE in sync again?

Thanks!

@ncrocfer
Copy link
Member

ncrocfer commented Nov 7, 2022

Hello,

Unfortunately no, the import-data command is used for an initial import, then the Celery periodic tasks update the list of CVE. These tasks fetch the modified file of the NVD Data Feed.

But this file only keep ~1200 last modified CVEs, so if you don't monitor your OpenCVE instance for a long time you will lose data.

Currently I have no other ideas than reinstalling your OpenCVE instance. You can also create a pull-request to support this feature, I think it's not really complicated to do.

@dagobertdebug
Copy link
Author

Ok, thanks! I think in my case one could live with the diff of 165 CVEs. But, of course, we are all perfectionists :)

Is there a way to re-install without losing the data in the postgres database (e.g. users, subscribed vendors/products, reports)? Or a way to restore the postgres data in a fresh install?

Thanks!

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

No branches or pull requests

2 participants