DevTools Logo

CVSS Calculator

CVSS Calculator

Build CVSS 3.1 and 4.0 vectors with exact scores, severity bands and a plain-English breakdown — entirely in your browser.

Runs in your browser
Base · Temporal · Environmental
Try an example

Vector builder

CVSS 3.1 · 8 base metrics

Numbers beside an option show the score change if you pick it. Hover an option for the FIRST definition.

Base metrics

Attack Vector

Attack Complexity

Privileges Required

User Interaction

Scope

Confidentiality

Integrity

Availability

Temporal metrics

Exploit Code Maturity

Remediation Level

Report Confidence

Environmental metrics

Confidentiality Requirement

Integrity Requirement

Availability Requirement

Modified Attack Vector

Modified Attack Complexity

Modified Privileges Required

Modified User Interaction

Modified Scope

Modified Confidentiality

Modified Integrity

Modified Availability

Score & explanation

Base metrics incomplete

CVSS 3.1 score

0.0

None

Canonical vector

CVSS:3.1

Examples

Unauthenticated remote code execution

Input
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Output
9.8 Critical · CVSS-B

The canonical worst-case Base vector for an unchanged-scope vulnerability, matching FIRST's published example.

Scope changed with user interaction

Input
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Output
6.1 Medium · CVSS-B

Scope Changed uses the 7.52 impact formula and 1.08 multiplier; the breakdown shows both impact terms.

Threat-adjusted CVSS 4.0

Input
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Output
5.2 Medium · CVSS-BT

Unreported exploitation lowers the 7.7 Base score; paste the vector to see the Threat group decoded.

About this tool

A CVSS score summarises the technical severity of a vulnerability in one number between 0.0 and 10.0, together with a compact vector string that records every input. This calculator lets you build that vector from the official FIRST metric menus in both CVSS 3.1 and CVSS 4.0, then shows the score, the qualitative severity band and a plain-English explanation of each choice as you work.

The 3.1 engine follows the published equations exactly: the AV/AC/PR/UI and C/I/A weight tables, the separate Scope Unchanged and Scope Changed impact branches, the 1.08 multiplier, the cap at 10, and the integer-normalised Roundup from the specification appendix. Temporal and Environmental metrics are supported too, with the Modified Impact Sub-Score and requirement weights from §7.3. The breakdown panel exposes ISS, Impact and Exploitability so the arithmetic stays visible.

The 4.0 engine uses FIRST's 270 MacroVector lookup table and the published interpolation algorithm: effective metric values with Not Defined fallbacks, EQ classification, highest-severity-vector distance and mean normalisation across the lower MacroVectors. Threat, Environmental and Supplemental groups follow the v4.0 rules — supplemental metrics add context but never move the number. Paste an existing CVSS:3.1, CVSS:3.0 or CVSS:4.0 vector to decode it back into the controls; unknown keys, invalid values, duplicates and 4.0 ordering mistakes are reported explicitly. Everything runs in the browser tab: findings under embargo are never uploaded.

What this tool does not do

  • Scores follow the published FIRST formulas, but advisory severity may legitimately differ after organisational context is applied; this tool does not make risk decisions.
  • CVSS 2.0 is not scored; only 3.0/3.1 vectors and 4.0 vectors are accepted.
  • The 4.0 MacroVector table is version-stamped to FIRST specification v1.2; future spec errata may change lookup values.
  • Supplemental metrics are displayed and preserved in the vector but intentionally have no effect on the numeric score.
  • Vectors are stored only in this browser's local input state; clearing site data removes them, and nothing is sent to a server.

How to use this tool

  1. Choose the specification

    Switch between CVSS 3.1 and CVSS 4.0 with the tab at the top. Use the version required by your advisory, vendor or vulnerability programme — the two scoring systems are not interchangeable.

  2. Pick the Base metrics

    Select one value per metric in the Base group: Attack Vector, Complexity, Privileges Required and User Interaction first, then the impact metrics. The score stays at 0.0 with a hint until every mandatory metric is chosen. Small numbers beside options show how much each choice would change the current score.

  3. Decode an existing vector

    Paste a CVSS vector into the input and press Decode. The tool validates the prefix, values and order, fills the matching controls, canonicalises the vector and reports any duplicate or unknown metric without silently dropping it.

  4. Refine with context

    In 3.1, expand Temporal for exploit maturity, remediation level and report confidence, or Environmental for requirements and Modified Base metrics. In 4.0, add Threat (E), Environmental requirements/modifiers and Supplemental context. The score line label changes to CVSS-BT, CVSS-BE or CVSS-BTE accordingly.

  5. Copy the advisory text

    Copy the canonical vector, the one-line score summary or the full explanation. The vector and score should always travel together so another analyst can reproduce the result.

Use cases

Advisory writing

Turn a bug-bounty report or internal finding into a reproducible vector, score and written rationale in one pass.

Triage and comparison

Test what changes when Scope, Attack Requirements or Exploit Maturity differ, instead of guessing which severity band applies.

Learning CVSS

Students can see the equations and MacroVector lookup behind the number, with a delta hint on every metric option.

Supported vector forms

FormExample / behavior
CVSS 3.1 baseCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H — eight mandatory Base metrics
CVSS 3.1 fullOptional E/RL/RC then CR/IR/AR and MAV…MA; canonical order is applied on output
CVSS 3.0Accepted and normalised to CVSS:3.1; the Base equations are identical and a notice is shown
CVSS 4.0 baseEleven mandatory metrics including AT and the separate VC/VI/VA and SC/SI/SA impact sets
CVSS 4.0 extendedE, requirements, Modified Base metrics and six supplemental metrics (S/AU/R/V/RE/U)
Canonical outputNot Defined (X) optional metrics are omitted; values are emitted in specification order

