TExcelTAD
Home › Ethical Hacking & Penetration Testing Methodology › CVSS v4.0: Macrovectors and Nomenclature

CVSS v4.0: Macrovectors and Nomenclature

CVSS v3.1's formula is easy to compute and has known weaknesses: scores cluster at the top (a large share of published CVEs are 7.5 or 9.8), "Scope" was hard to apply consistently, the temporal metrics were rarely used, and the score said little about whether exploitation was likely. CVSS v4.0, published by FIRST in November 2023, changes both the metrics and the way the score is computed. There is no closed formula any more: a vector is reduced to a macrovector of six equivalence classes, the score comes from a table built by expert ranking, and the vector's position inside its class adjusts it slightly. This lesson explains the new metrics, computes the macrovector in Python, and shows how to write v4.0 scores in a report.

What changed in the metrics

Group v4.0 metrics Compared with v3.1
Base: exploitability Attack Vector AV (N/A/L/P), Attack Complexity AC (L/H), Attack Requirements AT (N/P), Privileges Required PR (N/L/H), User Interaction UI (N/Passive/Active) AT takes conditions such as race conditions or a specific deployment out of AC; UI distinguishes a victim who just views something from one who must act
Base: impact Vulnerable system VC, VI, VA and subsequent systems SC, SI, SA (H/L/N) replaces Scope: the impact on the vulnerable component and on what lies beyond it are scored separately
Threat Exploit Maturity E (Attacked A / PoC P / Unreported U, default X treated as A) replaces the three temporal metrics with one; the default assumes the worst
Environmental security requirements CR, IR, AR and modified base metrics (MAV… MSI, MSA, where MSI/MSA add S: Safety) as in v3.1, plus safety impact on subsequent systems
Supplemental Safety S, Automatable AU, Recovery R, Value Density V, Vulnerability Response Effort RE, Provider Urgency U new; they don't change the score, they carry information for decisions

Nomenclature: say which score you mean

v4.0 names the score by the metric groups that were filled in:

Name Groups used Typical source
CVSS-B base only the vendor or the NVD
CVSS-BT base and threat a threat-intelligence-aware scanner
CVSS-BE base and environmental the client's own assessment
CVSS-BTE all three the most complete score for a finding in a test

A report writes the name, the score from FIRST's calculator and the vector, for example "CVSS-B 7.1 (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N)"; once the tester adds E:P and CR:H, the same finding is quoted as a CVSS-BTE with its own, lower score (E:P moves EQ5 from 0 to 1). The name prevents the common confusion of comparing a vendor's CVSS-B with a tester's environmental score.

From vector to macrovector

The score is computed in three steps:

  1. The vector is reduced to six equivalence classes, EQ1 to EQ6, each a small number. Together they form the macrovector, such as 000200.
  2. A lookup table (published with the specification and FIRST's calculator) gives the score of the highest-severity vector in that macrovector. The table came from experts ranking representative vectors against each other.
  3. The score is lowered within the class according to how far the actual vector is from the class's highest-severity vector, using severity distances per EQ. This step needs the specification's reference data; use FIRST's calculator or its published reference implementation rather than writing your own.

Step 1 is simple and is what makes v4.0 understandable. The equivalence classes:

EQ Metrics Levels
EQ1 AV, PR, UI 0: AV:N and PR:N and UI:N; 1: at least one of them, not all three, and not AV:P; 2: AV:P, or none of the three
EQ2 AC, AT 0: AC:L and AT:N; 1: otherwise
EQ3 VC, VI, VA 0: VC:H and VI:H; 1: not both, but one of VC, VI, VA is H; 2: none is H
EQ4 SC, SI, SA (with MSI, MSA) 0: MSI:S or MSA:S (safety); 1: one of SC, SI, SA is H; 2: none is H
EQ5 E 0: E:A (or not defined); 1: E:P; 2: E:U
EQ6 CR+VC, IR+VI, AR+VA 0: any requirement H paired with an H impact (CR:H and VC:H, …; undefined requirements count as H); 1: otherwise
python · try it yourself
def macrovector(vector):
    head, *parts = vector.split("/")
    assert head == "CVSS:4.0", "not a CVSS:4.0 vector"
    m = dict(p.split(":") for p in parts)
    g = lambda k, default="X": m.get(k, default)
    # modified metrics override base metrics in the environmental group
    eff = {k: (g("M" + k) if g("M" + k) != "X" else g(k)) for k in ["AV", "AC", "AT", "PR", "UI", "VC", "VI", "VA", "SC"]}
    si, sa = g("MSI") if g("MSI") != "X" else g("SI"), g("MSA") if g("MSA") != "X" else g("SA")
    av, pr, ui = eff["AV"], eff["PR"], eff["UI"]
    if av == "N" and pr == "N" and ui == "N":
        eq1 = 0
    elif (av == "N" or pr == "N" or ui == "N") and av != "P":
        eq1 = 1
    else:
        eq1 = 2
    eq2 = 0 if eff["AC"] == "L" and eff["AT"] == "N" else 1
    vc, vi, va = eff["VC"], eff["VI"], eff["VA"]
    eq3 = 0 if vc == "H" and vi == "H" else 1 if "H" in (vc, vi, va) else 2
    eq4 = 0 if "S" in (si, sa) else 1 if "H" in (eff["SC"], si, sa) else 2
    eq5 = {"X": 0, "A": 0, "P": 1, "U": 2}[g("E")]
    req = lambda k: "H" if g(k) == "X" else g(k)
    eq6 = 0 if (req("CR") == "H" and vc == "H") or (req("IR") == "H" and vi == "H") or (req("AR") == "H" and va == "H") else 1
    return f"{eq1}{eq2}{eq3}{eq4}{eq5}{eq6}"

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"
cases = {
    "unauthenticated RCE":            base,
    "same, exploit unreported (E:U)": base + "/E:U",
    "same, needs a race (AT:P)":      base.replace("AT:N", "AT:P"),
    "stored XSS, victim must act":    "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
    "local privesc, low user":        "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",
    "PLC crash, safety impact":       "CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H/MSA:S",
    "data leak, low-value asset":     "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/CR:L",
}
for name, v in cases.items():
    print(f"{macrovector(v)}  {name}")
000200  unauthenticated RCE
000220  same, exploit unreported (E:U)
010200  same, needs a race (AT:P)
102201  stored XSS, victim must act
100200  local privesc, low user
101000  PLC crash, safety impact
001201  data leak, low-value asset

Read the macrovectors as a severity profile. 000200 is the class of the classic unauthenticated remote code execution with no impact beyond the system; FIRST's calculator scores that vector 9.3 (where v3.1 said 9.8). Saying the exploit is unreported moves only EQ5 (000220), and needing a race condition only EQ2 (010200): each is one step down in one dimension. The XSS lands in 102201: one of AV/PR/UI is not at its worst, no high impact on the vulnerable system, only low impact on subsequent systems (the users' browsers), the E default, and no high requirement paired with a high impact. The local privilege escalation (100200) differs from the RCE only in EQ1. The PLC row shows the new safety level: MSA:S puts EQ4 at 0, the most severe value, whatever else happens. The last row shows the environment at work: CR:L on a low-value asset sets EQ6 to 1.

