cve-bin-tool
cve-bin-tool copied to clipboard
bug: Offline operation, sqlite checker attempts internet access and results in error
Description
completely offline installation errors on sqlite.py file line 34 even when using the --offline argument. Even when trying to skip the checker.
NOTE 1, this is a completely offline installation. cve-bin-tool is temperamental by insisting on having internet access across the installation process even after attempting to use offline downloaded packages. NOTE 2: After installation, nonexistent cache/directories prohibit offline database import (another bug) unless tool is run initially first to build the cache/directories, then import is possible. If you've installed cve-bin-tool online, then you will not be able to duplicate this issue. NOTE 3: Attempting to skip the "sqlite" checker and the error in this submission is still happening. It is probable that the checker is not actually being skipped; this may be another possible bug?
To reproduce
cve-bin-tool --offline -s sqlite /usr/bin/7z
Expected behaviour: no access to internet should be attempted by tool. Actual behaviour: access query is attempted AND error is not handled.
Version/platform info
Version of CVE-bin-tool( e.g. output of cve-bin-tool --version
): 3.3
Installed from pypi or github? pip3
Operating system: Linux/Windows (other platforms are unsupported but feel free to report issues anyhow)
- On Linux (or Windows Subsystem for Linux) you can run
uname -a
kali 2024.2 - On Windows you can run
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
Python version (e.g.python3 --version
): 3.11.9 Running in any particular CI environment we should know about? (e.g. Github Actions)
Anything else?
┌──(user㉿kali-purple)-[~/…/lib/python3.11/site-packages/cve_bin_tool]
└─$ /home/user/.local/bin/cve-bin-tool --offline -s sqlite /usr/bin/7z
[14:40:22] INFO cve_bin_tool - CVE Binary Tool v3.3 cli.py:571
INFO cve_bin_tool - This product uses the NVD API but is not endorsed or certified by the NVD. cli.py:572
WARNING cve_bin_tool - Not verifying CVE DB cache cli.py:810
INFO cve_bin_tool.CVEDB - There are 278373 CVE entries in the database cvedb.py:362
INFO cve_bin_tool.CVEDB - There are 260087 CVE entries from NVD in the database cvedb.py:364
INFO cve_bin_tool.CVEDB - There are 18284 CVE entries from REDHAT in the database cvedb.py:364
INFO cve_bin_tool.CVEDB - There are 2 CVE entries from GAD in the database cvedb.py:364
INFO cve_bin_tool.CVEDB - There are 278373 CVE entries in the database cvedb.py:362
INFO cve_bin_tool.CVEDB - There are 260087 CVE entries from NVD in the database cvedb.py:364
INFO cve_bin_tool.CVEDB - There are 18284 CVE entries from REDHAT in the database cvedb.py:364
INFO cve_bin_tool.CVEDB - There are 2 CVE entries from GAD in the database cvedb.py:364
INFO cve_bin_tool - CVE database contains CVEs from National Vulnerability Database (NVD), Open Source Vulnerability cli.py:832
Database (OSV), Gitlab Advisory Database (GAD) and RedHat
INFO cve_bin_tool - CVE database last updated on 16 August 2024 at 14:09:50 cli.py:835
ERROR cve_bin_tool - An error occurred while fetching https://www.sqlite.org/changes.html: util.py:281
HTTPSConnectionPool(host='www.sqlite.org', port=443): Max retries exceeded with url: /changes.html (Caused by
NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7ff81fc36bd0>: Failed to resolve
'www.sqlite.org' ([Errno -3] Temporary failure in name resolution)"))
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/user/.local/bin/cve-bin-tool:8 in