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

fix: Specifying the use of NVD API2 is being ignored #3541

Closed
anthonyharrison opened this issue Nov 26, 2023 · 2 comments
Closed

fix: Specifying the use of NVD API2 is being ignored #3541

anthonyharrison opened this issue Nov 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@anthonyharrison
Copy link
Contributor

Description

The following lines in cli.py override the api2 setting of --nvd

    if args["nvd_api_key"]:
        nvd_type = "api"

The change of nvd_type, should only occur in the nvd_type is not "api2"

To reproduce

Specify -n api2 on the command line with other parameters as appropriate

Expected behavior:

This should appear in the log if -n api2 is specified on the command line

       INFO     cve_bin_tool - [Using NVD API 2.0]     

Actual behaviour:

This appears in the log if -n api2 is specified on the command line

       INFO     cve_bin_tool - [Using NVD API]   

Version/platform info

Version of CVE-bin-tool( e.g. output of cve-bin-tool --version): 3.2.2dev0
Installed from pypi or github? github
Operating system: Linux/Windows (other platforms are unsupported but feel free to report issues anyhow) Linux

  • On Linux (or Windows Subsystem for Linux) you can run uname -a
  • On Windows you can run systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
    Python version (e.g. python3 --version): 3.10
    Running in any particular CI environment we should know about? (e.g. Github Actions) N/A

Anything else?

@anthonyharrison anthonyharrison added the bug Something isn't working label Nov 26, 2023
@torabi12
Copy link

I can not update the DB using api2:

image

@anthonyharrison
Copy link
Contributor Author

anthonyharrison commented Nov 27, 2023

I am getting a 503 - Service Unavailable when I try today.

UPDATE Now appears to be working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants