nickua commited on
Commit
15b4c67
·
verified ·
1 Parent(s): 55d57c2

Add CVSS v3 combined train and test splits derived from CIRCL/vulnerability-scores

Browse files
README.md ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-classification
5
+ language:
6
+ - en
7
+ pretty_name: Vulnerability scores (CVSS v3 combined)
8
+ size_categories:
9
+ - 100K<n<1M
10
+ tags:
11
+ - vulnerability
12
+ - cybersecurity
13
+ - security
14
+ - cve
15
+ - cvss
16
+ dataset_info:
17
+ features:
18
+ - name: id
19
+ dtype: string
20
+ - name: title
21
+ dtype: string
22
+ - name: description
23
+ dtype: string
24
+ - name: cpes
25
+ sequence: string
26
+ - name: cvss_v4_0
27
+ dtype: float64
28
+ - name: cvss_v3_1
29
+ dtype: float64
30
+ - name: cvss_v3_0
31
+ dtype: float64
32
+ - name: cvss_v2_0
33
+ dtype: float64
34
+ - name: patch_commit_url
35
+ dtype: string
36
+ - name: source
37
+ dtype: string
38
+ - name: cvss_v3_1_v3_combined
39
+ dtype: float64
40
+ - name: severity_band
41
+ dtype: string
42
+ splits:
43
+ - name: train
44
+ num_bytes: 144500000
45
+ num_examples: 509067
46
+ - name: test
47
+ num_bytes: 16100000
48
+ num_examples: 56502
49
+ download_size: 160600000
50
+ dataset_size: 160600000
51
+ configs:
52
+ - config_name: default
53
+ data_files:
54
+ - split: train
55
+ path: data/train-*
56
+ - split: test
57
+ path: data/test-*
58
+ ---
59
+
60
+ # Vulnerability scores (CVSS v3 combined)
61
+
62
+ A labeled slice of [CIRCL/vulnerability-scores](https://huggingface.co/datasets/CIRCL/vulnerability-scores) for training and evaluating models that predict CVSS v3 severity from a vulnerability description.
63
+
64
+ Every row has a combined v3 score and a severity band. Rows with no v3.1 or v3.0 score were dropped.
65
+
66
+ ## What changed from the original
67
+
68
+ The CIRCL dataset stores four separate CVSS columns (`cvss_v4_0`, `cvss_v3_1`, `cvss_v3_0`, `cvss_v2_0`). Those versions are not on the same scale, so this derivative does **not** average them or prefer v4.
69
+
70
+ `cvss_v3_1_v3_combined` is:
71
+
72
+ 1. `cvss_v3_1` when it is present
73
+ 2. otherwise `cvss_v3_0`
74
+
75
+ v3.0 and v3.1 are the same scoring system (mean absolute difference about 0.09 on overlapping rows). v2 and v4 are not mixed in.
76
+
77
+ `severity_band` is the standard CVSS qualitative rating of that combined score:
78
+
79
+ | Band | Score |
80
+ | --- | --- |
81
+ | `low` | 0.0–3.9 |
82
+ | `medium` | 4.0–6.9 |
83
+ | `high` | 7.0–8.9 |
84
+ | `critical` | 9.0–10.0 |
85
+
86
+ Unlabeled rows are removed. That includes rows with no CVSS score at all, and rows that only have a v2 or v4 score.
87
+
88
+ Original columns are kept, including the unused v2/v4 values.
89
+
90
+ Train and test splits follow CIRCL’s split. A row is not moved between splits.
91
+
92
+ ## Splits
93
+
94
+ | Split | Rows | From v3.1 | From v3.0 fallback |
95
+ | --- | ---: | ---: | ---: |
96
+ | train | 509,067 | 410,050 | 99,017 |
97
+ | test | 56,502 | 45,623 | 10,879 |
98
+ | total | 565,569 | 455,673 | 109,896 |
99
+
100
+ CIRCL’s full dump is 779,178 rows. This set keeps 565,569 (72.5%).
101
+
102
+ ### Severity bands
103
+
104
+ | Split | low | medium | high | critical |
105
+ | --- | ---: | ---: | ---: | ---: |
106
+ | train | 18,546 | 222,832 | 206,725 | 60,964 |
107
+ | test | 2,041 | 24,767 | 23,017 | 6,677 |
108
+
109
+ ## Fields
110
+
111
+ Same as CIRCL, plus:
112
+
113
+ | Field | Type | Description |
114
+ | --- | --- | --- |
115
+ | `cvss_v3_1_v3_combined` | float | v3.1 score, or v3.0 if v3.1 is missing. Never null in this dataset. |
116
+ | `severity_band` | string | `low`, `medium`, `high`, or `critical`. Never null in this dataset. |
117
+
118
+ ## Usage
119
+
120
+ ```python
121
+ from datasets import load_dataset
122
+
123
+ ds = load_dataset("AgileRLArena/vulnerability-scores-cvss-v3")
124
+ print(ds["train"][0]["description"])
125
+ print(ds["train"][0]["cvss_v3_1_v3_combined"], ds["train"][0]["severity_band"])
126
+ ```
127
+
128
+ Typical training target is `severity_band` (classification) or `cvss_v3_1_v3_combined` (regression). Input is `description`.
129
+
130
+ ## Source and license
131
+
132
+ Derived from [CIRCL/vulnerability-scores](https://huggingface.co/datasets/CIRCL/vulnerability-scores) (CIRCL / Vulnerability-Lookup, [VulnTrain](https://github.com/vulnerability-lookup/VulnTrain)). Paper: [VLAI: A RoBERTa-Based Model for Automated Vulnerability Severity Classification](https://arxiv.org/abs/2507.03607).
133
+
134
+ License is **CC-BY-4.0**, same as the original. Credit CIRCL when you use this dataset.
data/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01126500b61f51e74d577eacf53859a8fbe3f1e699d137cff3195c1bf22ebd0e
3
+ size 16064456
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8f082a5440351a66e1f02a06cd5c96f14344d84c6d02a1a1f6b48bf576091dc
3
+ size 144454296