mlsanityData to 14 Oct 2026

SecVulEval: Benchmarking LLMs for Real-World C/C++ Vulnerability Detection

arXiv 2505.19828 ↗First posted 26 May 2025cs.SEcited by 19

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have shown promise in software engineering tasks, but evaluating their effectiveness in vulnerability detection is challenging due to the lack of high-quality datasets. Most existing datasets are limited to function-level labels, ignoring finer-grained vulnerability patterns and crucial contextual information. Also, poor data quality such as mislabeling, inconsistent annotations, and duplicates can lead to inflated performance and weak generalization. Moreover, by including only the functions, these datasets miss broader program context, like data/control dependencies and interprocedural interactions, that are essential for accurately understanding real-world security flaws. Without this context, detection models are evaluated under unrealistic assumptions. To address these limitations, this paper introduces SecVulEval, a benchmark designed to support fine-grained evaluation of LLMs and other detection methods with rich contextual information. SecVulEval focuses on real-world C/C++ vulnerabilities at the statement level. This granularity enables more precise evaluation of a model's ability to localize vulnerabilities, beyond simple binary classification at the function level. By incorporating rich contextual information, SecVulEval sets a new standard for vulnerability detection benchmarks in realistic scenarios. This benchmark includes 25,440 function samples covering 5,867 unique CVEs in C/C++ projects from 1999 to 2024. We evaluated the SOTA LLMs with a multi-agent-based approach. The evaluation on our dataset shows that the models are still far from accurately predicting vulnerable statements in a given function. The best-performing Claude-3.7-Sonnet model achieves 23.83% F1-score for detecting vulnerable statements with correct reasoning. Finally, we analyze the LLM outputs and provide insights into their behavior in vulnerability detection for C/C++.

Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). First posted on arXiv 26 May 2025.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 14.

19 papers.

Sort:

By area:

  1. 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?cited by 4
  2. 2025AI Code in the Wild: Measuring Security Risks and Ecosystem Shifts of AI-Generated Code in Modern Softwarecited by 4
  3. 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detectioncited by 4
  4. 2026ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefensecited by 4
  5. 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detectioncited by 3
  6. 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimizationcited by 3
  7. 2026DREA: Decoupled Reasoning and Exploration Agents for Repository-Level Vulnerability Detectioncited by 3
  8. 2025Beyond Single Bugs: Benchmarking Large Language Models for Multi-Vulnerability Detectioncited by 1
  9. 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Modelscited by 1
  10. 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
  11. 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detectioncited by 0
  12. 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coveragecited by 0
7 more
  1. 2026Needles at Scale: LLM-Assisted Target Selection for Windows Vulnerability Researchcited by 0
  2. 2026Security in a Workflow: Exploring Role-Based Agentic Architectures for Vulnerability Handlingcited by 0
  3. 2026Multi-Source Cybersecurity Logs: An ATT&CK-Labeled Dataset and SLM Evaluationcited by 0
  4. 2026Evaluating LLMs for Real-World Web Vulnerability Detectioncited by 0
  5. 2026Neuro-Symbolic Reasoning for Vulnerability Detectioncited by 0
  6. 2026FuzzingBrain-Bench V1: Evaluating Open-Ended Bug Discovery by LLMscited by 0
  7. 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scalecited by 0