vehemont / nvdlib

A simple wrapper for the National Vulnerability CVE/CPE API
https://nvdlib.com
MIT License
81 stars 27 forks source link

Fetching CVE stuck in endless loop #43

Open fklement opened 1 month ago

fklement commented 1 month ago

During the retrieval of CVE's for CWE-1233, the nvdlib.searchCVE function ends up in an endless loop:

Error during lookup for cve entry ..
 -> 'NoneType' object is not subscriptable 
 Retrying.
vehemont commented 1 month ago

Hi.

Thanks for opening an issue. Can you please provide the exact search query you are running with NVDLib?

Thank you

fklement commented 1 month ago

Hi.

Thanks for opening an issue. Can you please provide the exact search query you are running with NVDLib?

Thank you

nvdlib.searchCVE(cveId="CVE-2018-9085", key='xxxxxx')

vehemont commented 1 month ago

I think I am struggling to replicate this error you are receiving. I was able to run nvdlib.searchCVE(cveId="CVE-2018-9085", key='xxxxxx') with no issues. Can you please give more details on what exactly isn't working, and how I can replicate it?


>>> r = nvdlib.searchCVE(cveId="CVE-2018-9085", key="xxx")
>>> r[0].id
'CVE-2018-9085'
>>> r[0].cwe
[{'lang': 'en', 'value': 'CWE-276'}]```
fklement commented 3 weeks ago

Ok super weird.... I have now executed the command in my program sequence individually as a test and there it works. In connection with my other code, however, I get the above-mentioned error when calling serachCVE.

I will provide a .py file in the next few days that makes the problem reproducible.

vehemont commented 1 week ago

Hi,

Do you have any update on this issue?

Thank you, vehemont