Skip to content

AswinMathew2004/cve-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก CVE-CLI

Query the National Vulnerability Database from your terminal โ€” fast, beautiful, and scriptable.

Python License NVD Powered PRs Welcome Website GitHub

๐Ÿ›ก  CVE-CLI  NVD-Powered Vulnerability Intelligence

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ CVE-2021-44228                                              โ”‚
โ”‚ ๐Ÿ”ด CRITICAL  10.0/10                                       โ”‚
โ”‚ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  CVSS 3.1 ยท Network ยท Low Complexity  โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

๐Ÿ“‹ Description
 Apache Log4j2 2.0-beta9 through 2.14.1 JNDI features used in
 configuration, log messages, and parameters do not protect against
 attacker-controlled LDAP and other JNDI related endpoints...

๐Ÿ”— References (12)
 https://logging.apache.org/log4j/2.x/security.html
 https://github.com/advisories/GHSA-jfh8-c2jp-5-qrq
 ...

โœจ Features

  • ๐Ÿ” Lookup any CVE by ID with full CVSS detail
  • ๐Ÿ”Ž Search by keyword, product, or vendor
  • ๐Ÿ“… Recent โ€” browse CVEs from the last N days
  • ๐Ÿ“Š Stats โ€” severity breakdown chart for any topic
  • ๐Ÿ“Œ Watchlist โ€” save CVEs locally to track
  • ๐Ÿ“„ Export โ€” HTML reports + JSON output
  • ๐ŸŒˆ Beautiful terminal output with Rich
  • ๐Ÿ”‘ Optional NVD API key for higher rate limits

๐Ÿ“ฆ Installation

From PyPI (coming soon)

pip install cve-cli

From source

git clone https://github.com/AswinMathew2004/cve-cli
cd cve-cli
pip install -r requirements.txt
python cve_cli.py --help

๐Ÿš€ Usage

Look up a CVE

cve-cli lookup CVE-2021-44228
cve-cli lookup CVE-2023-44487        # HTTP/2 Rapid Reset
cve-cli lookup CVE-2014-0160         # Heartbleed

Search by keyword / product / vendor

cve-cli search --keyword log4j
cve-cli search --product nginx --severity HIGH
cve-cli search --vendor microsoft --days 30 --limit 50
cve-cli search --keyword wordpress --severity CRITICAL --export report.html

Show recent CVEs

cve-cli recent                        # last 7 days
cve-cli recent --days 30
cve-cli recent --severity CRITICAL --export critical.html

Severity stats for a topic

cve-cli stats --keyword apache
cve-cli stats --keyword docker

Watchlist

cve-cli watch --add CVE-2021-44228
cve-cli watch --add CVE-2023-44487
cve-cli watch --list                  # fetch & display all watched CVEs
cve-cli watch --remove CVE-2021-44228

Export reports

# HTML report (shareable)
cve-cli search --keyword openssl --export openssl_report.html

# JSON for scripting / SIEM integration
cve-cli search --keyword nginx --json-out nginx_cves.json

๐Ÿ”‘ API Key (Optional but Recommended)

Without a key you get 5 requests/30 seconds. With a free NVD API key you get 50 requests/30 seconds.

Get your free key at: https://nvd.nist.gov/developers/request-an-api-key

# Set via environment variable
export NVD_API_KEY=your-key-here

# Or pass directly
cve-cli --api-key your-key-here lookup CVE-2021-44228

๐Ÿ”ง Scripting & Automation

CVE-CLI outputs JSON so you can pipe it into other tools:

# Save to JSON and process with jq
cve-cli search --keyword apache --json-out cves.json
cat cves.json | jq '[.[] | select(.cvss.score >= 9.0)]'

# Daily critical CVE alert (add to cron)
cve-cli recent --days 1 --severity CRITICAL --export /var/www/html/daily_cves.html

๐Ÿ—บ Roadmap

  • PyPI release (pip install cve-cli)
  • EPSS score integration
  • Slack / Discord webhook alerts
  • SBOM / requirements.txt scanning
  • GitHub Actions integration

๐Ÿค Contributing

PRs are welcome! Please open an issue first to discuss what you'd like to change.

  1. Fork the repo
  2. Create a feature branch (git checkout -b feature/webhook-alerts)
  3. Commit your changes
  4. Open a PR to AswinMathew2004/cve-cli

โš–๏ธ License

MIT ยฉ Aswin Mathew


Data source: National Vulnerability Database (NVD) by NIST. This tool is not affiliated with or endorsed by NIST. Made with โค๏ธ by Aswin Mathew โ€” GitHub

About

๐Ÿ›ก CVE lookup & vulnerability intelligence CLI โ€” search NVD, track CVEs, export reports. For pentesters, bug bounty hunters & developers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages