CCyberwiki

Common Vulnerability Scoring System

The Common Vulnerability Scoring System (CVSS) is an open standard for describing the characteristics of a software vulnerability and rating its severity as a number from 0.0 to 10.0.1 Each score is published together with a vector string, a compact text that lists the value chosen for every metric, so that a reader can see how the number was reached. The standard is maintained by the CVSS Special Interest Group (SIG) of FIRST, the Forum of Incident Response and Security Teams. The current version, 4.0, was released in November 2023.2 Scores are published with Common Vulnerabilities and Exposures entries in the National Vulnerability Database (NVD) and in package advisories.3

History

The first version was not put through wide peer review, and feedback after it went into production use showed significant problems. The SIG worked on version 2 from April 2005 until its release in June 2007, scoring old and new vulnerabilities side by side, and statisticians from the US National Institute of Standards and Technology (NIST) reviewed its formulas.4 Version 3.1 used three metric groups (Base, Temporal and Environmental) and a Scope metric, which recorded whether a flaw in one component affects resources beyond it.5

Version 4.0 renamed the Temporal group to Threat, dropped two of its metrics, split the old Attack Complexity metric into two, and replaced Scope with separate impact values for the vulnerable system and for subsequent systems.6

Metric groups

CVSS 4.0 has four metric groups.1

  • Base metrics describe the vulnerability itself, which stays the same over time and across installations. They assume the reasonable worst-case impact.
  • Threat metrics describe what changes over time, chiefly whether proof-of-concept exploit code exists or attacks have been seen.
  • Environmental metrics adapt the score to one organization: the mitigations it has in place and how important the affected system is to it.
  • Supplemental metrics add context, such as whether exploitation can be automated across many targets, and never change the score.

The vendor or maintainer of the affected product, or a third party acting for it, sets the Base metrics. Threat and Environmental values are set by the organization that uses the product, which alone has that information.1 The specification names each score by the groups used to produce it: CVSS-B for Base only, then CVSS-BT, CVSS-BE and CVSS-BTE. Product maintainers and the NVD usually publish CVSS-B scores.1

Base metrics

Analysts assess the Base metrics on the assumption that the attacker knows the vulnerability in full.1

Table 1. Base metrics in CVSS 4.0
MetricValuesWhat it records
Attack Vector (AV)N, A, L, PHow the attacker reaches the flaw: over the network (up to the whole internet), from an adjacent network, locally, or by touching the device
Attack Complexity (AC)L, HWhether the attacker must defeat built-in security measures
Attack Requirements (AT)N, PWhether the attack depends on particular conditions in how the system is deployed or running
Privileges Required (PR)N, L, HThe access the attacker needs beforehand; None means no sign-in
User Interaction (UI)N, P, AWhether another person must take part, passively or actively
VC, VI, VAH, L, NLoss of confidentiality, integrity and availability in the vulnerable system
SC, SI, SAH, L, NThe same losses in subsequent systems beyond it

Scoring

When the Threat and Environmental metrics are left unset, CVSS 4.0 fills them with defaults that assume the highest severity. Exploit Maturity, for example, counts as Attacked unless threat intelligence shows otherwise.1 Setting it to Unreported, after confirming that no exploit code or attack reports exist, lowers the score.

To calculate version 4.0 scores, the SIG grouped about 15 million possible metric combinations into 270 sets of comparable severity, asked experts to compare the sets, ordered them with the Elo rating method, and fitted the ordered sets into the 101 possible scores from 0.0 to 10.0.6 The specification calls these sets MacroVectors: a lookup table gives each MacroVector its score, and a vector inside a set gets a score interpolated from it.1

Severity ratings

The specification offers an optional mapping from a score to a word.1

Table 2. Qualitative severity rating scale
RatingScore
None0.0
Low0.1 to 3.9
Medium4.0 to 6.9
High7.0 to 8.9
Critical9.0 to 10.0

The GitHub Advisory Database labels each advisory Low, Medium (also shown as Moderate), High or Critical on this scale and supports CVSS 3.1 and 4.0 scores.3 Scanners turn these ratings into their own levels, described in Severity levels.

Vector string

FIRST requires anyone who publishes a CVSS score to publish the vector string with it.1 A version 4.0 vector starts with CVSS:4.0, followed by metric and value pairs in a fixed order, separated by slashes. The specification gives this example:

CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

It describes a flaw reachable over the network with low complexity and no special conditions, which needs high privileges and no help from a user, and causes a low loss of confidentiality and integrity in the vulnerable system only. Adding /E:A records that attacks have been reported. A vector without the prefix, with a mandatory metric missing, or with the metrics out of order is invalid.1

The Log4j logging library vulnerability CVE-2021-44228, known as Log4Shell, let an attacker run code loaded from an LDAP server by controlling text that the application logged. Its record on the Apache Log4j security page reads 10.0 CRITICAL (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H): network access, low complexity, no privileges, no user interaction, Scope Changed (the impact reaches beyond the vulnerable component) and high impact on all three properties.7

Limits

The version 4.0 user guide warns that a Base score measures severity and "should not be used alone to assess risk".6 The Threat group was expanded in answer to concerns that many Base scores are too high.6 Matters such as regulatory requirements, the number of customers affected and the money lost in a breach are outside the scope of CVSS.1

A published score is usually CVSS-B: the worst reasonable case for any installation, before the reader's own Threat and Environmental values are applied. The Exploit Prediction Scoring System, also run by FIRST, measures likelihood instead: it estimates the probability that a CVE will be exploited in the next 30 days, and FIRST publishes guidance on combining it with CVSS and the Known Exploited Vulnerabilities catalog.8 The type of weakness behind a vulnerability is classified separately, in Common Weakness Enumeration.

In SecFlash

For a package with a published vulnerability, SecFlash takes the severity from the advisory's CVSS score: 7.0 or higher is shown as critical, 4.0 to 6.9 as medium, lower scores as info, and an advisory without a score as medium. It applies this to SF-SEC-701 on the Security page and to SF-THR-101, SF-THR-102 and SF-THR-103 on the Threats page.

See also

References

  1. a b c d e f g h i j k FIRST (November 2023). "Common Vulnerability Scoring System Version 4.0: Specification Document". FIRST.
  2. back FIRST. "Common Vulnerability Scoring System SIG". FIRST.
  3. a b GitHub. "About the GitHub Advisory database". GitHub Docs.
  4. back Reid, Gavin; Mell, Peter; Scarfone, Karen (13 June 2007). "CVSS v2 History". FIRST.
  5. back FIRST. "Common Vulnerability Scoring System v3.1: Specification Document". FIRST.
  6. a b c d FIRST. "Common Vulnerability Scoring System Version 4.0: User Guide" (document version 1.2). FIRST.
  7. back Apache Software Foundation. "Security". Apache Logging Services.
  8. back FIRST. "Exploit Prediction Scoring System (EPSS)". FIRST.