CVSS v3.1 Calculator
Input Parameters
Computed Results
The CVSS v3.1 calculator determines the severity of software vulnerabilities by generating a standardized base score and vector string. It helps security professionals assess the impact and exploitability of a flaw based on attack vectors, required privileges, and potential consequences to confidentiality, integrity, and availability.
Verified Scenario Walkthroughs
Understanding how different vulnerability characteristics affect the final score can help you accurately classify security flaws. Here are examples based on common vulnerability profiles.
Typical Web Application Cross-Site Scripting
Consider a standard cross-site scripting (XSS) vulnerability where an attacker can execute scripts in a user's browser. The attack occurs over the network (Attack Vector: N) with low complexity (Attack Complexity: L). It requires low privileges (Privileges Required: L) and user interaction (User Interaction: R). The scope remains unchanged (Scope: U), and it has a low impact on confidentiality and integrity (Confidentiality: L, Integrity: L), with no impact on availability (Availability: N).
- Base Score: 4.6
- Severity Rating: Medium
- Impact Sub-score: 2.5
- Exploitability Sub-score: 2.1
- Vector String: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Critical Remote Code Execution with Scope Change
A severe vulnerability allows an unauthenticated attacker to execute arbitrary code over the network and compromise the underlying host system. The attack vector is network (N), complexity is low (L), no privileges are required (N), and no user interaction is needed (N). Because the vulnerability allows the attacker to impact a component beyond the vulnerable application, the scope is changed (C). The impact on confidentiality, integrity, and availability is high (H).
- Base Score: 10
- Severity Rating: Critical
- Impact Sub-score: 6
- Exploitability Sub-score: 3.9
- Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Formula and Calculation Method
The CVSS v3.1 base score is derived from two primary sub-scores: Exploitability and Impact. The calculation assigns specific numerical weights to each metric.
First, the Impact Sub-Score (ISS) is calculated based on Confidentiality (C), Integrity (I), and Availability (A):
The final Impact score depends on whether the Scope (S) is Unchanged (U) or Changed (C):
- Scope Unchanged: Impact = 6.42 × ISS
- Scope Changed: Impact = 7.52 × (ISS − 0.029) − 3.25 × (ISS − 0.02)¹⁵
The Exploitability sub-score is calculated using Attack Vector (AV), Attack Complexity (AC), Privileges Required (PR), and User Interaction (UI):
The Base Score is then calculated by combining Impact and Exploitability, applying a specific roundup function, and capping the maximum score at 10.0. If the Impact is 0, the Base Score is 0.
How to Use the Calculator
Follow these steps to generate a CVSS v3.1 score for a vulnerability:
- Select Exploitability Metrics: Choose the appropriate Attack Vector, Attack Complexity, Privileges Required, and User Interaction based on how the vulnerability is exploited.
- Determine Scope: Select whether the vulnerability allows an attacker to impact resources beyond the vulnerable component's security scope.
- Select Impact Metrics: Evaluate the worst-case impact to Confidentiality, Integrity, and Availability if the vulnerability is successfully exploited.
- Review Results: The calculator will instantly display the Base Score, Severity Rating, Impact and Exploitability sub-scores, and the standardized Vector String.
Inputs and Outputs Reference
| Metric | Type | Description |
|---|---|---|
| Attack Vector (AV) | Input | Reflects the context by which vulnerability exploitation is possible (Network, Adjacent, Local, Physical). |
| Attack Complexity (AC) | Input | Describes conditions beyond the attacker's control required to exploit the vulnerability (Low, High). |
| Privileges Required (PR) | Input | The level of privileges an attacker must possess before successfully exploiting the vulnerability (None, Low, High). |
| User Interaction (UI) | Input | Captures the requirement for a human user to participate in the compromise (None, Required). |
| Scope (S) | Input | Captures whether a vulnerability in one component impacts resources beyond its security scope (Unchanged, Changed). |
| Confidentiality (C), Integrity (I), Availability (A) | Input | Measures the impact to the respective information resources (None, Low, High). |
| CVSS v3.1 Base Score | Output | The overall numerical score ranging from 0.0 to 10.0. |
| Severity Rating | Output | The qualitative rating (None, Low, Medium, High, Critical) based on the base score. |
| Vector String | Output | A standardized text representation of the selected metrics used for sharing vulnerability data. |
Practical Use Cases
The CVSS v3.1 calculator is widely used in vulnerability management and incident response. Security analysts use it to prioritize patching efforts by objectively scoring newly discovered flaws. Penetration testers and bug bounty hunters use the calculator to assign severity ratings to their findings, ensuring that reports include a standardized vector string for easy verification by the receiving organization.
Frequently Asked Questions
What is the difference between the Impact and Exploitability sub-scores?
The Exploitability sub-score measures how easily a vulnerability can be attacked, factoring in the attack vector, complexity, required privileges, and user interaction. The Impact sub-score measures the direct consequences of a successful exploit on the confidentiality, integrity, and availability of the affected system.
How does a scope change affect the CVSS base score?
A scope change occurs when a vulnerability in one component allows an attacker to impact resources in a separate component (e.g., escaping a virtual machine to attack the host). When the scope is changed, the impact calculation uses a different formula that generally results in a higher overall base score.
What are the CVSS v3.1 severity rating thresholds?
The severity ratings are categorized by the base score: 0.0 is None, 0.1 to 3.9 is Low, 4.0 to 6.9 is Medium, 7.0 to 8.9 is High, and 9.0 to 10.0 is Critical.