Datasets:
record_uid stringclasses 8
values | dataset_version stringclasses 1
value | language stringclasses 1
value | source stringclasses 1
value | id stringclasses 8
values | cve_id stringclasses 8
values | repo stringclasses 8
values | cwe_id stringclasses 8
values | cwe_name stringclasses 8
values | nvd_cwe_id stringclasses 8
values | cwe_source stringclasses 1
value | severity stringclasses 3
values | cvss3_score float64 5.5 9.8 | cvss3_base_score float64 5.5 9.8 | file_paths listlengths 1 4 | commit_message stringclasses 8
values | task_type stringclasses 1
value | instruction stringclasses 8
values | vulnerable_code stringclasses 8
values | patch_or_fix stringclasses 8
values | diff stringclasses 8
values | dataset_tier stringclasses 1
value | grok_cot_reasoning stringclasses 8
values | expert_cot_reasoning stringclasses 8
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CVE-2015-8958_3333e1d44b01 | 1.1 | c_cpp | cvefixes | CVE-2015-8958 | CVE-2015-8958 | https://github.com/ImageMagick/ImageMagick | CWE-125 | Out-of-bounds Read | CWE-125 | nvd | MEDIUM | 6.5 | 6.5 | [
"coders/sun.c"
] | real_cve_fix | coders/sun.c in ImageMagick before 6.9.0-4 Beta allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted SUN file. | height,
length;
if (bytes_per_line == 0)
bytes_per_line=image->columns;
length=image->rows*(image->columns+image->columns % 2);
if (((sun_info.type == RT_ENCODED) &&
(length > (bytes_per_line*image->rows))) ||
((sun_info.type != RT_ENCODED) && (... | height; | diff --git a/coders/sun.c b/coders/sun.c
index 7edf41b3a..3f71a1eda 100644
--- a/coders/sun.c
+++ b/coders/sun.c
@@ -253,12 +253,11 @@ static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
*p;
size_t
bytes_per_line,
extent,
- height,
- length;
+ height;
ssize... | expert_cot | ## Root cause
In `ReadSUNImage`, `length` is a `size_t`. Each storage-class arm computes it with one unsigned padded-geometry product, then uses that value as the only predicate that can `ThrowReaderException` before the per-row raster walk. The arms are alternatives: the `PseudoClass` arm is not the `bytes_per_pixel ... | ## 1. CWE Analysis
Primary CWE: CWE-125 (Out-of-bounds Read)
CVE-2015-8958 is an out-of-bounds read in `ReadSUNImage` (`coders/sun.c`, ImageMagick before 6.9.0-4 Beta). A crafted SUN raster reaches the per-row `*p` walk with a geometry the reader no longer rejects, so the cursor continues past the raster buffer and t... | |
CVE-2016-10207_01db4e56d7a2 | 1.1 | c_cpp | cvefixes | CVE-2016-10207 | CVE-2016-10207 | https://github.com/TigerVNC/tigervnc | CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | CWE-119 | nvd | HIGH | 7.5 | 7.5 | [
"common/rfb/CSecurityTLS.cxx",
"common/rfb/CSecurityTLS.h",
"common/rfb/SSecurityTLS.cxx",
"common/rfb/SSecurityTLS.h"
] | Proper global init/deinit of GnuTLS
These are reference counted so it is important to retain symmetry
between the calls. Failure to do so will result in bad memory access
and crashes. | real_cve_fix | The Xvnc server in TigerVNC allows remote attackers to cause a denial of service (invalid memory access and crash) by terminating a TLS handshake early. | void CSecurityTLS::initGlobal()
{
static bool globalInitDone = false;
if (!globalInitDone) {
gnutls_global_init();
globalInitDone = true;
}
}
gnutls_global_deinit();
initGlobal();
static void initGlobal();
void SSecurityTLS::initGlobal()
{
static bool globalInitDone = false;
if (!globa... | if (gnutls_global_init() != GNUTLS_E_SUCCESS)
throw AuthFailureException("gnutls_global_init failed");
gnutls_global_deinit();
if (gnutls_global_init() != GNUTLS_E_SUCCESS)
throw AuthFailureException("gnutls_global_init failed");
gnutls_global_deinit(); | diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx
index 3dcededb..8a053e3d 100644
--- a/common/rfb/CSecurityTLS.cxx
+++ b/common/rfb/CSecurityTLS.cxx
@@ -65,25 +65,18 @@ using namespace rfb;
StringParameter CSecurityTLS::X509CA("X509CA", "X509 CA certificate", "", ConfViewer);
StringParameter CSe... | expert_cot | ## Root cause
`gnutls_global_init()` / `gnutls_global_deinit()` are process-wide and reference-counted. Each successful `gnutls_global_init()` increments GnuTLS’s internal counter and, on the 0→1 transition, allocates the library’s global state (crypto backend, locks, error tables, and related heap structures). Each `... | ## 1. CWE Analysis
Primary CWE: CWE-416 (Use After Free)
NVD maps CVE-2016-10207 to CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer). The crash primitive in `SSecurityTLS` / `CSecurityTLS` is narrower. `gnutls_global_init()` and `gnutls_global_deinit()` are process-wide and reference-... |
CVE-2016-10251_330a4476c0e2 | 1.1 | c_cpp | cvefixes | CVE-2016-10251 | CVE-2016-10251 | https://github.com/mdadams/jasper | CWE-190 | Integer Overflow or Wraparound | CWE-190 | nvd | HIGH | 7.8 | 7.8 | [
"src/libjasper/jpc/jpc_t2cod.c",
"src/libjasper/jpc/jpc_t2cod.h"
] | Fixed an integer overflow problem in the JPC codec that later resulted
in the use of uninitialized data. | real_cve_fix | Integer overflow in the jpc_pi_nextcprl function in jpc_t2cod.c in JasPer before 1.900.20 allows remote attackers to have unspecified impact via a crafted file, which triggers use of an uninitialized value. | pi->xstep = pi->picomp->hsamp * (1 << (pirlvl->prcwidthexpn +
pi->picomp->numrlvls - 1));
pi->ystep = pi->picomp->vsamp * (1 << (pirlvl->prcheightexpn +
pi->picomp->numrlvls - 1));
pi->xstep = JAS_MIN(pi->xstep, pi->picomp->hsamp * (1 <<
(pirlvl->prcwidthexpn + pi->picomp->numrlvls -
rlvlno - 1))... | pi->xstep = pi->picomp->hsamp * (JAS_CAST(uint_fast32_t, 1) <<
(pirlvl->prcwidthexpn + pi->picomp->numrlvls - 1));
pi->ystep = pi->picomp->vsamp * (JAS_CAST(uint_fast32_t, 1) <<
(pirlvl->prcheightexpn + pi->picomp->numrlvls - 1));
pi->xstep = JAS_MIN(pi->xstep, pi->picomp->hsamp *
(JAS_CAST(uint_fast3... | diff --git a/src/libjasper/jpc/jpc_t2cod.c b/src/libjasper/jpc/jpc_t2cod.c
index 08315dd..174442a 100644
--- a/src/libjasper/jpc/jpc_t2cod.c
+++ b/src/libjasper/jpc/jpc_t2cod.c
@@ -430,22 +430,22 @@ static int jpc_pi_nextcprl(register jpc_pi_t *pi)
for (pi->compno = pchg->compnostart, pi->picomp =
&pi->picomps[... | expert_cot | ## Root cause
In `jpc_pi_nextcprl`, the CPRL packet iterator builds its horizontal and vertical strides from a signed power of two times the component sampling factor, then immediately uses those strides as both the loop increment and the divisor of `%`.
The initial stride is:
```c
pi->xstep = pi->picomp->hsamp * (1... | ## 1. CWE Analysis
Primary CWE: CWE-190 (Integer Overflow or Wraparound)
CVE-2016-10251 is a stacked integer overflow in JasPer before 1.900.20, in `jpc_pi_nextcprl` (`src/libjasper/jpc/jpc_t2cod.c`). NVD maps it to CWE-190. CVSS v3 is 7.8 (HIGH). A remote attacker supplies a JPEG 2000 codestream whose CPRL progressi... |
CVE-2016-5768_ba8c792bbe83 | 1.1 | c_cpp | cvefixes | CVE-2016-5768 | CVE-2016-5768 | https://github.com/php/php-src | CWE-415 | Double Free | CWE-415 | nvd | CRITICAL | 9.8 | 9.8 | [
"ext/mbstring/php_mbregex.c",
"ext/mbstring/tests/bug72402.phpt"
] | Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free | real_cve_fix | Double free vulnerability in the _php_mb_regex_ereg_replace_exec function in php_mbregex.c in the mbstring extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by leveraging a callback exception. | static void php_mb_regex_free_cache(php_mb_regex_t **pre)
static void _php_mb_regex_globals_dtor(zend_mb_regex_globals *pglobals TSRMLS_DC)
return retval;
++len_req;
++len_req;
++len_req;
++len_req;
++len_req;
}
++len_req;
++len_req;
++len_req;
_php_mb_regex_init_options(const char *parg,... | static void php_mb_regex_free_cache(php_mb_regex_t **pre)
static void _php_mb_regex_globals_dtor(zend_mb_regex_globals *pglobals TSRMLS_DC)
return retval;
++len_req;
++len_req;
++len_req;
++len_req;
++len_req;
}
++len_req;
++len_req;
++len_req;
_php_mb_regex_init_options(const char *parg, int narg, O... | diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index d73c8483505..6cdee23c3e5 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -30,11 +30,11 @@
#include "ext/standard/php_smart_str.h"
#include "ext/standard/info.h"
#include "php_mbregex.h"
#include "mbstring.h"
-
... | expert_cot | ## Root cause
In `_php_mb_regex_ereg_replace_exec`, the `is_callable` arm (`mb_ereg_replace_callback`) keeps an `emalloc`'d callback `description` for the whole call and frees it once on the normal cleanup path. Each match invokes the user callback with `retval_ptr` uninitialized and with `arg_replace_fci.retval_ptr_p... | ## 1. CWE Analysis
Primary CWE: CWE-415 (Double Free)
CVE-2016-5768 is a double free in `_php_mb_regex_ereg_replace_exec` (`ext/mbstring/php_mbregex.c`), the shared engine behind `mb_ereg_replace_callback`. The `is_callable` arm keeps one `emalloc` buffer, `description`, for the whole call. That buffer is owned by th... |
CVE-2017-14040_cc45a4e331cb | 1.1 | c_cpp | cvefixes | CVE-2017-14040 | CVE-2017-14040 | https://github.com/uclouvain/openjpeg | CWE-787 | Out-of-bounds Write | CWE-787 | nvd | HIGH | 8.8 | 8.8 | [
"src/bin/jp2/convert.c"
] | tgatoimage(): avoid excessive memory allocation attempt, and fixes unaligned load (#995) | real_cve_fix | An invalid write access was discovered in bin/jp2/convert.c in OpenJPEG 2.2.0, triggering a crash in the tgatoimage function. The vulnerability may lead to remote denial of service or possibly unspecified other impact. | static unsigned short get_ushort(const unsigned char *data)
unsigned short val = *(const unsigned short *)data;
#ifdef OPJ_BIG_ENDIAN
val = ((val & 0xffU) << 8) | (val >> 8);
#endif
return val;
/*cmap_index = get_ushort(&tga[3]);*/
cmap_len = get_ushort(&tga[5]);
x_origin = get_ushort(&tga[8]);
... | /* Returns a ushort from a little-endian serialized value */
static unsigned short get_tga_ushort(const unsigned char *data)
return data[0] | (data[1] << 8);
/*cmap_index = get_tga_ushort(&tga[3]);*/
cmap_len = get_tga_ushort(&tga[5]);
x_origin = get_tga_ushort(&tga[8]);
y_origin = get_tga_ushort(&t... | diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c
index a4eb81f6a..73dfc8d5f 100644
--- a/src/bin/jp2/convert.c
+++ b/src/bin/jp2/convert.c
@@ -578,17 +578,14 @@ struct tga_header {
unsigned char pixel_depth; /* Pixel depth */
unsigned char image_desc; /* Image... | expert_cot | ## Root cause
`get_ushort` materializes a TGA 16-bit field with `*(const unsigned short *)data`. The pointer is a `const unsigned char *` into the 18-byte header, so the load is not guaranteed to be 2-byte aligned (the colormap length at offset 5 is always odd relative to the buffer; width and height at offsets 12 and... | ## 1. CWE Analysis
Primary CWE: CWE-787 (Out-of-bounds Write)
CVE-2017-14040 is an out-of-bounds write in `tgatoimage` (`src/bin/jp2/convert.c`), reached with dimensions parsed by `tga_readheader`. Two defects share that path. `get_ushort` loads a TGA `uint16` with `*(const unsigned short *)data` from a `const unsign... |
CVE-2017-16359_faae4f987e5b | 1.1 | c_cpp | cvefixes | CVE-2017-16359 | CVE-2017-16359 | https://github.com/radare/radare2 | CWE-476 | NULL Pointer Dereference | CWE-476 | nvd | MEDIUM | 5.5 | 5.5 | [
"libr/bin/format/elf/elf.c"
] | Fix #8764 differently since ptr diff might not fit in ptrdiff_t | real_cve_fix | In radare 2.0.1, a pointer wraparound vulnerability exists in store_versioninfo_gnu_verdef() in libr/bin/format/elf/elf.c. | if (vdaux < 1 || (char *)UINTPTR_MAX - vstart < vdaux) { | if (vdaux < 1 || vstart + vdaux < vstart) { | diff --git a/libr/bin/format/elf/elf.c b/libr/bin/format/elf/elf.c
index ba3d1d5404f..eb0ebe0ed23 100644
--- a/libr/bin/format/elf/elf.c
+++ b/libr/bin/format/elf/elf.c
@@ -747,11 +747,11 @@ static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz)
verdef->vd_cnt = READ16 (dfs, j)
verdef->vd... | expert_cot | ## Root cause
In `store_versioninfo_gnu_verdef()`, `vdaux` is the signed `int` copy of the ELF `vd_aux` byte offset, and `vstart` is the `char *` cursor advanced by that offset before an `Elf_(Verdaux)` read. The pre-increment guard was:
```c
if (vdaux < 1 || (char *)UINTPTR_MAX - vstart < vdaux)
```
`(char *)UINTPT... | ## 1. CWE Analysis
Primary CWE: CWE-476 (NULL Pointer Dereference)
CVE-2017-16359 is in `store_versioninfo_gnu_verdef()` (`libr/bin/format/elf/elf.c`, radare2 2.0.1). The function copies the GNU `vd_aux` byte offset into a signed `int vdaux`, then advances the section cursor `char *vstart` and loads an `Elf_(Verdaux)... |
CVE-2017-16939_661fa53d8a5b | 1.1 | c_cpp | cvefixes | CVE-2017-16939 | CVE-2017-16939 | https://github.com/torvalds/linux | CWE-416 | Use After Free | CWE-416 | nvd | HIGH | 7.8 | 7.8 | [
"net/xfrm/xfrm_user.c"
] | ipsec: Fix aborted xfrm policy dump crash
An independent security researcher, Mohamed Ghannam, has reported
this vulnerability to Beyond Security's SecuriTeam Secure Disclosure
program.
The xfrm_dump_policy_done function expects xfrm_dump_policy to
have been called at least once or it will crash. This can be
trigger... | real_cve_fix | The XFRM dump policy implementation in net/xfrm/xfrm_user.c in the Linux kernel before 4.13.11 allows local users to gain privileges or cause a denial of service (use-after-free) via a crafted SO_RCVBUF setsockopt system call in conjunction with XFRM_MSG_GETPOLICY Netlink messages. | struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1];
struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1];
BUILD_BUG_ON(sizeof(struct xfrm_policy_walk) >
sizeof(cb->args) - sizeof(cb->args[0]));
if (!cb->args[0]) {
cb->args[0] = 1;
xfrm_policy_walk_init(walk, XFRM... | struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args;
static int xfrm_dump_policy_start(struct netlink_callback *cb)
{
struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args;
BUILD_BUG_ON(sizeof(*walk) > sizeof(cb->args));
xfrm_policy_walk_init(walk, XFRM_POLICY_TYPE_ANY);
return 0;
}
... | diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index b997f1395357e8..e44a0fed48dd08 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -1691,36 +1691,38 @@ static int dump_one_policy(struct xfrm_policy *xp, int dir, int count, void *ptr
return 0;
}
static int xfrm_dump_policy_done(struct ne... | expert_cot | ## Root cause
`xfrm_dump_policy_done` always calls `xfrm_policy_walk_done()` on a `struct xfrm_policy_walk` stored inside the netlink callback scratch area `cb->args`. Before this patch that object was initialized only from `xfrm_dump_policy`, and only the first time that callback ran:
```c
if (!cb->args[0]) {
cb->a... | ## 1. CWE Analysis
Primary CWE: CWE-416 (Use After Free)
`xfrm_dump_policy_done` always calls `xfrm_policy_walk_done()` on a `struct xfrm_policy_walk` overlaid on netlink scratch `cb->args`. Before the patch that node is initialized only inside `xfrm_dump_policy`, and only on the first dump invocation:
```c
if (!cb-... |
CVE-2021-3875_40feb17b706f | 1.1 | c_cpp | cvefixes | CVE-2021-3875 | CVE-2021-3875 | https://github.com/vim/vim | CWE-122 | Heap-based Buffer Overflow | CWE-122 | nvd | MEDIUM | 5.5 | 5.5 | [
"src/ex_docmd.c",
"src/testdir/test_search.vim",
"src/version.c"
] | patch 8.2.3489: ml_get error after search with range
Problem: ml_get error after search with range.
Solution: Limit the line number to the buffer line count. | real_cve_fix | vim is vulnerable to Heap-based Buffer Overflow | if (lnum != MAXLNUM)
curwin->w_cursor.lnum = lnum; | if (lnum > 0 && lnum != MAXLNUM)
curwin->w_cursor.lnum =
lnum > curbuf->b_ml.ml_line_count
? curbuf->b_ml.ml_line_count : lnum;
func Test_search_with_invalid_range()
new
let lines =<< trim END
/\%.v
5/
c
END
call writefile(lines, 'Xrangesearch')
source Xrangesearch
bwipe!
call ... | diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 2c55e67bc3..08a48305ed 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -4227,12 +4227,14 @@ get_address(
pos = curwin->w_cursor; // save curwin->w_cursor
// When '/' or '?' follows another address, start from
// there.
- if (lnum != MA... | expert_cot | ## Root cause
In `get_address()` an Ex address of the form `{lnum}/` or `{lnum}?` is a search whose start line is the address already parsed. After saving `curwin->w_cursor`, the old code did:
```c
if (lnum != MAXLNUM)
curwin->w_cursor.lnum = lnum;
```
`MAXLNUM` (`0x7fffffff`) is only the sentinel for “no line a... | ## 1. CWE Analysis
Primary CWE: CWE-122 (Heap-based Buffer Overflow)
CVE-2021-3875 is an unconstrained `linenr_T` published as `curwin->w_cursor.lnum` while `get_address()` in `src/ex_docmd.c` parses an Ex search address `{lnum}/` or `{lnum}?`. The heap object is the buffer memline, `curbuf->b_ml`. Its line slots exi... |
- 1. Core Multi-Language Bundle Overview
- 2. Two Synchronized Tiers & Engineering Scope
- 3. Provenance, Methodology & Quality Verification Guarantees
- 4. Canonical JSONL Schema (23 / 24 Fields)
- 5. Files Included in This Public Repository
- 6. Licensing & Access to the Full Commercial Archive
- 7. Authorship, Provenance & Citation
Verified Cybersecurity & Vulnerability Reasoning Dataset — Core Multi-Language Bundle
Standard Chain-of-Thought (CoT) & 5-Section Expert CoT Security Architecture Editions
Languages: C & C++ (v1.1) · JavaScript & TypeScript (v1.0) · Python (v1.3)
Release: Core Bundle 2026.11 (Published December 2026)
Author & Rights Holder: Arkadii Filimonov (Lead Security Data Architect)
Repository Scope: This public repository hosts the 6 Verified Showcase Sample files (8 rows per file; 48 records / 24 verified pairs in total), alongside cryptographic SHA-256 manifests (
SHA256SUMS.txtandSHA256SUMS_FULL_ARCHIVE_PROOF.txt). It is intended for AI research labs, AppSec teams, and prospective commercial partners to inspect the exact canonical JSONL schema, 1:1 cross-tier parity, Chain-of-Thought depth, regression tests, and static detection rules prior to licensing the full 4,564-pair (9,128-record) dataset archive.
1. Core Multi-Language Bundle Overview
Most public CVE corpora provide only raw NVD summaries or flat git diffs without structured security execution reasoning. This dataset family pairs real-world historical open-source CVE patches with strictly verified, multi-stage vulnerability reasoning engineered for closed security benchmarks, RAG security knowledge bases, autonomous AppSec agents, static-analysis rule generation, and code-security AI engineering.
Every language module is built with strict 1:1 row parity between its Standard CoT and 5-Section Expert CoT editions (identical record_uid ordering and 22 shared fields: 21 metadata/code fields + grok_cot_reasoning), validated by deterministic post-build QA gates.
| Language Module | Release Version | Verified Pairs (Full Archive, 1:1 Parity) | Total Records (Full Archive) | Public Showcase Files in This Repo (8 rows each) | Primary Security Focus |
|---|---|---|---|---|---|
| C / C++ (Systems & Kernel) (2,480 Pure C · 448 C++ · 47 .h · 17 Mixed) |
v1.1 |
2,992 | 5,984 | dataset_cpp_verified_clean_v1.1_8_of_2992.jsonldataset_cpp_expert_cot_v1.1_8_of_2992.jsonl |
Memory safety, UAF, Double Free, OOB R/W, integer overflow, UB, kernel/network parsers, ASan/UBSan & Semgrep/CodeQL |
| JavaScript & TypeScript (Web & Node.js) | v1.0 |
910 | 1,820 | dataset_js_ts_verified_clean_v1.0_8_of_910.jsonldataset_js_ts_expert_cot_v1.0_8_of_910.jsonl |
DOM/Template XSS, Prototype Pollution (CWE-1321), ReDoS, Command/Code Injection, Path Traversal, SSRF, node:test/Jest & Semgrep |
| Python (Backend, Web & AI Stack) | v1.3 |
662 | 1,324 | dataset_python_verified_clean_v1.3_8_of_662.jsonldataset_python_expert_cot_v1.3_8_of_662.jsonl |
Deserialization (YAML/pickle), SSRF, XSS, Path Traversal, Command/SQL Injection, ReDoS, auth/session flaws, pytest & Semgrep |
| TOTAL CORE BUNDLE | 2026.11 |
4,564 | 9,128 | 6 files (48 records / 24 pairs) | End-to-End Multi-Language Vulnerability Reasoning |
2. Two Synchronized Tiers & Engineering Scope
Standard CoT Edition (
grok_cot_reasoning— 23 canonical fields):
Focused, technically dense root-cause deduction (## Root cause) and patch verification (## Why the fix closes it). Designed for closed vulnerability-detection benchmarks, RAG security knowledge bases, automated pull-request review in CI/CD pipelines, low-latency IDE security assistants, and foundational code-security SFT.5-Section Expert CoT Edition (
expert_cot_reasoning— 24 canonical fields, includes Standard CoT):
Publication-grade Principal Security Architect analysis structured into five mandatory, QA-verified sections:## 1. CWE Analysis— root-cause mechanics & explicit primary MITRE CWE taxonomy## 2. Exploit Vector & PoC— attacker preconditions, trigger mechanics, concrete PoC## 3. Chain of Thought (CoT) & Patch Audit— source-to-sink dataflow & residual edge-case audit## 4. Resolution (Two-Tier Remediation)—### 4.1 Tactical Isolating Patch+### 4.2 Strategic Structural Refactoring## 5. Verification & Detection Rule— complete unit/regression test harness + Semgrep/CodeQL/AST detection rule
Engineered for autonomous security auditing agents, exploit-vector modeling, two-tier code remediation, automated security regression testing, static-analysis rule generation (Semgrep, CodeQL, clang-tidy), and deep reasoning evaluation.
3. Provenance, Methodology & Quality Verification Guarantees
- Upstream Open-Source Provenance: Raw CVE identifiers, NVD baseline metadata, and historical open-source git commit diffs (
vulnerable_code,patch_or_fix,diff) originate from public vulnerability disclosures (NVD/CVE) and open-source software repositories via CVEfixes (Bhandari et al., "CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Software", PROMISE 2021). - Synthetic Reasoning Provenance (Grok 4.7): The structured analytical reasoning fields (
grok_cot_reasoningand 5-sectionexpert_cot_reasoning) were synthesized using Grok 4.7 and subjected to multi-stage automated filtering, iterative repair, and deterministic verification. - Exact 1:1 Cross-Tier Parity: Identical row counts, identical
record_uidordering, and byte-for-byte equality across all 22 shared fields (21 metadata/code fields +grok_cot_reasoning) between Standard and Expert CoT editions. - Automated Static & Structural QA: Multi-stage verification using Semgrep CLI, PyYAML, and language compilers/validators. Zero agentic preambles, zero duplicated passes, strictly balanced Markdown code fences (
count("```") % 2 == 0), verified ascending 5-section headers (## 1.–## 5.), and verified non-empty Section 5 detection rules. - CWE Taxonomy Enrichment: Records originally lacking a specific CWE in NVD are programmatically enriched with primary MITRE CWE identifiers extracted from verified Section 1 analysis and transparently tagged via
cwe_source("enriched_from_analysis"in C/C++v1.1& Pythonv1.3;"expert_cot_enriched"in JS/TSv1.0), while preserving the originalnvd_cwe_id. - RFC 8259 Strict JSONL & Cryptographic Integrity: UTF-8 encoded,
allow_nan=False, zero forbidden/transient keys, canonicallist[str]file paths, and SHA-256 manifests (SHA256SUMS.txtfor the public showcase andSHA256SUMS_FULL_ARCHIVE_PROOF.txtas an immutable cryptographic integrity proof for the full private archive).
4. Canonical JSONL Schema (23 / 24 Fields)
Every line in the .jsonl files is a strict RFC 8259 JSON object adhering to a unified 23-field (Standard) / 24-field (Expert CoT) schema across all language modules:
| Field | Type | Description |
|---|---|---|
record_uid |
string |
Deterministic unique key (<CVE_ID>_<12-char MD5 of code pair>) for deduplication and incremental updates |
dataset_version |
string |
Release version ("1.1" for C/C++, "1.0" for JS/TS, "1.3" for Python) |
language |
string |
"c_cpp" (covers Pure C and C++), "javascript", "typescript", or "python" |
dataset_tier |
string |
"standard" or "expert_cot" |
source |
string |
Upstream CVE aggregation source (e.g., "cvefixes") |
id / cve_id |
string |
Official CVE identifier (e.g., "CVE-2023-44466") |
repo |
string |
Upstream open-source repository URL |
cwe_id / cwe_name |
string |
Primary MITRE CWE identifier and formal name |
nvd_cwe_id |
string |
Original raw NVD CWE value preserved for full auditability |
cwe_source |
string |
"nvd", "enriched_from_analysis" (C/C++ v1.1, Python v1.3), or "expert_cot_enriched" (JS/TS v1.0) |
severity |
string |
"LOW", "MEDIUM", "HIGH", "CRITICAL", or "" (empty string when cvss3_score is null in NVD; showcase rows contain "MEDIUM", "HIGH", and "CRITICAL") |
cvss3_score / cvss3_base_score |
float | null |
Numeric CVSS v3 base score (null if unavailable in NVD) |
file_paths |
list[string] |
Modified file paths in the security patch commit |
commit_message |
string |
Original developer commit message |
task_type |
string |
Task category ("real_cve_fix" / "vulnerability_analysis_and_patch") |
instruction |
string |
Cleaned vulnerability advisory description |
vulnerable_code |
string |
Pre-patch vulnerable code snippet |
patch_or_fix |
string |
Post-patch fixed code snippet |
diff |
string |
Unified git diff with surrounding context |
grok_cot_reasoning |
string |
Verified Standard CoT root-cause and fix explanation (synthesized with Grok 4.7) |
expert_cot_reasoning |
string |
(Expert CoT Edition only) Complete 5-section Principal Security Architect analysis (synthesized with Grok 4.7) |
5. Files Included in This Public Repository
Public Showcase Samples (6 files — 48 rows / 24 verified pairs)
dataset_cpp_verified_clean_v1.1_8_of_2992.jsonl— C/C++v1.1Standard CoT Showcase (8 rows, 23 fields)dataset_cpp_expert_cot_v1.1_8_of_2992.jsonl— C/C++v1.15-Section Expert CoT Showcase (8 rows, 24 fields)dataset_js_ts_verified_clean_v1.0_8_of_910.jsonl— JavaScript & TypeScriptv1.0Standard CoT Showcase (8 rows, 23 fields)dataset_js_ts_expert_cot_v1.0_8_of_910.jsonl— JavaScript & TypeScriptv1.05-Section Expert CoT Showcase (8 rows, 24 fields)dataset_python_verified_clean_v1.3_8_of_662.jsonl— Pythonv1.3Standard CoT Showcase (8 rows, 23 fields)dataset_python_expert_cot_v1.3_8_of_662.jsonl— Pythonv1.35-Section Expert CoT Showcase (8 rows, 24 fields)
Documentation, License & Cryptographic Integrity Proofs
README.md— Dataset card, schema specification, and provenance documentationLICENSE.txt— Dual-tier copyright notice and license termsSHA256SUMS.txt— SHA-256 checksums for all 6 public showcase.jsonlfiles (sha256sum -c SHA256SUMS.txt)SHA256SUMS_FULL_ARCHIVE_PROOF.txt— Cryptographic SHA-256 priority and integrity proof for the 6 full commercial archive files (dataset_cpp_verified_clean_v1.1.jsonl,dataset_cpp_expert_cot_v1.1.jsonl,dataset_js_ts_verified_clean_v1.0.jsonl,dataset_js_ts_expert_cot_v1.0.jsonl,dataset_python_verified_clean_v1.3.jsonl,dataset_python_expert_cot_v1.3.jsonl; full archives are NOT uploaded publicly)
6. Licensing & Access to the Full Commercial Archive
- Public Showcase Samples (This Repository): Intended for technical evaluation, schema verification, and quality auditing, and licensed under CC BY-NC-ND 4.0 (
LICENSE.txt), permitting non-commercial verbatim sharing with attribution while prohibiting commercial model training, commercial products, and distribution of modified derivatives. - Full Core Bundle Archive (4,564 Verified Pairs / 9,128 Records): All Rights Reserved — Copyright © 2026 Arkadii Filimonov. The complete dataset archives are not publicly distributed here and are available for commercial licensing through the Author, his legal successor/assignee, or authorized commercial licensees and distribution partners.
- Synthetic Content & Third-Party Terms: The analytical reasoning fields contain synthetic content generated with Grok 4.7. End users licensing the full archive are solely responsible for ensuring that their intended downstream use case (e.g., RAG, benchmarking, agent evaluation, static-rule generation, or model fine-tuning) complies with any applicable third-party model provider terms.
- Defensive Cybersecurity Notice: All vulnerability traces, PoC vectors, remediation patches, and detection rules are compiled strictly for defensive cybersecurity engineering and AI safety research, provided
"AS IS". - Contact (Licensing & Distribution Inquiries):
A.Filimonov.Dataset@gmail.com
7. Authorship, Provenance & Citation
This dataset suite, its multi-stage curation methodology, CWE enrichment heuristics, 1:1 cross-tier parity architecture, and automated verification pipeline were designed, engineered, and audited by Arkadii Filimonov.
If you evaluate, benchmark, or reference this dataset family in technical reports or research publications, please cite:
@dataset{filimonov2026verified_cve_reasoning,
author = {Filimonov, Arkadii},
title = {Verified Cybersecurity and Vulnerability Reasoning Dataset: Core Multi-Language Bundle (C/C++ v1.1, JavaScript/TypeScript v1.0, Python v1.3)},
year = {2026},
month = dec,
version = {Core Bundle 2026.11 (C/C++ v1.1, JS/TS v1.0, Python v1.3)},
publisher = {Zenodo},
doi = {10.5281/zenodo.24734337},
note = {4,564 verified 1:1 parity pairs (9,128 records) — Standard CoT and 5-Section Expert CoT Editions with Automated Structural and Semgrep QA}
}
- Downloads last month
- 12