regularpooria commited on
Commit
cb19f24
·
verified ·
1 Parent(s): 82f0569

Update merged CVE-CWE dataset

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. CVE_CWE_Dataset.csv +3 -0
  3. README.md +50 -14
.gitattributes CHANGED
@@ -59,3 +59,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
  Global_Dataset.csv filter=lfs diff=lfs merge=lfs -text
 
 
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
  Global_Dataset.csv filter=lfs diff=lfs merge=lfs -text
62
+ CVE_CWE_Dataset.csv filter=lfs diff=lfs merge=lfs -text
CVE_CWE_Dataset.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:243af33535d71ddd784ec06d1f286f2fede4075586afa6f4d139c370f56a71cc
3
+ size 128539315
README.md CHANGED
@@ -5,6 +5,7 @@ tags:
5
  - cybersecurity
6
  - vulnerability
7
  - cve
 
8
  - cwe
9
  - software-security
10
  task_categories:
@@ -17,26 +18,58 @@ license: apache-2.0
17
 
18
  ## Dataset description
19
 
20
- This dataset maps Common Vulnerabilities and Exposures (CVEs) to Common Weakness Enumeration (CWE) entries in the CWE-699 Software category. It combines CVE descriptions with CWE descriptions and parent-category information for security research and vulnerability classification.
 
 
 
 
 
 
 
 
 
21
 
22
  ## Dataset structure
23
 
24
- The dataset is provided as `Global_Dataset.csv`. Its main fields include:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- - `CVE-ID`: CVE identifier.
27
- - `CVE-DESCRIPTION`: Description of the vulnerability.
28
- - `CWE-ID`: Associated CWE identifier.
29
- - `CWE-DESCRIPTION`: Description of the associated weakness.
30
- - `PARENTS`: Parent CWE category or categories.
31
- - `YEAR`: Year extracted from the CVE identifier.
32
- - `IS-IN-CWE699`: Whether the CWE belongs to the CWE-699 Software category.
33
 
34
  ## Data sources
35
 
36
- - CVE-to-CWE mappings and vulnerability descriptions are sourced from the `zefang-liu/cve-and-cwe-mapping-dataset` dataset on Hugging Face.
37
- - CWE descriptions and hierarchy information are collected from the CWE software-category data scraped by this project.
 
 
 
38
 
39
- The dataset is generated by `dataset/generate_dataset.ipynb`.
40
 
41
  ## Intended uses
42
 
@@ -49,8 +82,11 @@ This dataset is intended for research and experimentation involving:
49
 
50
  ## Limitations
51
 
52
- The mappings reflect the upstream data sources and may contain incomplete, ambiguous, or changing vulnerability information. The dataset should not be treated as a definitive security assessment or as a replacement for reviewing the original NVD and CWE records.
 
 
53
 
54
  ## License and attribution
55
 
56
- Please review and follow the licenses and attribution requirements of the upstream CVE and CWE sources before redistributing or using this dataset.
 
 
5
  - cybersecurity
6
  - vulnerability
7
  - cve
8
+ - nvd
9
  - cwe
10
  - software-security
11
  task_categories:
 
18
 
19
  ## Dataset description
20
 
21
+ This dataset merges two CVE-to-CWE data sources into a single table:
22
+
23
+ - The original CVE-to-CWE mapping dataset from
24
+ [zefang-liu/cve-and-cwe-mapping-dataset](https://huggingface.co/datasets/zefang-liu/cve-and-cwe-mapping-dataset),
25
+ enriched with CWE descriptions and parent-category information from the scraped CWE-699 software hierarchy.
26
+ - The NVD CVE records scraped by this project, resolved against the CWE-699 software hierarchy.
27
+
28
+ The two sources are joined on the CVE identifier. Variables shared by both sources are matched onto a single
29
+ column; variables that exist in only one source are kept as separate columns and left empty for rows coming
30
+ from the other source.
31
 
32
  ## Dataset structure
33
 
34
+ The dataset is provided as `CVE_CWE_Dataset.csv`.
35
+
36
+ Variables shared by both sources:
37
+
38
+ - `CVE-ID`: CVE identifier (join key).
39
+ - `YEAR`: year the CVE was published.
40
+ - `CVE-DESCRIPTION`: vulnerability description.
41
+ - `CVE-DESCRIPTION-NORMALIZED`: normalized vulnerability description.
42
+ - `CWE-ID`: associated CWE identifier(s), pipe separated.
43
+
44
+ Variables from the original (zefang-liu) dataset only:
45
+
46
+ - `CWE-DESCRIPTION`: description of the associated weakness.
47
+ - `PARENTS`: parent CWE category or categories.
48
+ - `IS-IN-CWE699`: whether the CWE belongs to the CWE-699 Software category.
49
+ - `CVSS-V3`: CVSS v3 score.
50
+ - `CVSS-V2`: CVSS v2 score.
51
+ - `SEVERITY`: severity rating.
52
+ - `ID`: identifier from the original dataset.
53
+
54
+ Variables from the NVD dataset only:
55
 
56
+ - `published`: publication timestamp.
57
+ - `last_modified`: last modification timestamp.
58
+ - `all_nvd_cwes`: all CWE identifiers NVD associates with the CVE (pipe separated).
59
+ - `number_of_nvd_cwes`: count of `all_nvd_cwes`.
60
+ - `number_of_cwe_699_matches`: count of `CWE-ID`.
61
+ - `true_children`: the CWE-699 child ids from `CWE-ID` that exist in `CWE_SOFTWARE.json` (list).
62
+ - `true_categories`: the CWE-699 category ids those children belong to (sorted list).
63
 
64
  ## Data sources
65
 
66
+ - CVE-to-CWE mappings and vulnerability descriptions are sourced from the `zefang-liu/cve-and-cwe-mapping-dataset`
67
+ dataset on Hugging Face.
68
+ - Raw CVE records are collected from the NVD.
69
+ - CWE descriptions, hierarchy and CWE-699 Software category membership are collected from the CWE data scraped
70
+ by this project.
71
 
72
+ The dataset is generated by `dataset/merge_datasets.ipynb`.
73
 
74
  ## Intended uses
75
 
 
82
 
83
  ## Limitations
84
 
85
+ The mappings reflect the upstream NVD, CVE and CWE data and may contain incomplete, ambiguous, or changing
86
+ vulnerability information. The dataset should not be treated as a definitive security assessment or as a
87
+ replacement for reviewing the original NVD and CWE records.
88
 
89
  ## License and attribution
90
 
91
+ Please review and follow the licenses and attribution requirements of the upstream NVD, CVE and CWE sources
92
+ before redistributing or using this dataset.