Severity and weakness labels from NIST, reconstructed for new vulnerabilities from their descriptions
Collaborator(s): Tara Dixit, Summer Li
In the disclosure of software vulnerabilities a CVE catalog entry is created with a unique identifier and a succinct textual description. CVE-2024-0003 is an example. It allows a malicious user to use a remote administrative service to create an account with privileged access to the array.
The problem is that the descriptions do not express urgency. Priority in addressing the vulnerability depends on a CVSS score and a CWE label. The CVSS is a 0-10 ranking of the potential of exploit and impact, and CWE is a categorization of the type of weakness. Human judgment is required to assign these labels. Based on CVE-2024-0003, the vendor chose CVSS 9.1 (Critical), while NIST chose 7.2 (High).
For many years NIST's National Vulnerability Database provided CVSS and CWE labeling for most CVEs. However, in April 2026 NIST announced that it will only label high priority vulnerabilities. This leaves the majority of new CVEs without NIST labels. A question therefore arises: can a model derive the CVSS score and CWE label from the description alone?
Models are trained on 50,545 CVEs from 2022 and 2023, and evaluated on the complete set of 2024 CVEs with full NIST labels, 36,325 CVEs in total. To avoid overfitting of evaluation data, no overlap with training sets is allowed. We consider two approaches: a TF-IDF logistic regression lexical baseline, and the language model Phi-3.5-mini, a 3.8B model, both zero-shot and fine-tuned for one epoch with LoRA. Each approach either directly produces a score, or one is computed from the predicted vector using the CVSS formula.
The fine-tuned system is best in all metrics. For example, its 69.9% severity accuracy is better than the 67.1% of TF-IDF, and 70.9% CWE accuracy is better than 67.2%. It also produces the exact same CVSS vector as the NVD for 48.8% of the test CVEs, compared to 44.1% for TF-IDF. These improvements of 2.8 to 4.7 pp have a paired bootstrap interval that does not contain zero, but are modest, indicating that the lexical baseline remains competitive. The two models also make errors on different CVEs: at least one of the two models predicts the correct severity for 75.8% of the test CVEs.
Since the CVSS base score is determined solely by the vector, we can compare the model's direct prediction of the score with the one that would be derived from the predicted vector. We find that the zero-shot model reaches a severity accuracy of 20.8% on 2000 test CVEs, but its score matches its own vector for only 3.4%. By contrast, the fine-tuned model, when trained on targets that present the vector components in order before the score, produces scores that are consistent 99.8% of the time.
Finally, scoring using the formula is free, and improves TF-IDF baseline recall on Critical to 73.3% (from 50.7%), and severity macro-F1 to 51.6% (from 47.9%).
The majority of misclassified severity falls between adjacent score ranks (Figure 2). The Low rank, comprising less than 2% of the training data, is the hardest for all systems to predict. Moreover, the fine-tuned model scores are consistent with discrete outputs of the CVSS formula, and predict the most common Critical score of 9.8 for 20.0% of the test CVEs (compared to 10.5% for NVD), while scoring using the formula for TF-IDF gives the same result for 17.7% (Figure 3).