task stringclasses 5
values | language stringclasses 8
values | cwe stringclasses 190
values | source stringclasses 13
values | instruction stringclasses 80
values | input stringlengths 28 3.5k | output stringlengths 211 7.46k |
|---|---|---|---|---|---|---|
supply_chain_sca | go | null | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Go
Manifest: go.mod
Package: github.com/kubewarden/kubewarden-controller
Installed version: 1.33.0
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "Go",
"package": "github.com/kubewarden/kubewarden-controller",
"installed_version": "1.33.0",
"note": "github.com/kubewarden/kubewarden-controller 1.33.0 is at or above the fixed version for GHSA-6r7f-3fwq-hq74; no known advisory applies to this version."
} |
supply_chain_sca | python | null | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: PyPI
Manifest: requirements.txt
Package: praisonai
Installed version: 4.6.59
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "PyPI",
"package": "praisonai",
"installed_version": "4.6.59",
"note": "praisonai 4.6.59 is at or above the fixed version for PYSEC-2026-3511; no known advisory applies to this version."
} |
supply_chain_sca | javascript | null | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: npm
Manifest: package.json
Package: better-auth
Installed version: 1.3.26
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "npm",
"package": "better-auth",
"installed_version": "1.3.26",
"note": "better-auth 1.3.26 is at or above the fixed version for GHSA-99h5-pjcv-gr6v; no known advisory applies to this version."
} |
supply_chain_sca | java | CWE-295 | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Maven
Manifest: pom.xml (Maven)
Package: org.apache.zookeeper:zookeeper
Installed version: 3.8.0
Summary: Apache ZooKeeper: Reverse-DNS fallback enables hostname verification bypass in ZooKeeper ZKTrustManager | {
"vulnerable": true,
"advisory_id": "GHSA-7xrh-hqfc-g7qr",
"cve": "CVE-2026-24281",
"aliases": [
"BIT-zookeeper-2026-24281",
"CVE-2026-24281"
],
"cwe": "CWE-295",
"ecosystem": "Maven",
"package": "org.apache.zookeeper:zookeeper",
"severity": "high",
"affected_versions": ">=3.8.0, <3.8.6",
... |
ast_vuln_detection | c | CWE-362 | DiverseVul (real labeled functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
{
struct sockaddr_in *usin = (struct sockaddr_in *)uaddr;
struct inet_sock *inet = inet_sk(sk);
struct tcp_sock *tp = tcp_sk(sk);
__be16 orig_sport, orig_dport;
__be32 daddr, nexthop;
struct flowi4 fl4;
struct rtable *rt;
int err;
if (a... | {
"vulnerable": true,
"cwe": "CWE-362",
"cwe_name": "Race Condition",
"severity": "high",
"project": "linux-2.6",
"note": "Function labeled vulnerable in a real project (DiverseVul). Function-level label; inspect memory/bounds/lifetime operations.",
"ast_top_level": [
"translation_unit",
"function... |
vuln_patch | c | CWE-119 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | static void copyMono24(
short *dst,
const int *const *src,
unsigned nSamples,
unsigned /* nChannels */) {
for (unsigned i = 0; i < nSamples; ++i) {
*dst++ = src[0][i] >> 8;
}
}
| {
"vulnerable": true,
"cwe": "CWE-119",
"cwe_name": "Improper Restriction of Operations within Memory Buffer Bounds",
"cve": "CVE-2017-0592",
"fixed_code": " static void copyMono24(\n short *dst,\n const int * src[FLACParser::kMaxChannels],\n unsigned nSamples,\n unsigned /* nCh... |
supply_chain_sca | csharp | null | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: NuGet
Manifest: packages.config / .csproj (NuGet)
Package: Microsoft.ChakraCore
Installed version: 1.2.2
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "NuGet",
"package": "Microsoft.ChakraCore",
"installed_version": "1.2.2",
"note": "Microsoft.ChakraCore 1.2.2 is at or above the fixed version for GHSA-4f5g-j7wg-7w8j; no known advisory applies to this version."
} |
vuln_patch | c | CWE-190 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | static int burl_normalize_2F_to_slash_fix (buffer *b, int qs, int i)
{
char * const s = b->ptr;
const int blen = (int)buffer_string_length(b);
const int used = qs < 0 ? blen : qs;
int j = i;
for (; i < used; ++i, ++j) {
s[j] = s[i];
if (s[i] == '%' && s[i+1] == '2' && s[i+2] == 'F') ... | {
"vulnerable": true,
"cwe": "CWE-190",
"cwe_name": "Integer Overflow",
"cve": "CVE-2019-11072",
"fixed_code": "static int burl_normalize_2F_to_slash_fix (buffer *b, int qs, int i)\n{\n char * const s = b->ptr;\n const int blen = (int)buffer_string_length(b);\n const int used = qs < 0 ? blen : qs;\n ... |
ast_vuln_detection | c | null | DiverseVul (real non-vulnerable functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static uint32_t vga_ioport_read(void *opaque, uint32_t addr)
{
CirrusVGAState *s = opaque;
int val, index;
/* check port range access depending on color/monochrome mode */
if ((addr >= 0x3b0 && addr <= 0x3bf && (s->msr & MSR_COLOR_EMULATION))
|| (addr >= 0x3d0 && addr <= 0x3df
&& !(s->msr & MSR_C... | {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "qemu",
"note": "Non-vulnerable function from a real project (DiverseVul label 0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
ast_vuln_detection | c | CWE-119 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | bool f2fs_init_extent_tree(struct inode *inode, struct f2fs_extent *i_ext)
{
struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
struct extent_tree *et;
struct extent_node *en;
struct extent_info ei;
if (!f2fs_may_extent_tree(inode)) {
/* drop largest extent */
if (i_ext && i_ext->len) {
i_ext->len = 0;
ret... | {
"vulnerable": true,
"cwe": "CWE-119",
"cwe_name": "Improper Restriction of Operations within Memory Buffer Bounds",
"severity": "high",
"cve": "CVE-2017-18193",
"project": "linux",
"vulnerable_lines": [],
"sink_node_type": null,
"ast_path": null,
"token_ast_map": null,
"explanation": "Function w... |
ast_vuln_detection | c | CWE-125 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static int usbhid_parse(struct hid_device *hid)
{
struct usb_interface *intf = to_usb_interface(hid->dev.parent);
struct usb_host_interface *interface = intf->cur_altsetting;
struct usb_device *dev = interface_to_usbdev (intf);
struct hid_descriptor *hdesc;
u32 quirks = 0;
unsigned int rsize = 0;
char *rdesc;
... | {
"vulnerable": true,
"cwe": "CWE-125",
"cwe_name": "Out-of-bounds Read",
"severity": "high",
"cve": "CVE-2017-16533",
"project": "linux",
"vulnerable_lines": [
36
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
"token_ast_map": ... |
ast_vuln_detection | c | CWE-189 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static Image *ExtractPostscript(Image *image,const ImageInfo *image_info,
MagickOffsetType PS_Offset,ssize_t PS_Size,ExceptionInfo *exception)
{
char
postscript_file[MaxTextExtent];
const MagicInfo
*magic_info;
FILE
*ps_file;
ImageInfo
*clone_info;
Image
*image2;
unsigned char
... | {
"vulnerable": true,
"cwe": "CWE-189",
"cwe_name": "Numeric Errors",
"severity": "high",
"cve": "CVE-2016-10145",
"project": "ImageMagick",
"vulnerable_lines": [
52
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
"token_ast_map"... |
vuln_patch | c | CWE-200 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | static int cdrom_ioctl_select_disc(struct cdrom_device_info *cdi,
unsigned long arg)
{
cd_dbg(CD_DO_IOCTL, "entering CDROM_SELECT_DISC\n");
if (!CDROM_CAN(CDC_SELECT_DISC))
return -ENOSYS;
if (arg != CDSL_CURRENT && arg != CDSL_NONE) {
if ((int)arg >= cdi->capacity)
return -EINVAL;
}
/*
* ->sel... | {
"vulnerable": true,
"cwe": "CWE-200",
"cwe_name": "Exposure of Sensitive Information",
"cve": "CVE-2018-18710",
"fixed_code": "static int cdrom_ioctl_select_disc(struct cdrom_device_info *cdi,\n\t\tunsigned long arg)\n{\n\tcd_dbg(CD_DO_IOCTL, \"entering CDROM_SELECT_DISC\\n\");\n\n\tif (!CDROM_CAN(CDC_SELEC... |
supply_chain_sca | python | CWE-200 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: PyPI
Manifest: requirements.txt
Package: pillow
Installed version: <2.3.1
Summary: Pillow Temporary file name leakage | {
"vulnerable": true,
"advisory_id": "GHSA-r854-96gq-rfg3",
"cve": "CVE-2014-1933",
"aliases": [
"CVE-2014-1933",
"PYSEC-2014-23"
],
"cwe": "CWE-200",
"ecosystem": "PyPI",
"package": "pillow",
"severity": "moderate",
"affected_versions": ">=0, <2.3.1",
"fixed_version": "2.3.1",
"finding"... |
supply_chain_sca | java | CWE-200 | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: Maven
Manifest: pom.xml (Maven)
Package: org.apache.portals.pluto:pluto-container
Installed version: 3.0.0
Summary: Exposure of Sensitive Information in Apache Pluto | {
"vulnerable": true,
"advisory_id": "GHSA-v49x-8hvm-q347",
"cve": "CVE-2018-1306",
"aliases": [
"CVE-2018-1306"
],
"cwe": "CWE-200",
"ecosystem": "Maven",
"package": "org.apache.portals.pluto:pluto-container",
"severity": "high",
"affected_versions": ">=3.0.0, <3.0.1",
"fixed_version": "3.0.1... |
supply_chain_sca | java | CWE-347 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: Maven
Manifest: pom.xml (Maven)
Package: org.bitcoinj:bitcoinj-core
Installed version: 0.15
Summary: bitcoinj has a ScriptExecution P2PKH/P2WPKH Verification Bypass | {
"vulnerable": true,
"advisory_id": "GHSA-hfcf-v2f8-x9pc",
"cve": "CVE-2026-44714",
"aliases": [
"CVE-2026-44714"
],
"cwe": "CWE-347",
"ecosystem": "Maven",
"package": "org.bitcoinj:bitcoinj-core",
"severity": "high",
"affected_versions": ">=0.15, <0.17.1",
"fixed_version": "0.17.1",
"findi... |
ast_vuln_detection | c | CWE-20 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static int rose_recvmsg(struct kiocb *iocb, struct socket *sock,
struct msghdr *msg, size_t size, int flags)
{
struct sock *sk = sock->sk;
struct rose_sock *rose = rose_sk(sk);
struct sockaddr_rose *srose = (struct sockaddr_rose *)msg->msg_name;
size_t copied;
unsigned char *asmptr;
struct sk_buff *skb;
... | {
"vulnerable": true,
"cwe": "CWE-20",
"cwe_name": "Improper Input Validation",
"severity": "high",
"cve": "CVE-2013-7271",
"project": "linux",
"vulnerable_lines": [
6,
42,
43
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],... |
ast_vuln_detection | c | null | BigVul (real non-vulnerable functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | void lrw_free_table(struct lrw_table_ctx *ctx)
{
if (ctx->table)
gf128mul_free_64k(ctx->table);
}
| {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "linux",
"note": "Non-vulnerable function from a real project (BigVul label vul=0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
supply_chain_sca | csharp | CWE-401 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: NuGet
Manifest: packages.config / .csproj (NuGet)
Package: Magick.NET-Q16-AnyCPU
Installed version: <14.11.1
Summary: ImageMagick: META reader memory leak in the APP1JPEG input path | {
"vulnerable": true,
"advisory_id": "GHSA-9r56-3gjq-hqf7",
"cve": "CVE-2026-56366",
"aliases": [
"CVE-2026-56366"
],
"cwe": "CWE-401",
"ecosystem": "NuGet",
"package": "Magick.NET-Q16-AnyCPU",
"severity": "low",
"affected_versions": ">=0, <14.11.1",
"fixed_version": "14.11.1",
"finding": "I... |
ast_vuln_detection | c | CWE-189 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static inline void sem_getref_and_unlock(struct sem_array *sma)
{
ipc_rcu_getref(sma);
ipc_unlock(&(sma)->sem_perm);
}
| {
"vulnerable": true,
"cwe": "CWE-189",
"cwe_name": "Numeric Errors",
"severity": "high",
"cve": "CVE-2013-4483",
"project": "linux",
"vulnerable_lines": [
3,
4
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
"token_ast_map":... |
ast_vuln_detection | c | CWE-20 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static void SkipDXTMipmaps(Image *image, DDSInfo *dds_info, int texel_size)
{
register ssize_t
i;
MagickOffsetType
offset;
size_t
h,
w;
/*
Only skip mipmaps for textures and cube maps
*/
if (dds_info->ddscaps1 & DDSCAPS_MIPMAP
&& (dds_info->ddscaps1 & DDSCAPS_TEXTURE
... | {
"vulnerable": true,
"cwe": "CWE-20",
"cwe_name": "Improper Input Validation",
"severity": "high",
"cve": "CVE-2014-9907",
"project": "ImageMagick",
"vulnerable_lines": [],
"sink_node_type": null,
"ast_path": null,
"token_ast_map": null,
"explanation": "Function was modified by the security fix f... |
supply_chain_sca | go | CWE-306 | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Go
Manifest: go.mod
Package: github.com/IceWhaleTech/CasaOS-Gateway
Installed version: <0.4.4
Summary: CasaOS Gateway vulnerable to incorrect identification of source IP addresses | {
"vulnerable": true,
"advisory_id": "GHSA-vjh7-5r6x-xh6g",
"cve": "CVE-2023-37265",
"aliases": [
"CVE-2023-37265",
"GO-2023-1932"
],
"cwe": "CWE-306",
"ecosystem": "Go",
"package": "github.com/IceWhaleTech/CasaOS-Gateway",
"severity": "critical",
"affected_versions": ">=0, <0.4.4",
"fixed... |
supply_chain_sca | go | CWE-200 | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Go
Manifest: go.mod
Package: github.com/fleetdm/fleet/v4
Installed version: <4.84.2
Summary: Fleet: Observer-level enrollment secret extraction via ORDER BY oracle on Apple MDM commands endpoint | {
"vulnerable": true,
"advisory_id": "GHSA-x4qr-qw6h-wvxq",
"cve": "CVE-2026-46371",
"aliases": [
"CVE-2026-46371",
"GO-2026-5739"
],
"cwe": "CWE-200",
"ecosystem": "Go",
"package": "github.com/fleetdm/fleet/v4",
"severity": "moderate",
"affected_versions": ">=0, <4.84.2",
"fixed_version":... |
supply_chain_sca | go | CWE-269 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: Go
Manifest: go.mod
Package: github.com/usememos/memos
Installed version: <0.9.1
Summary: usememos/memos Improper Privilege Management vulnerability | {
"vulnerable": true,
"advisory_id": "GHSA-r3p3-5f35-h6mf",
"cve": "CVE-2022-4808",
"aliases": [
"CVE-2022-4808",
"GO-2023-1449"
],
"cwe": "CWE-269",
"ecosystem": "Go",
"package": "github.com/usememos/memos",
"severity": "high",
"affected_versions": ">=0, <0.9.1",
"fixed_version": "0.9.1",... |
ast_vuln_detection | c | CWE-125 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk,
struct sk_buff *skb)
{
int need_software_tstamp = sock_flag(sk, SOCK_RCVTSTAMP);
struct scm_timestamping tss;
int empty = 1;
struct skb_shared_hwtstamps *shhwtstamps =
skb_hwtstamps(skb);
/* Race occurred between timestamp enabling and packet
... | {
"vulnerable": true,
"cwe": "CWE-125",
"cwe_name": "Out-of-bounds Read",
"severity": "high",
"cve": "CVE-2017-7277",
"project": "linux",
"vulnerable_lines": [
41
],
"sink_node_type": "if_statement",
"ast_path": [
"translation_unit",
"function_definition",
"compound_statement",
"... |
supply_chain_sca | csharp | CWE-476 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: NuGet
Manifest: packages.config / .csproj (NuGet)
Package: Magick.NET-Q16-AnyCPU
Installed version: <14.10.3
Summary: ImageMagick has NULL Pointer Dereference in ClonePixelCacheRepository via crafted image | {
"vulnerable": true,
"advisory_id": "GHSA-p863-5fgm-rgq4",
"cve": "CVE-2026-25798",
"aliases": [
"CVE-2026-25798"
],
"cwe": "CWE-476",
"ecosystem": "NuGet",
"package": "Magick.NET-Q16-AnyCPU",
"severity": "moderate",
"affected_versions": ">=0, <14.10.3",
"fixed_version": "14.10.3",
"finding... |
ast_vuln_detection | c | CWE-264 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static int handle_wrmsr(struct kvm_vcpu *vcpu)
{
struct msr_data msr;
u32 ecx = vcpu->arch.regs[VCPU_REGS_RCX];
u64 data = (vcpu->arch.regs[VCPU_REGS_RAX] & -1u)
| ((u64)(vcpu->arch.regs[VCPU_REGS_RDX] & -1u) << 32);
msr.data = data;
msr.index = ecx;
msr.host_initiated = false;
if (vmx_set_msr(vcpu, &msr) ... | {
"vulnerable": true,
"cwe": "CWE-264",
"cwe_name": "Permissions/Privileges/Access Control",
"severity": "high",
"cve": "CVE-2014-3610",
"project": "linux",
"vulnerable_lines": [
11
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
... |
supply_chain_sca | csharp | null | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: NuGet
Manifest: packages.config / .csproj (NuGet)
Package: Microsoft.AspNetCore.WebSockets
Installed version: 2.2.0
Summary: Denial of service in ASP.NET Core | {
"vulnerable": true,
"advisory_id": "GHSA-6px8-22w5-w334",
"cve": "CVE-2019-0564",
"aliases": [
"CVE-2019-0564"
],
"cwe": null,
"ecosystem": "NuGet",
"package": "Microsoft.AspNetCore.WebSockets",
"severity": "high",
"affected_versions": ">=2.2.0, <2.2.1",
"fixed_version": "2.2.1",
"finding"... |
vuln_patch | c | CWE-476 | BigVul (real CVE fix pairs) | The following C function contains a known security vulnerability (CWE-476). Produce the patched version and explain the fix. Output JSON. | static int i8042_start(struct serio *serio)
{
struct i8042_port *port = serio->port_data;
port->exists = true;
mb();
return 0;
}
| {
"vulnerable": true,
"cwe": "CWE-476",
"cwe_name": "NULL Pointer Dereference",
"cve": "CVE-2017-18079",
"fixed_code": "static int i8042_start(struct serio *serio)\n {\n \tstruct i8042_port *port = serio->port_data;\n \n\tspin_lock_irq(&i8042_lock);\n \tport->exists = true;\n\tspin_unlock_irq(&i8042_lock);\n\... |
ast_vuln_detection | c | CWE-362 | DiverseVul (real labeled functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | int inotify_rm_wd(struct inotify_handle *ih, u32 wd)
{
struct inotify_watch *watch;
struct inode *inode;
mutex_lock(&ih->mutex);
watch = idr_find(&ih->idr, wd);
if (unlikely(!watch)) {
mutex_unlock(&ih->mutex);
return -EINVAL;
}
get_inotify_watch(watch);
inode = watch->inode;
mutex_unlock(&ih->mutex);
m... | {
"vulnerable": true,
"cwe": "CWE-362",
"cwe_name": "Race Condition",
"severity": "high",
"project": "linux-2.6",
"note": "Function labeled vulnerable in a real project (DiverseVul). Function-level label; inspect memory/bounds/lifetime operations.",
"ast_top_level": [
"translation_unit",
"function... |
vuln_patch | c | null | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | int flush_completed_IO(struct inode *inode)
{
ext4_io_end_t *io;
int ret = 0;
int ret2 = 0;
if (list_empty(&EXT4_I(inode)->i_completed_io_list))
return ret;
dump_completed_IO(inode);
while (!list_empty(&EXT4_I(inode)->i_completed_io_list)){
io = list_entry(EXT4_I(inode)->i_completed_io_list.next,
... | {
"vulnerable": true,
"cwe": null,
"cwe_name": null,
"cve": "CVE-2015-8324",
"fixed_code": " int flush_completed_IO(struct inode *inode)\n {\n \text4_io_end_t *io;\n\tstruct ext4_inode_info *ei = EXT4_I(inode);\n\tunsigned long flags;\n \tint ret = 0;\n \tint ret2 = 0;\n \n\tif (list_empty(&ei->i_completed_io... |
vuln_patch | c | CWE-200 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr,
int *sockaddr_len, int peer)
{
struct sockaddr_atmpvc *addr;
struct atm_vcc *vcc = ATM_SD(sock);
if (!vcc->dev || !test_bit(ATM_VF_ADDR, &vcc->flags))
return -ENOTCONN;
*sockaddr_len = sizeof(struct sockaddr_atmpvc);
addr = (stru... | {
"vulnerable": true,
"cwe": "CWE-200",
"cwe_name": "Exposure of Sensitive Information",
"cve": "CVE-2012-6546",
"fixed_code": "static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr,\n\t\t int *sockaddr_len, int peer)\n{\n\tstruct sockaddr_atmpvc *addr;\n\tstruct atm_vcc *vcc = ATM_SD(so... |
ast_vuln_detection | python | CWE-502 | curated SAST pattern + tree-sitter AST | Perform AST-based static analysis on the following python code. Detect the security vulnerability, locate the vulnerable tokens and their AST nodes, and output a structured finding. | import pickle
def load():
payload = request.args.get('url')
return pickle.loads(payload)
| {
"vulnerable": true,
"cwe": "CWE-502",
"cwe_name": "Insecure Deserialization",
"title": "Insecure deserialization via pickle",
"severity": "critical",
"vulnerable_lines": [
4
],
"sink_node_type": "call",
"ast_path": [
"module",
"function_definition",
"block",
"return_statement",
... |
supply_chain_sca | java | CWE-20 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: Maven
Manifest: pom.xml (Maven)
Package: org.apache.struts:struts2-core
Installed version: 2.5.0
Summary: Apache Struts Improper Input Validation vulnerability | {
"vulnerable": true,
"advisory_id": "GHSA-9gp7-jvm2-r4mx",
"cve": "CVE-2017-7672",
"aliases": [
"CVE-2017-7672"
],
"cwe": "CWE-20",
"ecosystem": "Maven",
"package": "org.apache.struts:struts2-core",
"severity": "moderate",
"affected_versions": ">=2.5.0, <2.5.12",
"fixed_version": "2.5.12",
... |
supply_chain_sca | go | null | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Go
Manifest: go.mod
Package: github.com/jackc/pgx/v5
Installed version: 5.9.2
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "Go",
"package": "github.com/jackc/pgx/v5",
"installed_version": "5.9.2",
"note": "github.com/jackc/pgx/v5 5.9.2 is at or above the fixed version for GHSA-j88v-2chj-qfwx; no known advisory applies to this version."
} |
ast_vuln_detection | c | CWE-399 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | int hugetlb_reserve_pages(struct inode *inode,
long from, long to,
struct vm_area_struct *vma,
vm_flags_t vm_flags)
{
long ret, chg;
struct hstate *h = hstate_inode(inode);
struct hugepage_subpool *spool = subpool_inode(inode);
/*
* Only apply hugepage reservation if asked. At fault time, an
* a... | {
"vulnerable": true,
"cwe": "CWE-399",
"cwe_name": "Resource Management Errors",
"severity": "high",
"cve": "CVE-2012-2390",
"project": "linux",
"vulnerable_lines": [
37,
38,
41,
42,
51
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"functi... |
supply_chain_sca | c | null | OSV (osv.dev) / Debian & Alpine security trackers | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Debian:12
Manifest: distro package manager (apt/apk)
Package: phpmyadmin
Installed version: <4:2.8.0.2-2
Summary: Cross-site scripting (XSS) vulnerability in phpMyAdmin 2.8.0.1 allows remote attackers to inject arbitrary web script or HTML via the set_theme parameter. | {
"vulnerable": true,
"advisory_id": "DEBIAN-CVE-2006-1258",
"cve": null,
"aliases": [],
"cwe": null,
"ecosystem": "Debian:12",
"package": "phpmyadmin",
"severity": "unknown",
"affected_versions": ">=0, <4:2.8.0.2-2",
"fixed_version": "4:2.8.0.2-2",
"finding": "Cross-site scripting (XSS) vulnerabi... |
supply_chain_sca | python | null | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: PyPI
Manifest: requirements.txt
Package: beets
Installed version: 2.10.0
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "PyPI",
"package": "beets",
"installed_version": "2.10.0",
"note": "beets 2.10.0 is at or above the fixed version for GHSA-3gxm-wfjx-m847; no known advisory applies to this version."
} |
supply_chain_sca | go | null | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: Go
Manifest: go.mod
Package: github.com/mattermost/mattermost-server
Installed version: 10.11.0+incompatible
Summary: Mattermost doesn't escape some variables that could contain malicious content during error page composition in github.com/mattermost/mattermost-server | {
"vulnerable": true,
"advisory_id": "GO-2026-5484",
"cve": "CVE-2026-3495",
"aliases": [
"CVE-2026-3495",
"GHSA-jx93-pf6x-874r"
],
"cwe": null,
"ecosystem": "Go",
"package": "github.com/mattermost/mattermost-server",
"severity": "unknown",
"affected_versions": ">=10.11.0+incompatible, <11.5... |
supply_chain_sca | python | null | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: PyPI
Manifest: requirements.txt
Package: logilab-common
Installed version: <0.60.1
Summary: The (1) extract_keys_from_pdf and (2) fill_pdf functions in pdf_ext.py in logilab-commons before 0.61.0 allows local users to overwrite arbitrary files and possibly have other unspecified impact via a... | {
"vulnerable": true,
"advisory_id": "PYSEC-2014-83",
"cve": "CVE-2014-1838",
"aliases": [
"CVE-2014-1838",
"GHSA-rr52-wg7f-8875"
],
"cwe": null,
"ecosystem": "PyPI",
"package": "logilab-common",
"severity": "unknown",
"affected_versions": ">=0, <0.60.1",
"fixed_version": "0.60.1",
"find... |
supply_chain_sca | go | CWE-476 | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: Go
Manifest: go.mod
Package: github.com/lxc/incus/v6/cmd/incusd
Installed version: <7.0.0
Summary: Incus has a Nil-Pointer Dereference via Custom Volume Import | {
"vulnerable": true,
"advisory_id": "GHSA-r7w7-mmxr-47r9",
"cve": "CVE-2026-40197",
"aliases": [
"CVE-2026-40197",
"GO-2026-5612"
],
"cwe": "CWE-476",
"ecosystem": "Go",
"package": "github.com/lxc/incus/v6/cmd/incusd",
"severity": "high",
"affected_versions": ">=0, <7.0.0",
"fixed_version... |
ast_vuln_detection | c | null | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | random_32(void)
{
for(;;)
{
png_byte mark[4];
png_uint_32 result;
store_pool_mark(mark);
result = png_get_uint_32(mark);
if (result != 0)
return result;
}
}
| {
"vulnerable": true,
"cwe": null,
"cwe_name": null,
"severity": "high",
"cve": "CVE-2016-3751",
"project": "Android",
"vulnerable_lines": [
4
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
"token_ast_map": [
{
"token"... |
supply_chain_sca | javascript | CWE-89 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: npm
Manifest: package.json
Package: @cubejs-backend/api-gateway
Installed version: 0.31.23
Summary: @cubejs-backend/api-gateway row level security bypass | {
"vulnerable": true,
"advisory_id": "GHSA-6jqm-3c9g-pch7",
"cve": "CVE-2022-23510",
"aliases": [
"CVE-2022-23510"
],
"cwe": "CWE-89",
"ecosystem": "npm",
"package": "@cubejs-backend/api-gateway",
"severity": "high",
"affected_versions": ">=0.31.23, <0.31.24",
"fixed_version": "0.31.24",
"fi... |
supply_chain_sca | c | null | OSV (osv.dev) / Debian & Alpine security trackers | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: Debian:12
Manifest: distro package manager (apt/apk)
Package: linux
Installed version: <6.1.37-1
Summary: In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: always release netdev hooks from notifier This reverts "netfilter: nf_tables: skip netdev events generated o... | {
"vulnerable": true,
"advisory_id": "DEBIAN-CVE-2023-54200",
"cve": null,
"aliases": [],
"cwe": null,
"ecosystem": "Debian:12",
"package": "linux",
"severity": "unknown",
"affected_versions": ">=0, <6.1.37-1",
"fixed_version": "6.1.37-1",
"finding": "In the Linux kernel, the following vulnerabili... |
supply_chain_sca | python | CWE-78 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: PyPI
Manifest: requirements.txt
Package: pygments
Installed version: 1.2.2
Summary: Command Injection in Pygments | {
"vulnerable": true,
"advisory_id": "GHSA-fff8-4w9p-7v76",
"cve": "CVE-2015-8557",
"aliases": [
"CVE-2015-8557",
"PYSEC-2016-32"
],
"cwe": "CWE-78",
"ecosystem": "PyPI",
"package": "pygments",
"severity": "critical",
"affected_versions": ">=1.2.2, <2.1",
"fixed_version": "2.1",
"finding... |
supply_chain_sca | javascript | CWE-426 | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: npm
Manifest: package.json
Package: turbo
Installed version: 1.1.0
Summary: Turbo: Unexpected local code execution during Yarn Berry detection | {
"vulnerable": true,
"advisory_id": "GHSA-3qcw-2rhx-2726",
"cve": "CVE-2026-45772",
"aliases": [
"CVE-2026-45772"
],
"cwe": "CWE-426",
"ecosystem": "npm",
"package": "turbo",
"severity": "low",
"affected_versions": ">=1.1.0, <2.9.14",
"fixed_version": "2.9.14",
"finding": "Turbo: Unexpected... |
ast_vuln_detection | c | CWE-399 | DiverseVul (real labeled functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static void usb_pwc_disconnect(struct usb_interface *intf)
{
struct pwc_device *pdev;
int hint;
lock_kernel();
pdev = usb_get_intfdata (intf);
usb_set_intfdata (intf, NULL);
if (pdev == NULL) {
PWC_ERROR("pwc_disconnect() Called without private pointer.\n");
goto disconnect_out;
}
if (pdev->udev == NULL) {... | {
"vulnerable": true,
"cwe": "CWE-399",
"cwe_name": "Resource Management Errors",
"severity": "high",
"project": "linux-2.6",
"note": "Function labeled vulnerable in a real project (DiverseVul). Function-level label; inspect memory/bounds/lifetime operations.",
"ast_top_level": [
"translation_unit",
... |
ast_vuln_detection | c | CWE-59 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static inline int mount_entry_on_systemfs(struct mntent *mntent)
{
return mount_entry_on_generic(mntent, mntent->mnt_dir);
}
| {
"vulnerable": true,
"cwe": "CWE-59",
"cwe_name": "see MITRE CWE",
"severity": "high",
"cve": "CVE-2015-1335",
"project": "lxc",
"vulnerable_lines": [
3
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
"token_ast_map": [
{
... |
ast_vuln_detection | python | CWE-78 | curated SAST pattern + tree-sitter AST | Perform AST-based static analysis on the following python code. Detect the security vulnerability, locate the vulnerable tokens and their AST nodes, and output a structured finding. | import os
def run():
input = request.args.get('file')
os.system('tar -czf backup.tgz ' + input)
| {
"vulnerable": true,
"cwe": "CWE-78",
"cwe_name": "OS Command Injection",
"title": "Command injection via os.system",
"severity": "critical",
"vulnerable_lines": [
4
],
"sink_node_type": "call",
"ast_path": [
"module",
"function_definition",
"block",
"expression_statement",
"c... |
supply_chain_sca | csharp | CWE-119 | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: NuGet
Manifest: packages.config / .csproj (NuGet)
Package: Magick.NET-Q16-AnyCPU
Installed version: <14.10.4
Summary: ImageMagick is vulnerable to Heap Overflow when writing extremely large image profile in the PNG encoder | {
"vulnerable": true,
"advisory_id": "GHSA-qmw5-2p58-xvrc",
"cve": "CVE-2026-30883",
"aliases": [
"CVE-2026-30883"
],
"cwe": "CWE-119",
"ecosystem": "NuGet",
"package": "Magick.NET-Q16-AnyCPU",
"severity": "moderate",
"affected_versions": ">=0, <14.10.4",
"fixed_version": "14.10.4",
"finding... |
ast_vuln_detection | c | CWE-787 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static int mptsas_process_scsi_io_request(MPTSASState *s,
MPIMsgSCSIIORequest *scsi_io,
hwaddr addr)
{
MPTSASRequest *req;
MPIMsgSCSIIOReply reply;
SCSIDevice *sdev;
int status;
mptsas_fix_scsi_io_endianness(scsi_io... | {
"vulnerable": true,
"cwe": "CWE-787",
"cwe_name": "Out-of-bounds Write",
"severity": "high",
"cve": "CVE-2016-7423",
"project": "qemu",
"vulnerable_lines": [
21
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
"token_ast_map": [... |
ast_vuln_detection | c | CWE-119 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | FLAC__bool read_metadata_vorbiscomment_(FLAC__StreamDecoder *decoder, FLAC__StreamMetadata_VorbisComment *obj, unsigned length)
{
FLAC__uint32 i;
FLAC__ASSERT(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
/* read vendor string */
if (length >= 8) {
length -= 8; /* vendor string length + n... | {
"vulnerable": true,
"cwe": "CWE-119",
"cwe_name": "Improper Restriction of Operations within Memory Buffer Bounds",
"severity": "high",
"cve": "CVE-2016-2429",
"project": "Android",
"vulnerable_lines": [],
"sink_node_type": null,
"ast_path": null,
"token_ast_map": null,
"explanation": "Function ... |
ast_vuln_detection | c | CWE-119 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)
{
uint8_t byte;
if (bytestream2_get_bytes_left(&s->g) < 5)
return AVERROR_INVALIDDATA;
/* nreslevels = number of resolution levels
= number of decomposition level +1 */
c->nreslevels = bytestream2_get_byt... | {
"vulnerable": true,
"cwe": "CWE-119",
"cwe_name": "Improper Restriction of Operations within Memory Buffer Bounds",
"severity": "high",
"cve": "CVE-2013-7018",
"project": "FFmpeg",
"vulnerable_lines": [],
"sink_node_type": null,
"ast_path": null,
"token_ast_map": null,
"explanation": "Function w... |
ast_vuln_detection | c | CWE-119 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | void rng_backend_request_entropy(RngBackend *s, size_t size,
EntropyReceiveFunc *receive_entropy,
void *opaque)
{
RngBackendClass *k = RNG_BACKEND_GET_CLASS(s);
if (k->request_entropy) {
k->request_entropy(s, size, receive_entropy, ... | {
"vulnerable": true,
"cwe": "CWE-119",
"cwe_name": "Improper Restriction of Operations within Memory Buffer Bounds",
"severity": "high",
"cve": "CVE-2016-2858",
"project": "qemu",
"vulnerable_lines": [
8
],
"sink_node_type": "if_statement",
"ast_path": [
"translation_unit",
"function_de... |
ast_vuln_detection | c | null | DiverseVul (real labeled functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | void inet_frags_init_net(struct netns_frags *nf)
{
nf->nqueues = 0;
init_frag_mem_limit(nf);
INIT_LIST_HEAD(&nf->lru_list);
} | {
"vulnerable": true,
"cwe": null,
"cwe_name": null,
"severity": "high",
"project": "linux",
"note": "Function labeled vulnerable in a real project (DiverseVul). Function-level label; inspect memory/bounds/lifetime operations.",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
ast_vuln_detection | c | CWE-310 | DiverseVul (real labeled functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | int rsa_rsaes_pkcs1_v15_decrypt( rsa_context *ctx,
int mode, size_t *olen,
const unsigned char *input,
unsigned char *output,
size_t output_max_len)
{
int ret, correct = 1;
size_t ... | {
"vulnerable": true,
"cwe": "CWE-310",
"cwe_name": "see MITRE CWE",
"severity": "high",
"project": "polarssl",
"note": "Function labeled vulnerable in a real project (DiverseVul). Function-level label; inspect memory/bounds/lifetime operations.",
"ast_top_level": [
"translation_unit",
"function_d... |
ast_vuln_detection | c | null | BigVul (real non-vulnerable functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static void eexec_byte(byte b)
{
if (in_eexec)
output_byte(eencrypt(b));
else
output_byte(b);
}
| {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "t1utils",
"note": "Non-vulnerable function from a real project (BigVul label vul=0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
supply_chain_sca | python | null | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: PyPI
Manifest: requirements.txt
Package: papermerge
Installed version: 1.2.0
Summary: Multiple cross-site scripting (XSS) vulnerabilities in Papermerge before 1.5.2 allow remote attackers to inject arbitrary web script or HTML via the rename, tag, upload, or create folder function. The... | {
"vulnerable": true,
"advisory_id": "PYSEC-2020-74",
"cve": "CVE-2020-29456",
"aliases": [
"CVE-2020-29456",
"GHSA-9w49-m7xh-5r39"
],
"cwe": null,
"ecosystem": "PyPI",
"package": "papermerge",
"severity": "unknown",
"affected_versions": ">=1.2.0, <1.5.2",
"fixed_version": "1.5.2",
"find... |
supply_chain_sca | go | CWE-400 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: Go
Manifest: go.mod
Package: github.com/miekg/dns
Installed version: <1.0.10
Summary: miekg/dns parsing error leads to nil pointer dereference and DoS | {
"vulnerable": true,
"advisory_id": "GHSA-9jcx-pr2f-qvq5",
"cve": "CVE-2018-17419",
"aliases": [
"CVE-2018-17419",
"GO-2020-0028"
],
"cwe": "CWE-400",
"ecosystem": "Go",
"package": "github.com/miekg/dns",
"severity": "high",
"affected_versions": ">=0, <1.0.10",
"fixed_version": "1.0.10",
... |
supply_chain_sca | javascript | CWE-78 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: npm
Manifest: package.json
Package: limdu
Installed version: <0.9.5
Summary: Command Injection in Limdu | {
"vulnerable": true,
"advisory_id": "GHSA-77qv-gh6f-pgh4",
"cve": "CVE-2020-4066",
"aliases": [
"CVE-2020-4066"
],
"cwe": "CWE-78",
"ecosystem": "npm",
"package": "limdu",
"severity": "low",
"affected_versions": ">=0, <0.9.5",
"fixed_version": "0.9.5",
"finding": "Command Injection in Limdu... |
ast_vuln_detection | c | null | DiverseVul (real non-vulnerable functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static int bad_file_readdir(struct file *filp, void *dirent, filldir_t filldir)
{
return -EIO;
} | {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "linux-2.6",
"note": "Non-vulnerable function from a real project (DiverseVul label 0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
vuln_patch | c | CWE-20 | BigVul (real CVE fix pairs) | The following C function contains a known security vulnerability (CWE-20). Produce the patched version and explain the fix. Output JSON. | static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata)
{
struct fsck_gitmodules_data *data = vdata;
const char *subsection, *key;
int subsection_len;
char *name;
if (parse_config_key(var, "submodule", &subsection, &subsection_len, &key) < 0 ||
!subsection)
return 0;
name = xmemdup... | {
"vulnerable": true,
"cwe": "CWE-20",
"cwe_name": "Improper Input Validation",
"cve": "CVE-2018-17456",
"fixed_code": "static int fsck_gitmodules_fn(const char *var, const char *value, void *vdata)\n{\n\tstruct fsck_gitmodules_data *data = vdata;\n\tconst char *subsection, *key;\n\tint subsection_len;\n\tcha... |
supply_chain_sca | csharp | CWE-601 | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: NuGet
Manifest: packages.config / .csproj (NuGet)
Package: UmbracoCms.Core
Installed version: 8.18.5
Summary: Umbraco CMS Open Redirect Bypass Protection | {
"vulnerable": true,
"advisory_id": "GHSA-j74q-mv2c-rxmp",
"cve": "CVE-2024-34071",
"aliases": [
"CVE-2024-34071"
],
"cwe": "CWE-601",
"ecosystem": "NuGet",
"package": "UmbracoCms.Core",
"severity": "moderate",
"affected_versions": ">=8.18.5, <8.18.14",
"fixed_version": "8.18.14",
"finding"... |
ast_vuln_detection | c | CWE-264 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | int inode_change_ok(const struct inode *inode, struct iattr *attr)
{
unsigned int ia_valid = attr->ia_valid;
/*
* First check size constraints. These can't be overriden using
* ATTR_FORCE.
*/
if (ia_valid & ATTR_SIZE) {
int error = inode_newsize_ok(inode, attr->ia_size);
if (error)
return error;
}
... | {
"vulnerable": true,
"cwe": "CWE-264",
"cwe_name": "Permissions/Privileges/Access Control",
"severity": "high",
"cve": "CVE-2014-4014",
"project": "linux",
"vulnerable_lines": [
23,
30,
40
],
"sink_node_type": "binary_expression",
"ast_path": [
"translation_unit",
"function_defi... |
ast_vuln_detection | c | CWE-119 | DiverseVul (real labeled functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static int jpc_crg_getparms(jpc_ms_t *ms, jpc_cstate_t *cstate, jas_stream_t *in)
{
jpc_crg_t *crg = &ms->parms.crg;
jpc_crgcomp_t *comp;
uint_fast16_t compno;
crg->numcomps = cstate->numcomps;
if (!(crg->comps = jas_alloc2(cstate->numcomps, sizeof(uint_fast16_t)))) {
return -1;
}
for (compno = 0, comp = crg->... | {
"vulnerable": true,
"cwe": "CWE-119",
"cwe_name": "Improper Restriction of Operations within Memory Buffer Bounds",
"severity": "high",
"project": "jasper",
"note": "Function labeled vulnerable in a real project (DiverseVul). Function-level label; inspect memory/bounds/lifetime operations.",
"ast_top_le... |
vuln_patch | c | CWE-119 | BigVul (real CVE fix pairs) | The following C function contains a known security vulnerability (CWE-119). Produce the patched version and explain the fix. Output JSON. | void usage_exit() {
fprintf(stderr,
"Usage: %s <codec> <width> <height> <infile> <outfile> "
"<keyframe-interval> [<error-resilient>]\nSee comments in "
"simple_encoder.c for more information.\n",
exec_name);
exit(EXIT_FAILURE);
}
| {
"vulnerable": true,
"cwe": "CWE-119",
"cwe_name": "Improper Restriction of Operations within Memory Buffer Bounds",
"cve": "CVE-2016-1621",
"fixed_code": "void usage_exit() {\nvoid usage_exit(void) {\n fprintf(stderr,\n \"Usage: %s <codec> <width> <height> <infile> <outfile> \"\n \... |
ast_vuln_detection | python | CWE-798 | curated SAST pattern + tree-sitter AST | Perform AST-based static analysis on the following python code. Detect the security vulnerability, locate the vulnerable tokens and their AST nodes, and output a structured finding. | def connect():
return db.connect(host='prod-db', user='admin', password='S3cr3t!Prod2021')
| {
"vulnerable": true,
"cwe": "CWE-798",
"cwe_name": "Use of Hard-coded Credentials",
"title": "Hard-coded database password",
"severity": "high",
"vulnerable_lines": [
2
],
"sink_node_type": "call",
"ast_path": [
"module",
"function_definition",
"block",
"return_statement",
"ca... |
ast_vuln_detection | c | CWE-476 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static int bmp_getint32(jas_stream_t *in, int_fast32_t *val)
{
int n;
uint_fast32_t v;
int c;
for (n = 4, v = 0;;) {
if ((c = jas_stream_getc(in)) == EOF) {
return -1;
}
v |= (c << 24);
if (--n <= 0) {
break;
}
v >>= 8;
}
if (val) {
*val = v;
}
return 0;
}
| {
"vulnerable": true,
"cwe": "CWE-476",
"cwe_name": "NULL Pointer Dereference",
"severity": "high",
"cve": "CVE-2016-8690",
"project": "jasper",
"vulnerable_lines": [
10
],
"sink_node_type": "for_statement",
"ast_path": [
"translation_unit",
"function_definition",
"compound_statement... |
ast_vuln_detection | c | CWE-200 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static int load_script(struct linux_binprm *bprm)
{
const char *i_arg, *i_name;
char *cp;
struct file *file;
char interp[BINPRM_BUF_SIZE];
int retval;
if ((bprm->buf[0] != '#') || (bprm->buf[1] != '!'))
return -ENOEXEC;
/*
* This section does the #! interpretation.
* Sorta complicated, but hopefully it wi... | {
"vulnerable": true,
"cwe": "CWE-200",
"cwe_name": "Exposure of Sensitive Information",
"severity": "high",
"cve": "CVE-2012-4530",
"project": "linux",
"vulnerable_lines": [
67
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
"to... |
supply_chain_sca | python | null | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: PyPI
Manifest: requirements.txt
Package: tensorflow
Installed version: 2.9.1
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "PyPI",
"package": "tensorflow",
"installed_version": "2.9.1",
"note": "tensorflow 2.9.1 is at or above the fixed version for PYSEC-2026-3257; no known advisory applies to this version."
} |
supply_chain_sca | python | CWE-409 | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: PyPI
Manifest: requirements.txt
Package: guarddog
Installed version: <2.7.1
Summary: GuardDog Zip Bomb Vulnerability in safe_extract() Allows DoS | {
"vulnerable": true,
"advisory_id": "GHSA-ffj4-jq7m-9g6v",
"cve": "CVE-2026-22870",
"aliases": [
"CVE-2026-22870",
"PYSEC-2026-1429"
],
"cwe": "CWE-409",
"ecosystem": "PyPI",
"package": "guarddog",
"severity": "high",
"affected_versions": ">=0, <2.7.1",
"fixed_version": "2.7.1",
"findin... |
supply_chain_sca | c | null | OSV (osv.dev) / Debian & Alpine security trackers | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Debian:12
Manifest: distro package manager (apt/apk)
Package: linux
Installed version: 4.8.15-1
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "Debian:12",
"package": "linux",
"installed_version": "4.8.15-1",
"note": "linux 4.8.15-1 is at or above the fixed version for DEBIAN-CVE-2016-8399; no known advisory applies to this version."
} |
supply_chain_sca | c | null | OSV (osv.dev) / Debian & Alpine security trackers | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Debian:12
Manifest: distro package manager (apt/apk)
Package: firefox-esr
Installed version: <102.14.0esr-1~deb12u1
Summary: In some circumstances, a stale value could have been used for a global variable in WASM JIT analysis. This resulted in incorrect compilation and a potentially exploitable crash in the ... | {
"vulnerable": true,
"advisory_id": "DEBIAN-CVE-2023-4046",
"cve": null,
"aliases": [],
"cwe": null,
"ecosystem": "Debian:12",
"package": "firefox-esr",
"severity": "unknown",
"affected_versions": ">=0, <102.14.0esr-1~deb12u1",
"fixed_version": "102.14.0esr-1~deb12u1",
"finding": "In some circums... |
ast_vuln_detection | c | CWE-362 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static inline bool is_flush_request(struct request *rq,
struct blk_flush_queue *fq, unsigned int tag)
{
return ((rq->cmd_flags & REQ_FLUSH_SEQ) &&
fq->flush_rq->tag == tag);
}
| {
"vulnerable": true,
"cwe": "CWE-362",
"cwe_name": "Race Condition",
"severity": "high",
"cve": "CVE-2015-9016",
"project": "linux",
"vulnerable_lines": [
2,
3,
4,
5,
6
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
... |
ast_vuln_detection | c | null | DiverseVul (real non-vulnerable functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | isdn_unlock_drivers(void)
{
int i;
for (i = 0; i < ISDN_MAX_DRIVERS; i++) {
if (!dev->drv[i])
continue;
isdn_unlock_driver(dev->drv[i]);
}
} | {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "linux-2.6",
"note": "Non-vulnerable function from a real project (DiverseVul label 0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
supply_chain_sca | csharp | CWE-401 | OSV (osv.dev) / GitHub Advisory Database | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: NuGet
Manifest: packages.config / .csproj (NuGet)
Package: Magick.NET-Q16-AnyCPU
Installed version: <14.15.0
Summary: ImageMagick: Memory Leak in MIFF encoder when allocaton fails | {
"vulnerable": true,
"advisory_id": "GHSA-r628-69v2-2f9c",
"cve": "CVE-2026-61869",
"aliases": [
"CVE-2026-61869"
],
"cwe": "CWE-401",
"ecosystem": "NuGet",
"package": "Magick.NET-Q16-AnyCPU",
"severity": "low",
"affected_versions": ">=0, <14.15.0",
"fixed_version": "14.15.0",
"finding": "I... |
supply_chain_sca | go | null | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: Go
Manifest: go.mod
Package: github.com/lima-vm/lima
Installed version: <0.16.0
Summary: In Lima, a malicious disk image could read a single file on the host filesystem as a qcow2/vmdk backing file in github.com/lima-vm/lima | {
"vulnerable": true,
"advisory_id": "GO-2023-1803",
"cve": "CVE-2023-32684",
"aliases": [
"CVE-2023-32684",
"GHSA-f7qw-jj9c-rpq9"
],
"cwe": null,
"ecosystem": "Go",
"package": "github.com/lima-vm/lima",
"severity": "unknown",
"affected_versions": ">=0, <0.16.0",
"fixed_version": "0.16.0",... |
ast_vuln_detection | c | CWE-125 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | static inline signed int ReadPropertyMSBLong(const unsigned char **p,
size_t *length)
{
union
{
unsigned int
unsigned_value;
signed int
signed_value;
} quantum;
int
c;
register ssize_t
i;
unsigned char
buffer[4];
size_t
value;
if (*length < 4)
return... | {
"vulnerable": true,
"cwe": "CWE-125",
"cwe_name": "Out-of-bounds Read",
"severity": "high",
"cve": "CVE-2016-5842",
"project": "ImageMagick",
"vulnerable_lines": [
22,
33,
34,
35,
36,
37
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"... |
ast_vuln_detection | c | null | DiverseVul (real non-vulnerable functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static int jpc_ppt_dumpparms(jpc_ms_t *ms, FILE *out)
{
jpc_ppt_t *ppt = &ms->parms.ppt;
fprintf(out, "ind=%d; len = %d;\n", ppt->ind, ppt->len);
if (ppt->len > 0) {
fprintf(out, "data =\n");
jas_memdump(out, ppt->data, ppt->len);
}
return 0;
} | {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "jasper",
"note": "Non-vulnerable function from a real project (DiverseVul label 0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
supply_chain_sca | c | null | OSV (osv.dev) / Debian & Alpine security trackers | Analyze the following third-party dependency for known supply-chain security advisories and output the result as JSON. | Ecosystem: Debian:10
Manifest: distro package manager (apt/apk)
Package: ruby-loofah
Installed version: 2.2.3-1+deb10u2
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "Debian:10",
"package": "ruby-loofah",
"installed_version": "2.2.3-1+deb10u2",
"note": "ruby-loofah 2.2.3-1+deb10u2 is at or above the fixed version for DLA-3565-1; no known advisory applies to this version."
} |
vuln_patch | c | CWE-476 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | static int jp2_pclr_getdata(jp2_box_t *box, jas_stream_t *in)
{
jp2_pclr_t *pclr = &box->data.pclr;
int lutsize;
unsigned int i;
unsigned int j;
int_fast32_t x;
pclr->lutdata = 0;
if (jp2_getuint16(in, &pclr->numlutents) ||
jp2_getuint8(in, &pclr->numchans)) {
return -1;
}
lutsize = pclr->numluten... | {
"vulnerable": true,
"cwe": "CWE-476",
"cwe_name": "NULL Pointer Dereference",
"cve": "CVE-2017-6850",
"fixed_code": "static int jp2_pclr_getdata(jp2_box_t *box, jas_stream_t *in)\n{\n\tjp2_pclr_t *pclr = &box->data.pclr;\n\tint lutsize;\n\tunsigned int i;\n\tunsigned int j;\n \tint_fast32_t x;\n \n \tpclr->... |
vuln_patch | cpp | CWE-189 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C++ function. Return the fixed code and a short rationale as JSON. | SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPad,
SplashColorMode modeA, GBool alphaA,
GBool topDown) {
width = widthA;
height = heightA;
mode = modeA;
switch (mode) {
case splashModeMono1:
rowSize = (width + 7) >> 3;
break;
case splashModeMono8:
rowSize = width;
br... | {
"vulnerable": true,
"cwe": "CWE-189",
"cwe_name": "Numeric Errors",
"cve": "CVE-2009-3605",
"fixed_code": "SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPad,\n\t\t\t SplashColorMode modeA, GBool alphaA,\n\t\t\t GBool topDown) {\n width = widthA;\n height = heightA;\n mode = modeA;\n swi... |
supply_chain_sca | python | null | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: PyPI
Manifest: requirements.txt
Package: zope2
Installed version: 2.7.0
Summary: Zope allows local users to read arbitrary files | {
"vulnerable": true,
"advisory_id": "GHSA-jcjp-qqpq-pc54",
"cve": "CVE-2006-3458",
"aliases": [
"CVE-2006-3458"
],
"cwe": null,
"ecosystem": "PyPI",
"package": "zope2",
"severity": "low",
"affected_versions": ">=2.7.0, <2.7.8",
"fixed_version": "2.7.8",
"finding": "Zope allows local users t... |
supply_chain_sca | javascript | CWE-204 | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: npm
Manifest: package.json
Package: ghost
Installed version: 5.18.0
Summary: Ghost: Member existence leak via magic link sign-in response | {
"vulnerable": true,
"advisory_id": "GHSA-chgm-3698-jm42",
"cve": "CVE-2026-53947",
"aliases": [
"BIT-ghost-2026-53947",
"CVE-2026-53947"
],
"cwe": "CWE-204",
"ecosystem": "npm",
"package": "ghost",
"severity": "moderate",
"affected_versions": ">=5.18.0, <6.21.2",
"fixed_version": "6.21.2... |
ast_vuln_detection | c | CWE-119 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | void WT_InterpolateMono (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame)
{
EAS_I32 *pMixBuffer;
const EAS_I8 *pLoopEnd;
const EAS_I8 *pCurrentPhaseInt;
EAS_I32 numSamples;
EAS_I32 gain;
EAS_I32 gainIncrement;
EAS_I32 currentPhaseFrac;
EAS_I32 phaseInc;
EAS_I32 tmp0;
EAS_I32 tmp1;
... | {
"vulnerable": true,
"cwe": "CWE-119",
"cwe_name": "Improper Restriction of Operations within Memory Buffer Bounds",
"severity": "high",
"cve": "CVE-2016-0838",
"project": "Android",
"vulnerable_lines": [],
"sink_node_type": null,
"ast_path": null,
"token_ast_map": null,
"explanation": "Function ... |
vuln_patch | c | CWE-125 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | PHP_FUNCTION( locale_get_script )
{
get_icu_value_src_php( LOC_SCRIPT_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU );
}
| {
"vulnerable": true,
"cwe": "CWE-125",
"cwe_name": "Out-of-bounds Read",
"cve": "CVE-2016-5093",
"fixed_code": "PHP_FUNCTION( locale_get_script ) \nPHP_FUNCTION( locale_get_script )\n {\n \tget_icu_value_src_php( LOC_SCRIPT_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU );\n }\n",
"change_summary": "Fix bug #72241... |
supply_chain_sca | c | null | OSV (osv.dev) / Debian & Alpine security trackers | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Debian:4.0
Manifest: distro package manager (apt/apk)
Package: openexr
Installed version: <1.2.2-4.3+etch2
Summary: openexr - several vulnerabilities | {
"vulnerable": true,
"advisory_id": "DSA-1842-1",
"cve": null,
"aliases": [],
"cwe": null,
"ecosystem": "Debian:4.0",
"package": "openexr",
"severity": "unknown",
"affected_versions": ">=0, <1.2.2-4.3+etch2",
"fixed_version": "1.2.2-4.3+etch2",
"finding": "openexr - several vulnerabilities",
"r... |
supply_chain_sca | go | null | OSV (osv.dev) / GitHub Advisory Database | You are a software composition analysis (SCA) engine. Determine whether the dependency below is affected by a known supply-chain vulnerability and report the finding as JSON. | Ecosystem: Go
Manifest: go.mod
Package: github.com/cilium/cilium
Installed version: 1.13.2
Summary: assess against known advisories | {
"vulnerable": false,
"ecosystem": "Go",
"package": "github.com/cilium/cilium",
"installed_version": "1.13.2",
"note": "github.com/cilium/cilium 1.13.2 is at or above the fixed version for GO-2023-1785; no known advisory applies to this version."
} |
vuln_patch | c | CWE-264 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | static unsigned long randomize_stack_top(unsigned long stack_top)
{
unsigned int random_variable = 0;
if ((current->flags & PF_RANDOMIZE) &&
!(current->personality & ADDR_NO_RANDOMIZE)) {
random_variable = get_random_int() & STACK_RND_MASK;
random_variable <<= PAGE_SHIFT;
}
#ifdef CONFIG_STACK_GROWSUP... | {
"vulnerable": true,
"cwe": "CWE-264",
"cwe_name": "Permissions/Privileges/Access Control",
"cve": "CVE-2015-1593",
"fixed_code": " static unsigned long randomize_stack_top(unsigned long stack_top)\n {\n\tunsigned long random_variable = 0;\n \n \tif ((current->flags & PF_RANDOMIZE) &&\n \t\t!(current->person... |
vuln_patch | c | CWE-120 | BigVul (real CVE fix pairs) | Remediate the vulnerability in this C function. Return the fixed code and a short rationale as JSON. | static int mwifiex_update_vs_ie(const u8 *ies, int ies_len,
struct mwifiex_ie **ie_ptr, u16 mask,
unsigned int oui, u8 oui_type)
{
struct ieee_types_header *vs_ie;
struct mwifiex_ie *ie = *ie_ptr;
const u8 *vendor_ie;
vendor_ie = cfg80211_find_vendor_ie(oui, oui_type, ies, ies_len);
if (vendor_ie) {
if ... | {
"vulnerable": true,
"cwe": "CWE-120",
"cwe_name": "Classic Buffer Overflow",
"cve": "CVE-2019-14816",
"fixed_code": "static int mwifiex_update_vs_ie(const u8 *ies, int ies_len,\n\t\t\t\tstruct mwifiex_ie **ie_ptr, u16 mask,\n\t\t\t\tunsigned int oui, u8 oui_type)\n{\n\tstruct ieee_types_header *vs_ie;\n\tst... |
ast_vuln_detection | go | null | curated secure pattern + tree-sitter AST | You are a static application security testing (SAST) engine. Parse the go source into its AST, map tokens to AST nodes, and report any vulnerability as JSON. | func ping(w http.ResponseWriter, r *http.Request) {
data := r.FormValue("name")
out, _ := exec.Command("ping", "-c", "1", data).Output()
w.Write(out)
}
| {
"vulnerable": false,
"cwe": null,
"findings": [],
"note": "Secure pattern: exec.Command with separate args (no shell). No injection/traversal sink reachable from untrusted input.",
"ast_top_level": [
"source_file",
"function_declaration"
]
} |
ast_vuln_detection | c | null | DiverseVul (real non-vulnerable functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static unsigned long atalk_sum_skb(const struct sk_buff *skb, int offset,
int len, unsigned long sum)
{
int start = skb_headlen(skb);
int i, copy;
/* checksum stuff in header space */
if ( (copy = start - offset) > 0) {
if (copy > len)
copy = len;
sum = atalk_sum_partial(skb->data + offset, copy, sum... | {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "history",
"note": "Non-vulnerable function from a real project (DiverseVul label 0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
ast_vuln_detection | c | null | BigVul (real non-vulnerable functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static void vhost_scsi_aborted_task(struct se_cmd *se_cmd)
{
return;
}
| {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "linux",
"note": "Non-vulnerable function from a real project (BigVul label vul=0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
supply_chain_sca | go | CWE-862 | OSV (osv.dev) / GitHub Advisory Database | Act as a SAST/SCA tool. Given the package and version in a project's dependency manifest, detect any known vulnerability and return a structured advisory. | Ecosystem: Go
Manifest: go.mod
Package: github.com/goharbor/harbor
Installed version: <2.0.3
Summary: Authenticated users can exploit an enumeration vulnerability in Harbor | {
"vulnerable": true,
"advisory_id": "GHSA-q9p8-33wc-h432",
"cve": "CVE-2020-13794",
"aliases": [
"BIT-harbor-2020-13794",
"CVE-2020-13794",
"GO-2022-0865"
],
"cwe": "CWE-862",
"ecosystem": "Go",
"package": "github.com/goharbor/harbor",
"severity": "moderate",
"affected_versions": ">=0, ... |
ast_vuln_detection | c | null | DiverseVul (real non-vulnerable functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | pfm_context_alloc(void)
{
pfm_context_t *ctx;
/*
* allocate context descriptor
* must be able to free with interrupts disabled
*/
ctx = kzalloc(sizeof(pfm_context_t), GFP_KERNEL);
if (ctx) {
DPRINT(("alloc ctx @%p\n", ctx));
}
return ctx;
} | {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "linux-2.6",
"note": "Non-vulnerable function from a real project (DiverseVul label 0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
vuln_patch | c | CWE-20 | BigVul (real CVE fix pairs) | The following C function contains a known security vulnerability (CWE-20). Produce the patched version and explain the fix. Output JSON. | static apr_status_t parse_chunk_size(http_ctx_t *ctx, const char *buffer,
apr_size_t len, int linelimit)
{
apr_size_t i = 0;
while (i < len) {
char c = buffer[i];
ap_xlate_proto_from_ascii(&c, 1);
/* handle CRLF after the chunk */
if (ctx->state == BODY_CHUNK_EN... | {
"vulnerable": true,
"cwe": "CWE-20",
"cwe_name": "Improper Input Validation",
"cve": "CVE-2015-3183",
"fixed_code": " static apr_status_t parse_chunk_size(http_ctx_t *ctx, const char *buffer,\n apr_size_t len, int linelimit)\n {\n apr_size_t i = 0;\n \n while (i < ... |
ast_vuln_detection | c | null | DiverseVul (real non-vulnerable functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static ssize_t bad_file_sendpage(struct file *file, struct page *page,
int off, size_t len, loff_t *pos, int more)
{
return -EIO;
} | {
"vulnerable": false,
"cwe": null,
"findings": [],
"project": "linux-2.6",
"note": "Non-vulnerable function from a real project (DiverseVul label 0).",
"ast_top_level": [
"translation_unit",
"function_definition"
]
} |
vuln_patch | c | CWE-399 | BigVul (real CVE fix pairs) | The following C function contains a known security vulnerability (CWE-399). Produce the patched version and explain the fix. Output JSON. | set_hunkmax (void)
{
if (!p_line)
p_line = (char **) malloc (hunkmax * sizeof *p_line);
if (!p_len)
p_len = (size_t *) malloc (hunkmax * sizeof *p_len);
if (!p_Char)
p_Char = malloc (hunkmax * sizeof *p_Char);
}
| {
"vulnerable": true,
"cwe": "CWE-399",
"cwe_name": "Resource Management Errors",
"cve": "CVE-2014-9637",
"fixed_code": " set_hunkmax (void)\n {\n if (!p_line)\n\tp_line = (char **) xmalloc (hunkmax * sizeof *p_line);\n if (!p_len)\n\tp_len = (size_t *) xmalloc (hunkmax * sizeof *p_len);\n if (!p_... |
ast_vuln_detection | c | CWE-200 | BigVul (real CVE-fixed functions) | Perform AST-based static analysis on the following real-world C function. Determine if it is vulnerable, and if so locate the vulnerable region and report a structured finding. | static unsigned create_oops_dump_dirs(GList *oops_list, unsigned oops_cnt)
{
unsigned countdown = MAX_DUMPED_DD_COUNT; /* do not report hundreds of oopses */
log_notice("Saving %u oopses as problem dirs", oops_cnt >= countdown ? countdown : oops_cnt);
char *cmdline_str = xmalloc_fopen_fgetline_fclose("/pr... | {
"vulnerable": true,
"cwe": "CWE-200",
"cwe_name": "Exposure of Sensitive Information",
"severity": "high",
"cve": "CVE-2015-1870",
"project": "abrt",
"vulnerable_lines": [],
"sink_node_type": null,
"ast_path": null,
"token_ast_map": null,
"explanation": "Function was modified by the security fix... |
ast_vuln_detection | cpp | CWE-20 | BigVul (real CVE-fixed functions) | You are a static application security testing (SAST) engine. Parse the C++ function into its AST, map tokens to AST nodes, decide whether it contains a security vulnerability, and report as JSON. | AviaryScheddPlugin::processJob(const char *key,
const char *,
int )
{
PROC_ID id;
ClassAd *jobAd;
if (!IS_JOB(key)) return false;
id = getProcByString(key);
if (id.cluster < 0 || id.proc < 0) {
dprintf(D_FULLDEBUG, "Failed to parse key: %s - skipping\n", key);
... | {
"vulnerable": true,
"cwe": "CWE-20",
"cwe_name": "Improper Input Validation",
"severity": "high",
"cve": "CVE-2012-4462",
"project": "htcondor",
"vulnerable_lines": [
12
],
"sink_node_type": "function_definition",
"ast_path": [
"translation_unit",
"function_definition"
],
"token_as... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.