Using v4.0 in a test report

  • Score the finding, not the CVE. For a vulnerability with a public CVE, quote the vendor's or NVD's CVSS-B, then give your CVSS-BTE for this environment with the vector.
  • Fill E honestly. Leaving it undefined means "assume attacked", the worst case. If you know there is no public exploit, E:U lowers the score; if it is in the KEV catalog, E:A.
  • Use supplemental metrics as words. AU:Y (automatable, wormable) and R:I (irrecoverable) are exactly what an executive summary needs, and they don't distort the score.
  • Compute with FIRST's calculator or a library that implements the reference algorithm, and paste the vector. Never type a v4.0 score from memory.

How scoring errors are detected and avoided

Reviewers recompute vectors with the official calculator and compare like findings for consistency. Most errors come from v3.1 habits: inventing a "Scope" (v4.0 has none: score SC/SI/SA instead), putting race conditions in AC (they belong in AT), and forgetting that an undefined E is treated as A. A team style guide with five worked vectors prevents most of them.

Pitfalls

  • Comparing v3.1 and v4.0 numbers. The same vulnerability gets different scores (9.8 against 9.3 above); sort findings only within one version.
  • Treating the macrovector score as exact. It comes from expert ranking, which is a feature (it matches human judgement better) and a limit (small differences mean little).
  • CVSS as the whole priority. v4.0's threat metric helps, but asset value and exposure still come from the prioritisation step.

Practice

  1. Compute the macrovector for CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (an attacker with physical access to a kiosk). Which EQ changed from the RCE case?
  2. A web finding lets any logged-in user read every other user's invoices. Write a CVSS v4.0 base vector for it.
Answers
  1. 200200: EQ1 jumps to 2 because AV:P puts it in the lowest exploitability class, even though PR and UI are N.
  2. CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N: network, simple, no special requirements, an ordinary account, no victim action, high confidentiality impact on the application, nothing beyond it. Macrovector 101200 with E undefined; get the score from FIRST's calculator.

Test yourself

Which v3.1 concept does v4.0 replace with separate vulnerable-system and subsequent-system impacts?

  1. Attack Vector
  2. Scope
  3. User Interaction
  4. Privileges Required

What is CVSS-BTE?

  1. A v3.1 temporal score
  2. A v4.0 score using base, threat and environmental metrics
  3. A vendor's base score
  4. A score without impact metrics

In v4.0, where does a race condition the attacker must win belong?

  1. AC:H
  2. AT:P (Attack Requirements: Present)
  3. UI:A
  4. E:P

What happens to a v4.0 score if Exploit Maturity is left undefined?

  1. It is treated as Unreported, lowering the score
  2. It is treated as Attacked, the worst case
  3. The score can't be computed
  4. It is ignored

Which statement about supplemental metrics (Automatable, Recovery, Safety…) is true?

  1. They raise the score
  2. They don't change the score; they add context for decisions
  3. They replace the base score
  4. They are required