Skip to main content
QUICK REVIEW

[Paper Review] CVSS-BERT: Explainable Natural Language Processing to Determine the Severity of a Computer Security Vulnerability from its Description

Mustafizur R. Shahid, Hervé Debar|arXiv (Cornell University)|Nov 16, 2021
Information and Cyber SecurityComputer Science17 references4 citations
TL;DR

This paper proposes CVSS-BERT, an explainable NLP framework that uses fine-tuned BERT classifiers to predict the CVSS base vector and severity score of a cybersecurity vulnerability directly from its textual description. The model achieves high accuracy in predicting individual CVSS metrics and severity scores, with gradient-based saliency providing human-comprehensible explanations by identifying key terms in vulnerability descriptions that align with expert rationales.

ABSTRACT

When a new computer security vulnerability is publicly disclosed, only a textual description of it is available. Cybersecurity experts later provide an analysis of the severity of the vulnerability using the Common Vulnerability Scoring System (CVSS). Specifically, the different characteristics of the vulnerability are summarized into a vector (consisting of a set of metrics), from which a severity score is computed. However, because of the high number of vulnerabilities disclosed everyday this process requires lot of manpower, and several days may pass before a vulnerability is analyzed. We propose to leverage recent advances in the field of Natural Language Processing (NLP) to determine the CVSS vector and the associated severity score of a vulnerability from its textual description in an explainable manner. To this purpose, we trained multiple BERT classifiers, one for each metric composing the CVSS vector. Experimental results show that our trained classifiers are able to determine the value of the metrics of the CVSS vector with high accuracy. The severity score computed from the predicted CVSS vector is also very close to the real severity score attributed by a human expert. For explainability purpose, gradient-based input saliency method was used to determine the most relevant input words for a given prediction made by our classifiers. Often, the top relevant words include terms in agreement with the rationales of a human cybersecurity expert, making the explanation comprehensible for end-users.

Motivation & Objective

  • To automate the prediction of CVSS base vector metrics and severity scores from vulnerability descriptions, reducing reliance on manual expert analysis.
  • To address the delay in vulnerability scoring by enabling near real-time severity assessment using NLP.
  • To ensure model decisions are interpretable by identifying the most influential words in vulnerability descriptions using gradient-based saliency.
  • To validate that the model's explanations align with expert reasoning by analyzing frequently associated terms and bigrams.
  • To demonstrate that BERT-based models can accurately predict CVSS metrics while maintaining explainability for cybersecurity practitioners.

Proposed method

  • Fine-tune separate BERT classifiers for each of the eight CVSS base metrics (e.g., Attack Vector, Privileges Required, User Interaction).
  • Train each classifier on a dataset of vulnerability descriptions paired with their ground-truth CVSS metric values.
  • Compute the final CVSS severity score from the predicted vector using the standard CVSS scoring formula.
  • Apply gradient-based input saliency to identify the top 5 most influential input tokens (words or subwords) for each prediction.
  • Aggregate saliency results across all test samples per class to identify the most frequently associated terms and bigrams with each metric value.
  • Complete subword tokens into meaningful words (e.g., 'x' and 'ss' → 'xss') to improve interpretability of explanations.

Experimental results

Research questions

  • RQ1Can BERT-based classifiers accurately predict individual CVSS base metrics from vulnerability descriptions?
  • RQ2How close is the severity score computed from the predicted CVSS vector to the ground-truth score assigned by human experts?
  • RQ3Do the most influential words identified by gradient-based saliency align with the rationales used by human cybersecurity experts?
  • RQ4Which terms and bigrams are most consistently associated with specific values of CVSS metrics across the dataset?
  • RQ5Can the model’s explanations be understood and validated by end-users as meaningful and reliable?

Key findings

  • The BERT classifiers achieved high accuracy in predicting each CVSS base metric, with performance measured by the proportion of test samples predicted with confidence above 0.9.
  • The severity score computed from the predicted CVSS vector closely matched the ground-truth score provided by human experts, indicating strong predictive fidelity.
  • The top 5 saliency-ranked words for each prediction often included terms that align with expert reasoning, such as 'adjacent attacker' for the 'Adjacent' Attack Vector class.
  • For the Confidentiality Impact metric, the term 'information disclosure' was frequently associated with the 'High' class, consistent with expert understanding.
  • The term 'denial' and 'crash' were consistently linked to the 'High' impact class for the Availability metric, confirming model alignment with expert logic.
  • Bigrams such as 'network access', 'easily exploit', and 'high privileged' were frequently identified as key predictors for their respective metric values, reinforcing model interpretability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.