Vulnerability Analysis & CVSS Scoring
Running a vulnerability scanner against a production network is easy. The real engineering challenge begins five minutes later when the scanner hands you a 400-page report with 120 "Critical" findings. Patching everything blindly wastes sprint cycles, while ignoring the wrong finding leads to a breach.
Effective Vulnerability Analysis combines standardized classification (CVE & CWE), accurate severity scoring (CVSS v3.1 & v4.0), and disciplined manual verification so your team focuses on real, exploitable attack paths rather than scanner noise.
- How CVE databases (MITRE, NVD, CISA KEV) and CWE classifications work together.
- How to calculate and interpret CVSS v3.1 and CVSS v4.0 scores, including the new v4.0 nomenclature (
CVSS-B,CVSS-BT,CVSS-BE,CVSS-BTE). - How to spot false positives and balance automated vs. manual triage.
- Hands-On Lab: Deploy OpenVAS (Greenbone Community Containers), run both uncredentialed and credentialed scans (with Nessus equivalents), manually verify findings, and prioritize exploit paths.
1. CVE Databases & CWE Classifications
Security teams rely on two foundational catalogs to talk about flaws without ambiguity: CVE identifies specific instances of vulnerabilities in real products, while CWE classifies the underlying software weakness that caused them.
| Standard / Source | What It Tracks | Example | Primary Use Case |
|---|---|---|---|
| CVE (Common Vulnerabilities & Exposures) | Unique ID for a specific publicly disclosed flaw in a product/version | CVE-2024-3094 |
Tracking patch status across hosts and vendor advisories |
| CWE (Common Weakness Enumeration) | Category of root-cause coding or design flaw | CWE-89 (SQL Injection), CWE-79 (XSS) |
Fixing systemic developer mistakes and writing secure code rules |
| NVD (National Vulnerability Database) | Enriched CVE feed with CVSS scores, CPEs, and references | CVSS vector + affected product versions | Automated scanner matching and baseline severity scoring |
| CISA KEV (Known Exploited Vulnerabilities) | CVEs actively exploited in the wild | Mandatory remediation due dates | Immediate emergency patching prioritization |
2. CVSS v3.1 vs. CVSS v4.0 Severity Calculation
The Common Vulnerability Scoring System (CVSS) produces a score from 0.0 to 10.0. A critical rule to remember: CVSS measures technical severity, not business risk. A 9.8 vulnerability on an air-gapped test box carries far less risk than a 7.5 vulnerability on an internet-facing payment gateway.
What changed in CVSS v4.0?
CVSS v4.0 (maintained by FIRST.org) modernizes scoring with four metric groups: Base, Threat, Environmental, and Supplemental. Key upgrades over v3.1 include:
- Explicit Nomenclature: Scores must state which groups were used:
CVSS-B(Base only),CVSS-BT(Base + Threat),CVSS-BE(Base + Environmental), orCVSS-BTE(Base + Threat + Environmental). - Scope Retired: Instead of the confusing v3.1 Scope toggle, v4.0 explicitly separates impact to the Vulnerable System (
VC/VI/VA) from Subsequent Systems (SC/SI/SA). - Finer Exploitability: Splits Attack Complexity into Attack Complexity (
AC) and Attack Requirements (AT), and expands User Interaction (UI) to None (N), Passive (P), and Active (A). - Threat & Supplemental Groups: Renames Temporal to Threat (focused on Exploit Maturity
E) and adds a Supplemental group (Safety, Automatable, Recovery, Value Density, Response Effort, Provider Urgency) that informs triage without altering the numeric score.
| Qualitative Rating | Score Range | Typical Triage SLA (After Verification) |
|---|---|---|
| Critical | 9.0 – 10.0 | 24–72 hours (immediate if internet-facing or in CISA KEV) |
| High | 7.0 – 8.9 | 7–14 days |
| Medium | 4.0 – 6.9 | 30–60 days |
| Low | 0.1 – 3.9 | 90 days / next scheduled maintenance window |
Reading a CVSS v4.0 Vector String
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A
# Breakdown:
# AV:N -> Network-accessible (remote attacker)
# AC:L -> Low attack complexity (no special defense bypass)
# AT:N -> No special deployment/race-condition requirements
# PR:N -> No privileges required (unauthenticated)
# UI:N -> No user interaction required
# VC:H/VI:H/VA:H -> High Confidentiality, Integrity, Availability impact on Vulnerable System
# SC:N/SI:N/SA:N -> No impact on Subsequent Systems
# E:A -> Threat metric: Attacked (actively exploited in the wild) -> CVSS-BT Score
3. Architecture: Vulnerability Triage & Scoring Pipeline
Raw scanner output should never go straight into a developer's ticket queue. Every finding must pass through enrichment, context-aware scoring, and manual verification.
End-to-End Vulnerability Analysis & Triage Workflow
Automated scanners discover candidates and attach Base scores, while manual verification separates real exploit paths from backported-patch false positives.
4. False-Positive Verification & Automated vs. Manual Triage
A false positive happens when a scanner flags a host as vulnerable even though it is actually patched or protected. The most common cause on Linux servers is banner-based version checking: Debian, Ubuntu, and RHEL backport security fixes into older package versions without changing the upstream version string (for example, OpenSSH 8.9p1 on Ubuntu may already contain the fix for a recent CVE).
| Dimension | Automated Triage | Manual Triage |
|---|---|---|
| Speed & Scale | Evaluates thousands of hosts in minutes | Slower; reserved for Critical/High or internet-facing assets |
| Strengths | Consistent CVE matching, missing patch detection, KEV/EPSS enrichment | Confirms backported patches, validates compensating controls (WAF, firewall), chains multi-step exploits |
| Weaknesses | High false-positive rate on uncredentialed scans; blind to business logic | Time-intensive; depends on analyst skill |
5. Hands-On Lab: OpenVAS/Nessus Scanning, Verification & Prioritization
In this lab, you will deploy Greenbone Community Edition (OpenVAS) using official Docker containers (100% free and open-source), run both an uncredentialed and a credentialed scan against a local test target, manually verify a finding, and prioritize the exploit path.
Step 1: Deploy OpenVAS (Greenbone Community Containers)
Download the official Greenbone Docker Compose file, pull the images, and start the stack.
Terminal: Start Greenbone Community Edition
export DOWNLOAD_DIR=$HOME/greenbone-community-edition
mkdir -p "$DOWNLOAD_DIR"
curl -f -L https://greenbone.github.io/docs/latest/_static/compose.yaml \
-o "$DOWNLOAD_DIR/compose.yaml"
docker compose -f "$DOWNLOAD_DIR/compose.yaml" pull
docker compose -f "$DOWNLOAD_DIR/compose.yaml" up -d
# Set a strong admin password for the web UI
docker compose -f "$DOWNLOAD_DIR/compose.yaml" \
exec -u gvmd gvmd gvmd --user=admin --new-password='ChangeMeStrong!2026'
Wait 3–5 minutes for the vulnerability feeds to finish syncing, then open http://127.0.0.1:9392 in your browser and log in as admin.
Step 2: Execute Uncredentialed vs. Credentialed Scans
In Greenbone Web UI, go to Configuration → Targets → New Target. Enter your lab VM IP (e.g.,
192.168.56.10) with no SSH credentials. Create a Task under Scans → Tasks using the Full and fast scan config and start it.Nessus Equivalent: Create a Basic Network Scan without adding SSH/Windows credentials under the Credentials tab.
Go to Configuration → Credentials → New Credential and add a dedicated low-privilege SSH user (or SSH key) for your lab VM. Clone your Target, attach the SSH credential, and run a second Task.
Nessus Equivalent: Duplicate the scan, add your SSH username/key under Credentials → SSH, and re-run.
Comparing the two scan reports
=== Scan A (Uncredentialed) === - Total Findings: 14 (Mostly open-port banners, TLS ciphers, HTTP headers) - High/Critical: 2 (e.g., OpenSSH banner flagged as potentially vulnerable) - Missing OS Package Patches Detected: 0 (Cannot inspect local dpkg/rpm DB) === Scan B (Credentialed via SSH) === - Total Findings: 47 (Deep OS package + library inventory) - High/Critical: 5 (Exact vulnerable libssl, sudo, and web runtime packages) - False Positives: Dropped sharply because scanner verified exact distro patch level
Step 3: Manually Verify Findings (Eliminate False Positives)
Suppose Scan A flags OpenSSH 8.9p1 on your Ubuntu lab host as vulnerable to a High-severity CVE. Before opening a P1 ticket, SSH into the host and verify whether the distro already backported the fix.
Terminal: Verify package patch level & service exposure
# 1. Check exact installed Ubuntu/Debian package version
dpkg -l openssh-server
# 2. Check the package changelog for the specific CVE ID
apt-get changelog openssh-server | grep -i "CVE-2024-"
# 3. Verify if the service is actually exposed externally or firewalled
ss -tulpn | grep :22
# 4. For web findings (e.g., missing security headers or exposed endpoint), test directly
curl -Ik https://192.168.56.10/
Expected verification output
ii openssh-server 1:8.9p1-3ubuntu0.10 amd64 secure shell (SSH) server * SECURITY UPDATE: ... - CVE-2024-6387 (backported fix included in 1:8.9p1-3ubuntu0.10)
1:8.9p1-3ubuntu0.10 includes the backported fix, the uncredentialed banner alert is a confirmed false positive. Document the changelog proof and suppress the alert in OpenVAS/Nessus with an expiration date.Step 4: Prioritize Exploit Paths
Now compare two confirmed vulnerabilities from your credentialed scan to decide what gets patched first:
| Finding | CVSS v4.0 Base (CVSS-B) |
Context (Threat + Environment) | Adjusted (CVSS-BTE) & Priority |
|---|---|---|---|
Vuln 1: Unauthenticated API RCE (CWE-78) on public web server |
9.3 (Critical) | Internet-facing (AV:N), PoC public & in CISA KEV (E:A), holds customer DB credentials |
9.5 (P1 – Patch Immediately) |
Vuln 2: Local Privilege Escalation (CWE-269) on internal batch host |
7.8 (High) | Requires local shell (AV:L), behind VPN/bastion, no active exploit (E:U) |
6.4 (P2 – Schedule in Sprint) |
Chaining Check: Always ask if Vuln 1 and Vuln 2 connect. If an attacker exploits Vuln 1 on the web server to get a low-privilege shell, and that same server also has Vuln 2, the combined exploit path escalates directly to root. In CVSS v4.0, chaining combines the Exploitability of the entry vulnerability with the Impact of the privilege-escalation vulnerability.
6. Hands-On Practice
Given CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N, determine whether an unauthenticated attacker can exploit it and whether any user interaction is needed.
Hint: Look at PR:L (Low privileges required) and UI:P (Passive user interaction).
Export both Scan A and Scan B from OpenVAS as CSV files and count how many Critical/High findings appeared only in Scan B. Identify one OS library vulnerability that Scan A completely missed.
Use the official FIRST CVSS v4.0 Calculator to compute the CVSS-BTE score for an internal-only admin panel vulnerability when you apply a compensating control (WAF + IP allowlist changing Modified Attack Vector MAV from Network to Adjacent).
7. Interview Questions
Answer: The Base score (CVSS-B) only reflects the intrinsic technical severity of a flaw in a vacuum. It ignores whether an exploit exists in the wild (Threat metrics / CISA KEV / EPSS) and whether the affected asset is internet-facing, business-critical, or protected by compensating controls (Environmental metrics).
Answer: An uncredentialed scan probes a target from the outside like an external attacker, relying on open ports and service banners—which misses local package flaws and causes false positives on backported patches. A credentialed scan authenticates (e.g., via SSH or WinRM) to inspect exact installed packages, configurations, and registries, yielding far higher accuracy.
Answer: A CVE identifies a specific vulnerability in a specific software release (e.g., a bug in OpenSSL 3.0.1), whereas a CWE categorizes the underlying class of software weakness (e.g., CWE-787 Out-of-bounds Write). Multiple CVEs across different products often map to the same CWE.
Conclusion
Great vulnerability management is not about chasing a zero-finding scanner report—it is about reducing real attack surface quickly. Combine credentialed scanning for visibility, CVSS v4.0 Threat and Environmental context for accurate scoring, and manual verification to eliminate noise so your engineering team always patches the highest-risk exploit paths first.
Official Documentation
- FIRST.org – CVSS v4.0 Specification Document
- NIST – National Vulnerability Database (NVD)
- MITRE – Common Weakness Enumeration (CWE)
- Greenbone – Community Containers (OpenVAS) Setup Guide
Upgradix by Shrash Studio – Learn Technology. Build Your Future.
Discussion & Comments
0No comments yet
Start the discussion above — ask a question, share a tip, or reply to a comment.