☼
⌃
☰

Vulnerability Databases

Table of Contents

Reference databases used to look up known vulnerabilities, exploits, and weaknesses. Each serves a different purpose in the vulnerability management and pentesting workflow — CVE/NVD for standardised vulnerability data, Exploit-DB/Searchsploit for exploit code, and CWE for root cause classification.

Related: Searchsploit CVSS MITRE ATT&CK

1. CVE — Common Vulnerabilities and Exposures

The universal naming standard for publicly disclosed vulnerabilities. Every known vulnerability gets a unique identifier: CVE-<year>-<number>.

Maintained by MITRE, funded by the US government. CVE itself only provides the identifier and a brief description — enrichment (severity scores, affected products, patches) comes from NVD.

TEXT
CVE-2017-0144   # EternalBlue / MS17-010
CVE-2021-44228  # Log4Shell
CVE-2021-34527  # PrintNightmare

Search: https://cve.mitre.org or directly via NVD.

2. NVD — National Vulnerability Database

The US government's enriched CVE repository, maintained by NIST. Takes raw CVE data and adds CVSS scores, CPE (affected products), CWE (root cause), and patch references. The authoritative source for severity scoring and affected version lists.

https://nvd.nist.gov

Key fields in an NVD entry

Field Meaning
CVSS Base Score Severity 0–10 with vector string
CWE Root cause weakness category
CPE Exact affected products and versions
References Vendor advisories, patches, PoC links

Workflow — NVD during an engagement

TEXT
1. Identify software version from nmap -sV or banner grab
2. Search NVD: vendor + product + version
3. Note CVSS score — prioritise by severity
4. Check CPE for exact version match — confirm this version is affected
5. Follow references for PoC or patch details
6. Search Exploit-DB / Searchsploit for available exploit code

NVD API

SHELL
# Query NVD API for a specific CVE
curl "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-44228"

# Search by keyword
curl "https://services.nvd.nist.gov/rest/json/cves/2.0?keywordSearch=apache+log4j"

# Filter by CVSS severity
curl "https://services.nvd.nist.gov/rest/json/cves/2.0?cvssV3Severity=CRITICAL"

3. Exploit-DB

Public archive of working exploits and shellcode maintained by Offensive Security. Each entry links to a CVE and includes the actual exploit code — the bridge between knowing a vulnerability exists (NVD) and having something to run against it.

https://exploit-db.com

Local offline copy is searchable via Searchsploit — faster than the website mid-engagement.

SHELL
# Search local copy
searchsploit apache 2.4.49
searchsploit -t "remote code execution" windows

# Examine before copying
searchsploit -x 49900

# Copy to working directory
searchsploit -m 49900

# Update local database
searchsploit -u

4. CWE — Common Weakness Enumeration

A taxonomy of software weakness categories — the root cause classification beneath individual CVEs. Where CVE describes a specific vulnerability instance, CWE describes the class of weakness that caused it.

https://cwe.mitre.org

CWE Weakness
CWE-79 Cross-site Scripting
CWE-89 SQL Injection
CWE-78 OS Command Injection
CWE-22 Path Traversal
CWE-287 Improper Authentication
CWE-862 Missing Authorization
CWE-434 Unrestricted File Upload
CWE-918 SSRF
CWE-611 XXE
CWE-502 Deserialization of Untrusted Data

Primarily useful for: understanding what class of flaw a CVE represents, writing remediation recommendations, and mapping findings to root causes in pentest reports.

5. EPSS — Exploit Prediction Scoring System

Complements CVSS — where CVSS measures theoretical severity, EPSS predicts the probability that a vulnerability will be actively exploited in the wild within 30 days, based on threat intelligence data.

https://www.first.org/epss

A vulnerability can have a low CVSS score but high EPSS (actively exploited, just limited in scope) or a Critical CVSS but low EPSS (severe if exploited, but no known exploitation activity). Useful for prioritising which vulnerabilities to patch first when resources are limited.

6. VulnHub / HackTheBox / TryHackMe

Intentionally vulnerable machine archives — useful for finding practice targets rather than real vulnerability data. Not vulnerability databases in the NVD sense but worth referencing for practice-oriented lookup.

7. Vendor Advisories

For production systems, always cross-reference NVD data against the vendor's own advisory — NVD enrichment can lag, and vendors sometimes narrow or expand the affected version list after initial publication.

Vendor Advisory location
Microsoft https://msrc.microsoft.com
Apache https://httpd.apache.org/security/vulnerabilities_24.html
Cisco https://sec.cloudapps.cisco.com/security/center/publicationListing.x
Linux kernel https://www.kernel.org/doc/html/latest/admin-guide/security-bugs.html

Workflow — Finding an Exploit for a Discovered Service

TEXT
1. Banner grab / version identify (nmap -sV)
2. Searchsploit <service> <version>           — fast, offline first
3. If nothing: NVD search by product/version  — check CVEs
4. Exploit-DB online — search CVE ID for exploit code
5. If PoC exists: examine before using (searchsploit -x <id>)
6. Check vendor advisory for patch status and exact affected versions
7. EPSS — is this being actively exploited? Raises severity in report

Tips

  • Searchsploit first — offline, instant, covers most CTF scenarios
  • NVD for version confirmation — do not assume an exploit applies without checking the exact CPE affected range
  • CVSS alone is not a prioritisation tool — a Critical CVSS with low EPSS is less urgent than a Medium CVSS being actively exploited in the wild
  • CWE mappings in pentest reports add credibility and make remediation recommendations more precise
  • NVD enrichment can lag weeks behind the CVE publication date for newly disclosed vulnerabilities — for recent CVEs check the vendor advisory directly