Prioritising with CVSS, EPSS and KEV
Score five findings with CVSS v4.0 as CVSS-B, CVSS-BT and CVSS-BTE using a real library, combine the result with EPSS, CISA KEV and asset context into a written, justified order, then look up real CVEs in the live KEV and EPSS feeds.
Contentsand lesson path
On this page
- The problem
- Step 1: Set up the scoring library
- Step 2: Score the Base metrics
- Steps 3 and 4: Add Threat and Environmental metrics
- Step 5: Combine everything into a justified order
- Step 6: Look up real CVEs in KEV and EPSS
- Common mistakes
- Check your understanding
- Apply it
- Review prompt
Lessons of Vulnerability Management
- From Asset Inventory to Scan Coverage Concept · 20 min
- Running and Reading an Authenticated Scan Lab · 30 min
- Prioritising with CVSS, EPSS and KEV Worked example · 25 min
- Remediation Workflows, Exceptions and Verification Concept · 20 min
- Metrics That Show Exposure Going Down Worked example · 15 min
- Vulnerability Management Check Knowledge check · 8 questions
What you will learn
- Prioritise findings by combining CVSS v4.0 severity, EPSS probability, CISA KEV status and asset criticality, and justify the order.
01. The problem
A scan of the lab estate from the inventory lesson leaves five open findings. The owners can fix two this week. Which two, and how do you explain the choice to someone who sees only the scanner's severity column? You will build the answer from three public data sources and one private one.
CVSS v4.0 (Common Vulnerability Scoring System, maintained by FIRST) describes how severe a flaw is. It has four metric groups. Base metrics describe the flaw itself and stay the same in every environment: attack vector, attack complexity, attack requirements, privileges and user interaction, and the impact on the vulnerable system and on subsequent systems. Threat metrics have one member, Exploit Maturity (E): Attacked, POC (proof of concept) or Unreported. Environmental metrics describe your deployment: security requirements for confidentiality, integrity and availability (CR, IR, AR) and modified versions of the Base metrics, such as Modified Attack Vector (MAV). Supplemental metrics add information but do not change the score. The specification asks you to label every score with the groups used: CVSS-B, CVSS-BT, CVSS-BE or CVSS-BTE. Vendors and the NVD usually publish only CVSS-B.
EPSS (Exploit Prediction Scoring System, also from FIRST) is a model that estimates the probability that exploitation activity for a CVE will be observed in the next 30 days. A score of 0.05 means that, among many CVEs scored around 0.05, exploitation activity is expected for about 5 in 100. It is recalculated daily; the current model, EPSS v5 (v2026.06.15), has been published since 15 June 2026. EPSS says how likely an attack is, not how bad it would be. The API also returns a percentile, which is a rank, not a probability: a CVE at percentile 0.90 has a higher EPSS score than 90% of all scored CVEs. Most CVEs score close to zero, so a modest probability can rank high; FIRST's FAQ notes that 0.10 currently sits around the 95th percentile.
KEV (the CISA Known Exploited Vulnerabilities catalogue) lists CVEs with reliable evidence of exploitation in the wild and a clear remediation action. It is evidence, not a score. A CVE that is not listed may still be exploited; CISA may not have confirmed it yet.
The private source is your asset context: how critical the asset is and how exposed it is, from the inventory. Here the five findings use fictional LAB- IDs so that no real CVE is misrepresented; step 6 uses real CVEs.
02. Step 1: Set up the scoring library
The cvss package from PyPI implements the CVSS v4.0 calculation. The scores below were also checked against FIRST's reference calculator code and matched for all fifteen vectors.
mkdir prio && cd prio
python3 -m venv .venv
.venv/bin/pip install -q cvss==3.6
.venv/bin/python -c "import importlib.metadata as m; print(m.version(\"cvss\"))"3.603. Step 2: Score the Base metrics
Each finding has a Base vector, the exploit status, whether it is in KEV, an EPSS value and the asset's exposure and criticality. modified holds Environmental overrides: test-07 sits on an isolated test segment that can only be reached from the adjacent lab network, so its attack vector is modified from Network to Adjacent.
[
{"id": "LAB-2026-0101", "asset": "vpn-gw-01", "exposure": "internet",
"criticality": "high", "title": "pre-auth command injection in VPN portal",
"base": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N",
"exploit": "attacked", "kev": true, "epss": 0.91},
{"id": "LAB-2026-0102", "asset": "test-07", "exposure": "internal",
"criticality": "low", "title": "deserialisation flaw in a test harness",
"base": "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",
"exploit": "unreported", "kev": false, "epss": 0.004,
"modified": ["MAV:A"]},
{"id": "LAB-2026-0103", "asset": "payroll-01", "exposure": "internal",
"criticality": "high", "title": "SQL injection in payroll reports, staff login",
"base": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
"exploit": "poc", "kev": false, "epss": 0.12},
{"id": "LAB-2026-0104", "asset": "wiki-01", "exposure": "internal",
"criticality": "medium", "title": "stored cross-site scripting in wiki pages",
"base": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
"exploit": "poc", "kev": false, "epss": 0.02},
{"id": "LAB-2026-0105", "asset": "web-01", "exposure": "internet",
"criticality": "high", "title": "local privilege escalation in C library loader",
"base": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"exploit": "attacked", "kev": true, "epss": 0.35}
]"""Build CVSS v4.0 vectors for B, BT and BTE, and score them with the cvss library."""
import json
from cvss import CVSS4
E = {"attacked": "A", "poc": "P", "unreported": "U"} # Threat: Exploit Maturity
REQ = {"high": "H", "medium": "M", "low": "L"} # Environmental: CR, IR, AR
def vectors(f):
base = f["base"]
bt = f"{base}/E:{E[f['exploit']]}"
req = REQ[f["criticality"]]
modified = "".join("/" + m for m in f.get("modified", [])) # e.g. MAV:A
bte = f"{bt}/CR:{req}/IR:{req}/AR:{req}{modified}"
return base, bt, bte
def score(vector):
c = CVSS4(vector)
return c.base_score, c.severity
def load():
return json.load(open("findings.json"))"""Step 2: score the Base vectors only (CVSS-B) and sort by score."""
from scoring import load, score, vectors
rows = []
for f in load():
b, _, _ = vectors(f)
rows.append((score(b), f["id"], f["asset"]))
for (value, sev), fid, asset in sorted(rows, reverse=True):
print(f"{fid} {asset:<11} CVSS-B {value:>4} {sev}").venv/bin/python step2_base.pyLAB-2026-0102 test-07 CVSS-B 9.3 Critical
LAB-2026-0101 vpn-gw-01 CVSS-B 9.3 Critical
LAB-2026-0103 payroll-01 CVSS-B 8.6 High
LAB-2026-0105 web-01 CVSS-B 8.5 High
LAB-2026-0104 wiki-01 CVSS-B 5.1 MediumSorted by CVSS-B, the test harness ties with the VPN gateway at the top, and the local privilege escalation on web-01 comes fourth. CVSS-B answers "how bad could this flaw be in the worst reasonable case?" It knows nothing about attackers or about your network.
04. Steps 3 and 4: Add Threat and Environmental metrics
scoring.py appends E to get CVSS-BT, then the security requirements from asset criticality and any modified metrics to get CVSS-BTE. KEV entries map to E:A, a public proof of concept to E:P, and nothing known to E:U.
"""Steps 3 and 4: add Threat (CVSS-BT), then Environmental metrics (CVSS-BTE)."""
from scoring import load, score, vectors
print(f"{'finding':<14} {'asset':<11} {'B':>4} {'BT':>4} {'BTE':>4} BTE severity")
for f in load():
b, bt, bte = (score(v) for v in vectors(f))
print(f"{f['id']:<14} {f['asset']:<11} {b[0]:>4} {bt[0]:>4} {bte[0]:>4} {bte[1]}")
print()
print("BTE vector of LAB-2026-0102:")
print(vectors(load()[1])[2]).venv/bin/python step3_bte.pyfinding asset B BT BTE BTE severity
LAB-2026-0101 vpn-gw-01 9.3 9.3 9.3 Critical
LAB-2026-0102 test-07 9.3 8.1 4.5 Medium
LAB-2026-0103 payroll-01 8.6 7.3 7.3 High
LAB-2026-0104 wiki-01 5.1 2.0 2.0 Low
LAB-2026-0105 web-01 8.5 8.5 8.5 High
BTE vector of LAB-2026-0102:
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:U/CR:L/IR:L/AR:L/MAV:AThree effects are visible. First, in this example the scores only go down from CVSS-B. When Exploit Maturity is Not Defined, the specification treats it as Attacked, the worst case, so E:A changes nothing, while E:P and E:U lower the score. Second, the security requirements behave the same way: Not Defined counts as High, so CR:H/IR:H/AR:H on the critical assets leaves 9.3 at 9.3. Modified Base metrics can move a score either way: a flaw scored AV:L on a system that exposes it to the network can be modified to MAV:N, which raises the score. Third, the test harness drops from 9.3 to 4.5 once you record that nothing is known about exploits, that the asset matters little (CR:L/IR:L/AR:L) and that it is only reachable from an adjacent network (MAV:A).
Environmental values are claims about your estate, so they need evidence. If someone later connects test-07 to the routed network, the MAV:A claim is false and the score must be recalculated.
05. Step 5: Combine everything into a justified order
A score is not a decision. rank.py applies a small written policy: KEV evidence on an internet-facing or critical asset comes first; then KEV elsewhere, or an EPSS value of at least 0.10 (a local threshold, which you would tune to your capacity); then CVSS-BTE of 7.0 or more; then the rest. Within a tier, a higher CVSS-BTE goes first. Each line prints its reason, so the order can be checked and argued with.
"""Step 5: combine CVSS-BTE, KEV, EPSS and asset context into a justified order."""
from scoring import load, score, vectors
TIERS = {1: "act now", 2: "next", 3: "scheduled", 4: "backlog"}
def tier(f, bte):
exposed_or_critical = f["exposure"] == "internet" or f["criticality"] == "high"
if f["kev"] and exposed_or_critical:
return 1, "in KEV, on an internet-facing or critical asset"
if f["kev"]:
return 2, "in KEV, on an internal asset that is not critical"
if f["epss"] >= 0.10:
return 2, "EPSS 0.10 or more (policy threshold), not in KEV"
if bte >= 7.0:
return 3, "CVSS-BTE 7.0 or more, exploitation not reported"
return 4, "CVSS-BTE below 7.0, exploitation not reported"
rows = []
for f in load():
bte = score(vectors(f)[2])[0]
t, why = tier(f, bte)
rows.append((t, -bte, -f["epss"], f, bte, why))
for rank, (t, _, _, f, bte, why) in enumerate(sorted(rows, key=lambda r: r[:3]), 1):
kev = "KEV" if f["kev"] else " "
print(f"{rank}. {f['id']} {f['asset']:<11} BTE {bte:>3} EPSS {f['epss']:<5} {kev}"
f" -> {TIERS[t]}")
print(f" why: {why}").venv/bin/python rank.py1. LAB-2026-0101 vpn-gw-01 BTE 9.3 EPSS 0.91 KEV -> act now
why: in KEV, on an internet-facing or critical asset
2. LAB-2026-0105 web-01 BTE 8.5 EPSS 0.35 KEV -> act now
why: in KEV, on an internet-facing or critical asset
3. LAB-2026-0103 payroll-01 BTE 7.3 EPSS 0.12 -> next
why: EPSS 0.10 or more (policy threshold), not in KEV
4. LAB-2026-0102 test-07 BTE 4.5 EPSS 0.004 -> backlog
why: CVSS-BTE below 7.0, exploitation not reported
5. LAB-2026-0104 wiki-01 BTE 2.0 EPSS 0.02 -> backlog
why: CVSS-BTE below 7.0, exploitation not reportedThe two fixes for this week are the VPN gateway and web-01. The justification you would write for the second one reads: "The flaw needs a local account, so its Base score is lower. It is in KEV, so attackers use it. web-01 faces the internet, and a compromised web application gives an attacker exactly the local foothold this flaw needs." The payroll SQL injection is next: not in KEV, but EPSS gives it a 12% chance of exploitation activity within 30 days, and payroll data is critical. The test harness, first by CVSS-B, is in the backlog, and its reason line says why.
This policy is one simple option. SSVC (Stakeholder-Specific Vulnerability Categorization), from CERT/CC and used by CISA, replaces scores with a decision tree. Its Deployer model asks about Exploitation (none, public PoC, active), System Exposure (small, controlled, open), whether exploitation is Automatable, and the Human Impact, and answers with Defer, Scheduled, Out-of-Cycle or Immediate. Its advantage is that each branch is a question that someone can answer and audit.
06. Step 6: Look up real CVEs in KEV and EPSS
Now enrich the real findings from the scanning lab. CISA publishes the KEV catalogue as CSV and JSON with a JSON schema; each entry has cveID, vendorProject, product, vulnerabilityName, dateAdded, shortDescription, requiredAction, dueDate, knownRansomwareCampaignUse, notes and cwes, and the current schema also has forensicTriage (Yes or No, defined by CISA's BOD 26-04). The script reads CISA's official GitHub copy, which the kev-data repository says is synchronised with cisa.gov within minutes, and queries the FIRST EPSS API. EPSS values change daily, so your numbers will differ.
"""Step 6: look up the real CVEs from the scanning lab in CISA KEV and EPSS."""
import json
import urllib.request
KEV_URL = ("https://raw.githubusercontent.com/cisagov/kev-data/main/"
"known_exploited_vulnerabilities.json")
EPSS_URL = "https://api.first.org/data/v1/epss?cve="
CVES = ["CVE-2023-4911", "CVE-2026-95818", "CVE-2026-107891"]
kev = json.load(urllib.request.urlopen(KEV_URL))
print(f"KEV catalogVersion {kev['catalogVersion']}, {kev['count']} entries")
listed = {v["cveID"]: v for v in kev["vulnerabilities"]}
epss = json.load(urllib.request.urlopen(EPSS_URL + ",".join(CVES)))
scores = {d["cve"]: d for d in epss["data"]}
for cve in CVES:
k, e = listed.get(cve), scores.get(cve)
print(cve)
if k:
print(f" KEV: added {k['dateAdded']}, due {k['dueDate']}, "
f"ransomware use {k['knownRansomwareCampaignUse']}")
else:
print(" KEV: not listed")
if e:
print(f" EPSS: {float(e['epss']):.5f}, percentile {float(e['percentile']):.3f}"
f" (scored {e['date']})").venv/bin/python kev_epss.pyKEV catalogVersion 2026.11.13, 1781 entries
CVE-2023-4911
KEV: added 2023-11-21, due 2023-12-12, ransomware use Unknown
EPSS: 0.63769, percentile 0.992 (scored 2026-11-16)
CVE-2026-95818
KEV: not listed
EPSS: 0.00102, percentile 0.009 (scored 2026-11-16)
CVE-2026-107891
KEV: not listed
EPSS: 0.00549, percentile 0.465 (scored 2026-11-16)CVE-2023-4911 has been in KEV since 21 November 2023 and still has a high EPSS value. Yet the lab showed that your Debian host already runs the fixed package. KEV and EPSS describe the vulnerability; whether you are affected comes from the authenticated scan. Enriching a false positive would put a non-issue at the top of the list. The glibc flaw with no fix has a very low EPSS value and no KEV entry, which supports a time-limited exception rather than an emergency, as the next lesson shows.
07. Common mistakes
08. Check your understanding
09. Apply it
For the skill project:
- Replace
findings.jsonwith the critical and high findings from your lab scan, taking Base vectors from the vendor or NVD record and noting the source of each. - Fetch KEV and EPSS with
kev_epss.py, and store the KEVcatalogVersionand the EPSS score date next to each finding. - Write the Environmental values for each asset with their evidence (for example a firewall rule that makes
MAV:Atrue). - Produce the ranked list with a one-sentence reason per finding and its SLA tier, ready for the next lesson.
10. Review prompt
Without looking back:
- What do the Base, Threat and Environmental groups of CVSS v4.0 each describe, and what does CVSS-BTE tell a reader?
- Why do
E:AandCR:Hleave a CVSS v4.0 score unchanged, and which Environmental metrics can raise a score? - What does an EPSS value of 0.12 mean, and what does it not tell you?
- Why should a finding be confirmed by an authenticated scan before you enrich it with KEV and EPSS?
References
Your progress
Reading state
Sign in to save that you finished reading this lesson.
Prove this skill
8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.