huzaifas-sidhpurwala commited on
Commit
5773167
·
verified ·
1 Parent(s): d8f9d5e

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +107 -0
  3. data.jsonl +3 -0
  4. data.parquet +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ pretty_name: Red Hat VEX Fixed CVEs with Upstream Fix Commits
6
+ tags:
7
+ - security
8
+ - vulnerabilities
9
+ - cve
10
+ - vex
11
+ - code-security
12
+ - benchmark
13
+ size_categories:
14
+ - 10K<n<100K
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: data.parquet
20
+ ---
21
+
22
+ # Red Hat VEX Fixed CVEs with Upstream Fix Commits
23
+
24
+ One row per CVE that Red Hat has **fixed** in at least one shipped product
25
+ (per Red Hat's CSAF VEX data), joined against CVE.org's `cvelistV5` records
26
+ to resolve the **upstream git commit(s)** that fixed the issue.
27
+
28
+ Intended use: benchmarking the ability of models and tools to find real
29
+ security issues in code. For each row with a resolved fix commit, the parent
30
+ commit (`<upstream_fix_commit>^`) of `upstream_repo_url` is a known-vulnerable
31
+ code state, and the commit diff is ground truth for the flaw and its fix.
32
+
33
+ ## Fields
34
+
35
+ | Field | Description |
36
+ |---|---|
37
+ | `cve` | CVE identifier |
38
+ | `title` | Red Hat flaw title (`component: short description`) |
39
+ | `component` | Component name parsed from the title |
40
+ | `severity` | Red Hat aggregate severity (Low / Moderate / Important / Critical) |
41
+ | `cwe_id`, `cwe_name` | CWE assigned by Red Hat |
42
+ | `cvss_v3_score`, `cvss_v3_vector` | Highest CVSS v3 base score across affected products |
43
+ | `description` | Red Hat vulnerability description |
44
+ | `summary` | Red Hat topic/summary line |
45
+ | `statement` | Red Hat statement (context / applicability), when present |
46
+ | `public_date` | Date the issue became public (ISO 8601) |
47
+ | `discovery_date` | Red Hat discovery/report date |
48
+ | `bugzilla_id` | Red Hat Bugzilla identifier |
49
+ | `cisa_kev` | True if referenced in CISA Known Exploited Vulnerabilities catalog |
50
+ | `rh_advisories` | Red Hat advisories (RHSA/RHBA/RHEA) that shipped a fix |
51
+ | `rh_fixed_packages` | Fixed package NEVRAs (capped at 50 per row) |
52
+ | `references` | Reference URLs from the VEX record |
53
+ | `upstream_fix_commit` | Primary upstream fix commit SHA (first resolved) |
54
+ | `upstream_repo_url` | Upstream repository URL for that commit |
55
+ | `upstream_fix_commits` | All resolved commits: `{repo_url, commit, ref_url, source}` |
56
+ | `upstream_affected_versions` | Affected upstream version ranges (from cvelistV5 CNA data) |
57
+ | `upstream_fixed_versions` | Fixed upstream versions (from cvelistV5 CNA data) |
58
+ | `resolution_source` | How the commit was resolved: `redhat_vex` (commit URL present in Red Hat's own references) or `cvelist` (CVE.org record) — `null` if unresolved |
59
+
60
+ ## Construction
61
+
62
+ 1. Downloaded the full Red Hat CSAF VEX archive from
63
+ `https://security.access.redhat.com/data/csaf/v2/vex/` and kept only CVEs
64
+ with a non-empty `product_status.fixed`.
65
+ 2. Extracted commit URLs (GitHub, GitLab, cgit, gitweb styles) from the VEX
66
+ references.
67
+ 3. Joined against the CVE.org `cvelistV5` bulk dataset for additional commit
68
+ references (including kernel.org CNA `versionType: git` ranges) and
69
+ upstream affected/fixed versions.
70
+
71
+ Rows without a resolvable upstream commit are retained with
72
+ `resolution_source: null` so consumers can apply their own filters.
73
+
74
+ ## Statistics
75
+
76
+ - 110,635 Red Hat VEX records scanned; **25,428** CVEs with fixed status (one row each)
77
+ - **7,664** rows with at least one resolved upstream fix commit
78
+ (1,025 resolved from Red Hat's own references, 6,639 from CVE.org)
79
+ - Commit-resolution rate by era: ~15–25% pre-2021, 50–60% for 2022–2025
80
+ (driven largely by the Linux kernel CNA publishing fix commits)
81
+ - Severity mix: 2,252 Critical / 5,433 Important / 12,932 Moderate / 4,476 Low
82
+ - Top components with commits: Linux kernel (~4,200), OpenSSL, PHP, tcpdump,
83
+ ghostscript, FreeRDP
84
+
85
+ ## Caveats
86
+
87
+ - Commit SHAs are taken from published references and are **not** verified
88
+ against live repositories; some may be branch-specific backports rather
89
+ than mainline commits, and multi-commit fixes may be incomplete.
90
+ - `upstream_repo_url` is derived from the commit URL and may point at a web
91
+ UI path (cgit/gitweb) rather than a clean clone URL.
92
+ - Affected/fixed version data comes from CVE.org CNA containers and varies in
93
+ quality per CNA.
94
+ - A "fixed" status here means Red Hat shipped a fix in at least one product;
95
+ other products may remain affected or out of support scope.
96
+ - For model benchmarking, filter on `public_date` relative to a model's
97
+ knowledge cutoff to control for memorization.
98
+
99
+ ## Sources and license
100
+
101
+ - Red Hat CSAF VEX data © Red Hat, Inc., licensed
102
+ [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
103
+ - CVE records from [CVE.org](https://www.cve.org) (CVE Program), used per the
104
+ [CVE Terms of Use](https://www.cve.org/Legal/TermsOfUse).
105
+
106
+ This dataset is a transformation of those sources and is distributed under
107
+ CC BY 4.0. Snapshot dates: VEX archive 2026-07-27, cvelistV5 2026-07-30.
data.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c5383281c6c4f8ec6c8e66fee530c7d0070db37492ad05cd9d29e47b8c32e2a
3
+ size 91843770
data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f122a6fed70ffd1372012bb7ba05d5b79701427041420bba411169025a9ace2
3
+ size 10376726