Skip to content

Failing to download CVEs #1116

@Adley-Nastri

Description

@Adley-Nastri

When running cve-bin-tool, a SHAMismatch error occurs , leading to the whole rest of the process to completely halt.

 INFO     cve_bin_tool.CVEDB - Downloading CVE data...                                           cvedb.py:199
[17:33:10] ERROR    cve_bin_tool.CVEDB - SHAMismatch:                                              error_handler.py:136
                    https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-2017.json.gz (have:
                    9A41A405D604C16E8EE7B04D7DB9812E49F5A93167335F0A954654FF844BE8CC, want:
                    13EA5C65187399E1F91836316952F496F76108810BD475B4C47A0BF91D8C993B)
Downloading CVEs... ------------------- --------------------  48% 0:00:03┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ C:\Program Files\Python38\lib\site-packages\cve_bin_tool-2.1-py3.8.egg\cve_bin_tool\cvedb.py:149 │
│ in cache_update                                                                                  │
│                                                                                                  │
│   146 │   │   │   # exit(100)                                                                    │
│   147 │   │   │   os.unlink(filepath)                                                            │
│   148 │   │   │   with ErrorHandler(mode=self.error_mode, logger=self.LOGGER):                   │
│ > 149 │   │   │   │   raise SHAMismatch(f"{url} (have: {gotsha}, want: {sha})")                  │
│   150 │                                                                                          │
│   151 │   @staticmethod                                                                          │
│   152 │   async def get_curl_versions(session):                                                  │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
SHAMismatch: https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-2017.json.gz (have:
9A41A405D604C16E8EE7B04D7DB9812E49F5A93167335F0A954654FF844BE8CC, want:
13EA5C65187399E1F91836316952F496F76108810BD475B4C47A0BF91D8C993B)
Downloading CVEs... ------------------- --------------------  48% 0:00:03

This screen persists and yields nothing.
The tool was working well last week .
I have tried the tool on both Windows and Ubuntu under WSL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions