security,

CVSS Cheat Sheet: Scoring Vulnerabilities with v3.1 and v4.0

Every CVSS metric on one page: what each value means, a concrete example for each, the differences between v3.1 and v4.0, and how to score a vulnerability you just found.

The Common Vulnerability Scoring System (CVSS), maintained by FIRST, turns the technical characteristics of a vulnerability into a number from 0.0 to 10.0. The number is only a summary. The real result is the vector string, which records every decision you made:

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H            → 9.8 Critical
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 → 9.3 Critical

Both lines describe the same unauthenticated SQL injection that gives full database access. This page is a reference: one table per metric, an example for every value, and the differences between the two versions.

CVSS measures severity, not risk. A 9.8 on an isolated test box can matter less than a 6.5 on your payment API. Environmental metrics, exploit intelligence and business context turn severity into risk.

Severity ratings

Identical in v3.1 and v4.0.

ScoreRating
0.0None
0.1 – 3.9Low
4.0 – 6.9Medium
7.0 – 8.9High
9.0 – 10.0Critical

Metric groups at a glance

CVSS v3.1
AV AC PR UI S C I A E RL RC
CVSS v4.0
AV AC AT PR UI VC VI VA SC SI SA E
The base metrics describe the vulnerability itself. The second group adjusts for exploit maturity; v4.0 keeps only Exploit Maturity from it. Environmental metrics (not shown) exist in both versions.
Groupv3.1v4.0Who sets it
BaseExploitability + Scope + ImpactExploitability + Vulnerable / Subsequent system impactVendor or finder
Temporal / ThreatE, RL, RCE onlyVendor, threat intel
EnvironmentalCR, IR, AR + modified base metricsCR, IR, AR + modified base metricsThe organisation that runs the system
SupplementalnoneS, AU, R, V, RE, U (no effect on the score)Vendor or consumer

CVSS v3.1 base metrics

Attack Vector (AV): where must the attacker be?

ValueMeaningExample
Network (N)Exploitable remotely, across routersSQL injection in a public web app
Adjacent (A)Same broadcast domain, Bluetooth, Wi-Fi, local VPN segmentBug in a Wi-Fi driver; LAN-only discovery service such as mDNS
Local (L)Needs a local session, or a user opens a filePrivilege escalation via a writable service binary; malicious PDF
Physical (P)Must touch the deviceDMA attack through Thunderbolt; exploit via a USB port

Attack Complexity (AC): conditions outside the attacker’s control

ValueMeaningExample
Low (L)Works reliably, every timeClassic SQLi, IDOR
High (H)Needs a race, a MitM position, or target-specific information firstRace condition in a token check; attack that needs a leaked internal hostname

Privileges Required (PR): what account do you need?

ValueMeaningExample
None (N)UnauthenticatedLogin form injection
Low (L)Normal user accountIDOR as a logged-in customer
High (H)Admin or equivalentRCE in an admin-only upload feature

User Interaction (UI)

ValueMeaningExample
None (N)No victim action neededUnauthenticated API bug
Required (R)A victim must click, open or browseReflected XSS, CSRF, malicious document

Scope (S): does the impact cross a security boundary?

ValueMeaningExample
Unchanged (U)Impact stays in the vulnerable componentSQLi reads the app’s own database
Changed (C)Impact reaches a component with a different security authorityXSS: bug in the web app, code runs in the victim’s browser. VM escape. SSRF into the cloud metadata service

Scope is the most argued-about metric in v3.1. Ask: “Is the thing I attack the same thing that gets hurt?” If not, Scope is Changed.

Impact: Confidentiality (C), Integrity (I), Availability (A)

Rate each one separately, using the reasonable worst case.

ValueConfidentialityIntegrityAvailability
High (H)Read all data, or critical data like credentials and keysModify any data, or data with serious consequencesFull outage, or the attacker can deny service at will
Low (L)Some data, attacker cannot choose whichSome data can be modified, limited consequencesDegraded performance, partial outage
None (N)NothingNothingNothing

v3.1 examples

FindingVectorScore
Unauthenticated SQLi, full DBAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H9.8 Critical
Log4Shell (CVE-2021-44228), as scored by NVDAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H10.0 Critical
SSRF reading cloud metadata credentialsAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N8.6 High
RCE as admin onlyAV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H7.2 High
Local privilege escalation to SYSTEMAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H7.8 High
Unauthenticated crash of the serviceAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H7.5 High
IDOR: read other customers’ invoicesAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N6.5 Medium
CSRF: change the victim’s emailAV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N6.5 Medium
Reflected XSSAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N6.1 Medium
Stored XSS, needs a user accountAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N5.4 Medium
Version disclosure in a headerAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N5.3 Medium

v3.1 temporal metrics

Optional. They can only lower the score. Not Defined (X) counts as the worst case.

MetricValues (high to low)Example
Exploit Code Maturity (E)High (H), Functional (F), Proof-of-Concept (P), Unproven (U)Public Metasploit module = H; PoC on GitHub = P
Remediation Level (RL)Unavailable (U), Workaround (W), Temporary Fix (T), Official Fix (O)Vendor patch released = O
Report Confidence (RC)Confirmed (C), Reasonable (R), Unknown (U)You exploited it yourself = C

CVSS v4.0 base metrics

AV, PR and the C/I/A values (High, Low, None) work like v3.1. What changed:

Attack Complexity (AC): now only about security measures

ValueMeaningExample
Low (L)No protection to bypassPlain SQLi
High (H)Attacker must defeat an active defence, e.g. ASLR or DEP, or needs a secret firstMemory corruption that needs an ASLR bypass via an info leak

Attack Requirements (AT): new, deployment conditions

ValueMeaningExample
None (N)Works on any vulnerable deploymentDefault configuration is exploitable
Present (P)Needs a race to be won, or a network position such as MitMRace condition in a token check; attack on traffic between client and server

In v3.1 both cases were AC:H. v4.0 splits “the target has defences” (AC) from “the attack only works under certain conditions” (AT). A vulnerable non-default configuration is not AT:P: you score the configuration that is vulnerable.

User Interaction (UI): now three levels

ValueMeaningExample
None (N)No victim actionUnauthenticated API bug
Passive (P)Victim only does normal things, without consciously helpingStored XSS that fires when a user views a page; CSRF
Active (A)Victim must take a specific, conscious actionReflected XSS link that must be clicked; import a malicious file; ignore a warning

Impact: Vulnerable system vs. Subsequent system

Scope is gone. Instead, you rate impact twice:

MetricsMeaning
VC, VI, VAImpact on the vulnerable system itself
SC, SI, SAImpact on subsequent systems: anything beyond it, such as the user’s browser, the hypervisor host, a cloud account or downstream services

Example, stored XSS: the web app itself loses nothing (VC:N/VI:N/VA:N), but the victim’s browser session does (SC:L/SI:L/SA:N).

v4.0 examples

FindingVector (after CVSS:4.0/)Score
Unauthenticated SQLi, full DBAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N9.3 Critical
Same, but the attacker must win a raceAV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N9.2 Critical
Unauthenticated crash of the serviceAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N8.7 High
Local privilege escalation to SYSTEMAV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N8.5 High
SSRF reading cloud metadata credentialsAV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N7.7 High
IDOR: read other customers’ invoicesAV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N7.1 High
CSRF: change the victim’s emailAV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N7.1 High
Stored XSS, needs a user accountAV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N5.1 Medium
Reflected XSSAV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N5.1 Medium

v4.0 threat metric

Exploit Maturity (E)MeaningSQLi example above
Attacked (A)Exploited in the wild, or tooling is public (e.g. listed in CISA KEV)9.3
POC (P)Public proof of concept, no known attacks8.9
Unreported (U)No public PoC or exploitation known8.1
Not Defined (X)Treated as Attacked9.3

v4.0 supplemental metrics

Extra context for the consumer. They never change the score.

MetricValuesExample
Safety (S)Negligible, PresentBug in an infusion pump can hurt people
Automatable (AU)No, YesWormable: all attack steps can be scripted at scale
Recovery (R)Automatic, User, IrrecoverableBricked firmware = Irrecoverable
Value Density (V)Diffuse, ConcentratedMail server with thousands of mailboxes = Concentrated
Vulnerability Response Effort (RE)Low, Moderate, HighFix needs a hardware replacement = High
Provider Urgency (U)Clear, Green, Amber, RedVendor’s own urgency rating

Environmental metrics (both versions)

These belong to the organisation that runs the system, not to the vendor.

  • Security requirements CR / IR / AR (High, Medium, Low): how much confidentiality, integrity and availability matter for this asset. A public marketing site: CR:L. A payment database: CR:H, IR:H.
  • Modified base metrics (MAV, MAC, MPR … in v3.1; MAV, MAC, MAT, MVC, MSC … in v4.0): override a base value where your deployment differs. Example: the vulnerable admin panel is only reachable from the internal network, so MAV:A.
  • v4.0 only: MSI:S and MSA:S (Safety) mark that integrity or availability loss on a subsequent system can injure people.

Same SQLi, scored for an internal app that only holds test data, with a public PoC and (v3.1) a vendor patch:

CVSS:3.1/…base…/E:P/RL:O/RC:C/CR:L/IR:L/AR:L/MAV:A   → 6.2 Medium (base 9.8)
CVSS:4.0/…base…/E:P/CR:L/IR:L/AR:L/MAV:A             → 6.2 Medium (base 9.3)

v3.1 vs. v4.0: the differences

Topicv3.1 (2019)v4.0 (Nov 2023)
ScopeS:U / S:C, often disputedRemoved; replaced by separate vulnerable (VC/VI/VA) and subsequent (SC/SI/SA) impact
Attack ComplexityOne metric mixes defences and preconditionsSplit into AC (defences such as ASLR) and new AT (deployment preconditions, races)
User InteractionNone / RequiredNone / Passive / Active
Temporal → ThreatE, RL, RCOnly E (Attacked, POC, Unreported); RL and RC removed
Default if not setX = worst caseX = worst case (E:X = Attacked)
Supplemental metricsnoneSafety, Automatable, Recovery, Value Density, Response Effort, Provider Urgency
NamingBase, temporal and environmental scoreNames state what was used: CVSS-B, CVSS-BT, CVSS-BE, CVSS-BTE
CalculationFormula with weightsLookup of “macro vectors” (equivalence classes) built from expert rankings
ScoresMany web bugs cluster at 9.8 / 7.5 / 6.1Different values for the same bug, e.g. reflected XSS 6.1 → 5.1, unauthenticated DoS 7.5 → 8.7. Never compare scores across versions
OT / IoTNo safety conceptSafety in supplemental and environmental metrics

Both versions are in use. NVD and many vendors publish v3.1, and more and more also v4.0 vectors. Always write the version prefix (CVSS:3.1/ or CVSS:4.0/): the same letters mean different things.

Scoring a vulnerability you found

  1. Pick one version per report and state it. v4.0 is current; v3.1 is still what most scanners and many clients expect.
  2. Score the vulnerability, not the chain. Each finding gets its own vector. If you chain findings, describe the chain and score it as an additional finding.
  3. Base metrics from facts you verified. Ask the questions in order:
    • Where must I be? → AV
    • Did I need to bypass a defence or win a race? → AC / AT
    • Which account did I use? → PR
    • Did a victim have to do something? → UI
    • What could I read, change, or break, and on which system? → C/I/A (v3.1 plus S), VC/VI/VA and SC/SI/SA (v4.0)
  4. Use the lowest privileges and the reasonable worst-case impact you can justify. Do not score what might be possible after three more bugs.
  5. Add exploit maturity if you know it: public exploit, PoC, nothing.
  6. Add environmental metrics if you know the client’s asset. Otherwise leave them out and say so: the client’s risk team can add them.
  7. Publish the vector, not just the number. The vector makes your reasoning reviewable and lets the client re-score with their context.

Common mistakes:

  • PR:N for a bug that needs a free self-registration account. Any account is PR:L.
  • S:C (v3.1) for every bug that “leads somewhere”. Only when the impacted component has a different security authority.
  • Rating C, I and A all High by reflex. A read-only IDOR has no integrity or availability impact.
  • Treating the score as a priority list. Combine it with exploit data (CISA KEV, EPSS) and asset value.

Calculators and specs

§ home
~/knubertus/home/
1,1 Top