File size: 2,064 Bytes
77148b2
73d9daf
 
 
 
 
 
 
 
 
 
 
77148b2
 
73d9daf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
language:
- en
tags:
- cybersecurity
- vulnerability
- cve
- cwe
- software-security
task_categories:
- text-classification
pretty_name: CVE-CWE Software Weakness Mapping Dataset
license: apache-2.0
---

# CVE-CWE Software Weakness Mapping Dataset

## Dataset description

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.

## Dataset structure

The dataset is provided as `Global_Dataset.csv`. Its main fields include:

- `CVE-ID`: CVE identifier.
- `CVE-DESCRIPTION`: Description of the vulnerability.
- `CWE-ID`: Associated CWE identifier.
- `CWE-DESCRIPTION`: Description of the associated weakness.
- `PARENTS`: Parent CWE category or categories.
- `YEAR`: Year extracted from the CVE identifier.
- `IS-IN-CWE699`: Whether the CWE belongs to the CWE-699 Software category.

## Data sources

- CVE-to-CWE mappings and vulnerability descriptions are sourced from the `zefang-liu/cve-and-cwe-mapping-dataset` dataset on Hugging Face.
- CWE descriptions and hierarchy information are collected from the CWE software-category data scraped by this project.

The dataset is generated by `dataset/generate_dataset.ipynb`.

## Intended uses

This dataset is intended for research and experimentation involving:

- CVE-to-CWE classification.
- Vulnerability search and retrieval.
- Security text embedding and similarity experiments.
- Analysis of software weakness categories.

## Limitations

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.

## License and attribution

Please review and follow the licenses and attribution requirements of the upstream CVE and CWE sources before redistributing or using this dataset.