The severity bands are identical in both versions: None 0.0, Low 0.1–3.9, Medium 4.0–6.9, High 7.0–8.9, Critical 9.0–10.0.

Common mistakes

Mistake:Treating a CVSS score as a risk decision.

Fix:CVSS describes technical severity. Business impact, exploitability in your estate and compensating controls belong in the surrounding risk process; supplemental metrics add context but never change the score.

Mistake:Copying a 3.1 vector into the 4.0 tab.

Fix:The metric sets differ (4.0 adds AT and splits vulnerable/subsequent impact). The parser checks the prefix and rejects metrics that do not belong to the selected specification.

Mistake:Rounding intermediate impact values to one decimal.

Fix:The 3.1 specification rounds only the final score. This tool uses the 5-decimal integer Roundup from Appendix A so values like 0.1 + 0.2 do not spuriously become 0.4.

Mistake:Forgetting that Not Defined has different defaults in 4.0.

Fix:E:X means worst-case Attacked and CR/IR/AR:X mean High; other modified metrics inherit the Base value. The effective values are shown in the breakdown.

Mistake:Pasting a vector with the wrong metric order in 4.0.

Fix:CVSS 4.0 requires fixed ordering. The parser reports the offending metric; Decode rewrites valid vectors in canonical order with X-valued optional metrics omitted.

Frequently asked questions

What is the difference between CVSS 3.1 and 4.0?

CVSS 3.1 computes a Base score from the Impact and Exploitability sub-scores, then optionally applies Temporal and Environmental multipliers. CVSS 4.0 replaces that formula with 270 expert-ranked MacroVectors and interpolation, adds Attack Requirements (AT), separates Vulnerable System and Subsequent System impacts, and treats Threat and Environmental metrics with effective-value defaults. Supplemental metrics in 4.0 carry context but never change the number. Both versions share the same severity bands.

How is the CVSS 3.1 Base score computed?

First compute ISS = 1 − (1−C)(1−I)(1−A) from the Confidentiality, Integrity and Availability weights. Impact is 6.42 × ISS for unchanged Scope, or 7.52 × (ISS−0.029) − 3.25 × (ISS−0.02)^15 for changed Scope. Exploitability is 8.22 × AV × AC × PR × UI. The Base score is Roundup(min(Impact + Exploitability, 10)), with a 1.08 multiplier applied before the cap when Scope is Changed. Only the final result is rounded, using the five-decimal integer Roundup from Appendix A.

What does Scope Changed mean?

Scope is Changed when exploitation of the vulnerable component can impact resources managed by a different security authority — for example, a flaw in a hypervisor that affects its guests. It selects a different impact formula and adds the 1.08 multiplier, so the same C/I/A and exploitability values usually score higher. If all three impact metrics are None, the score is still 0.0 in both branches.

What score is Critical?

On the FIRST qualitative scale, 0.0 is None, 0.1–3.9 is Low, 4.0–6.9 is Medium, 7.0–8.9 is High, and 9.0–10.0 is Critical. The same bands apply to Base, Temporal, Threat and Environmental scores in both versions. A 9.8 vector such as CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H is Critical, but the numeric score alone should not drive prioritisation.

Can environment metrics change the score?

Yes. In 3.1, CR/IR/AR and the Modified Base metrics feed the Environmental score: requirements rescale the Modified Impact Sub-Score, modified metrics override the base values, and Scope can be modified with MS. In 4.0, requirements and Modified Base metrics change the MacroVector classification and interpolation; Not Defined requirements mean High and Not Defined modifiers inherit the Base value. The score-line label becomes CVSS-BE or CVSS-BTE to show that environment data was used.

What do the numbers next to metric options mean?

They are score deltas: switch to that option while keeping everything else fixed and this is how much the displayed score moves. A negative number means the choice lowers severity. They are a learning aid for one change at a time; combinations of changes can interact, especially when they shift the MacroVector in 4.0.

Can I paste a vector from an advisory or CVE feed?

Yes. Paste a CVSS:3.1, CVSS:3.0 or CVSS:4.0 vector and press Decode. The parser validates the prefix, metric names, values and (for 4.0) canonical order, then fills the controls and rewrites the vector in canonical form. CVSS:3.0 is treated as 3.1 because the Base equations match; unknown keys, bad values, duplicates and missing mandatory metrics are reported instead of being guessed.

Why does an X value sometimes mean worst case?

In CVSS 4.0, Exploit Maturity E:X defaults to Attacked and the requirement metrics CR/IR/AR:X default to High, so an unspecified Threat or requirement group does not lower the score. Other modified metrics inherit the corresponding Base value. This is why a Base-only 4.0 vector already represents the reasonable worst case for the groups you did not assess.

Do supplemental metrics affect the CVSS 4.0 score?

No. Safety (S), Automatable (AU), Recovery (R), Value Density (V), Response Effort (RE) and Provider Urgency (U) are preserved in the vector and shown in the explanation, but FIRST forbids them from changing the numeric score. They help a consumer apply local context and prioritisation rules.

Is my vulnerability data uploaded anywhere?

No. Parsing, scoring, interpolation and copying all run locally in this browser tab. No vector, score or note is transmitted to a server, which matters when a finding is still under embargo. Clearing your browser's site data removes the locally saved input.

References & standards