Calculators.Life Calculator
Engineering

CVSS v3.1 Calculator

Input Parameters

Scenarios
Reflects the context by which vulnerability exploitation is possible.
Describes the conditions beyond the attacker's control that must exist to exploit the vulnerability.
Describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.
Captures the requirement for a human user, other than the attacker, to participate in the compromise.
Captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope.
Measures the impact to the confidentiality of the information resources managed by the software component.
Measures the impact to integrity of a successfully exploited vulnerability.
Measures the impact to the availability of the impacted component.

Computed Results

CVSS v3.1 Base Score
9.8
Severity RatingCritical
Impact Sub-score5.9
Exploitability Sub-score3.9
Vector StringCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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).

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).

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):

ISS = 1 − ((1 − C) × (1 − I) × (1 − A))

The final Impact score depends on whether the Scope (S) is Unchanged (U) or Changed (C):

The Exploitability sub-score is calculated using Attack Vector (AV), Attack Complexity (AC), Privileges Required (PR), and User Interaction (UI):

Exploitability = 8.22 × AV × AC × PR × 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:

  1. Select Exploitability Metrics: Choose the appropriate Attack Vector, Attack Complexity, Privileges Required, and User Interaction based on how the vulnerability is exploited.
  2. Determine Scope: Select whether the vulnerability allows an attacker to impact resources beyond the vulnerable component's security scope.
  3. Select Impact Metrics: Evaluate the worst-case impact to Confidentiality, Integrity, and Availability if the vulnerability is successfully exploited.
  4. 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

MetricTypeDescription
Attack Vector (AV)InputReflects the context by which vulnerability exploitation is possible (Network, Adjacent, Local, Physical).
Attack Complexity (AC)InputDescribes conditions beyond the attacker's control required to exploit the vulnerability (Low, High).
Privileges Required (PR)InputThe level of privileges an attacker must possess before successfully exploiting the vulnerability (None, Low, High).
User Interaction (UI)InputCaptures the requirement for a human user to participate in the compromise (None, Required).
Scope (S)InputCaptures whether a vulnerability in one component impacts resources beyond its security scope (Unchanged, Changed).
Confidentiality (C), Integrity (I), Availability (A)InputMeasures the impact to the respective information resources (None, Low, High).
CVSS v3.1 Base ScoreOutputThe overall numerical score ranging from 0.0 to 10.0.
Severity RatingOutputThe qualitative rating (None, Low, Medium, High, Critical) based on the base score.
Vector StringOutputA 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.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.