Search CVEs from the terminal using the NVD API. Fast, colorized, minimal.
git clone https://github.com/j040ad/cve-cli.git
cd cve-cli
pip3 install -r requirements.txt
cp .env.example .env # optional: add NVD API key for higher rate limits
sudo ln -sf "$(pwd)/cve.py" /usr/local/bin/cve # optional: use globally# Search by keyword
cve search nmap
cve search "apache log4j"
# Lookup specific CVE
cve get CVE-2021-44228
# Filter by severity
cve search openssl --severity critical
cve search nginx --severity high
# Limit results
cve search php --limit 5
# JSON output
cve get CVE-2021-44228 --jsonCVE-2021-44228 [CRITICAL 10.0] 2021-12-10
Apache Log4j2 JNDI features used in configuration, log messages, and
parameters do not protect against attacker controlled LDAP and other
JNDI related endpoints...
→ https://nvd.nist.gov/vuln/detail/CVE-2021-44228
By j040ad