CVE-Factory: Scaling Expert-Level Agentic Tasks for Code Security Vulnerability

📅 2026-02-03
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Existing evaluations of code security agents rely on manual vulnerability reproduction, which is costly, unscalable, and suffers from data lag. This work proposes the first multi-agent collaborative framework that automatically transforms sparse CVE metadata into executable, expert-level vulnerability repair tasks, establishing LiveCVEBench—a continuously updated benchmark—and synthesizing over a thousand training environments. By integrating automated CVE parsing, executable environment generation, and fine-tuning of Qwen3-32B, the approach achieves strong performance in task correctness (95%), environment fidelity (96%), and real-world vulnerability repair success rate (66.2%). Fine-tuned models show a substantial improvement on LiveCVEBench, with performance rising from 5.3% to 35.8%, surpassing Claude 4.5 Sonnet and advancing the scalable development of code security agents.

Technology Category

Application Category

📝 Abstract
Evaluating and improving the security capabilities of code agents requires high-quality, executable vulnerability tasks. However, existing works rely on costly, unscalable manual reproduction and suffer from outdated data distributions. To address these, we present CVE-Factory, the first multi-agent framework to achieve expert-level quality in automatically transforming sparse CVE metadata into fully executable agentic tasks. Cross-validation against human expert reproductions shows that CVE-Factory achieves 95\% solution correctness and 96\% environment fidelity, confirming its expert-level quality. It is also evaluated on the latest realistic vulnerabilities and achieves a 66.2\% verified success. This automation enables two downstream contributions. First, we construct LiveCVEBench, a continuously updated benchmark of 190 tasks spanning 14 languages and 153 repositories that captures emerging threats including AI-tooling vulnerabilities. Second, we synthesize over 1,000 executable training environments, the first large-scale scaling of agentic tasks in code security. Fine-tuned Qwen3-32B improves from 5.3\% to 35.8\% on LiveCVEBench, surpassing Claude 4.5 Sonnet, with gains generalizing to Terminal Bench (12.5\% to 31.3\%). We open-source CVE-Factory, LiveCVEBench, Abacus-cve (fine-tuned model), training dataset, and leaderboard. All resources are available at https://github.com/livecvebench/CVE-Factory .
Problem

Research questions and friction points this paper is trying to address.

code security
vulnerability reproduction
agentic tasks
CVE
executable tasks
Innovation

Methods, ideas, or system contributions that make the work stand out.

multi-agent framework
executable vulnerability tasks
CVE automation
LiveCVEBench
agentic code security
🔎 Similar Papers
No similar papers found.
Xianzhen Luo
Xianzhen Luo
Harbin Institute of Technology
Code IntelligenceInference Acceleration
Jingyuan Zhang
Jingyuan Zhang
Kuaishou
Natural Language ProcessingLarge Language Model
S
Shiqi Zhou
Language Agent Group, Research Center for Social Computing and Interactive Robotics, Harbin Institute of Technology
R
Rain Huang
Language Agent Group, Research Center for Social Computing and Interactive Robotics, Harbin Institute of Technology
Chuan Xiao
Chuan Xiao
Associate Professor, Osaka University
Agent-Based ModelingComputer SimulationData PreprocessingData ManagementData Science
Qingfu Zhu
Qingfu Zhu
Harbin Institute of Technology
NLPCode LLM
Z
Zhiyuan Ma
Language Agent Group, Research Center for Social Computing and Interactive Robotics, Harbin Institute of Technology
X
Xing Yue
Kuaishou Technology
Y
Yang Yue
Kuaishou Technology
W
Wencong Zeng
Kuaishou Technology
Wanxiang Che
Wanxiang Che
Professor of Harbin Institute of Technology
Natural Language Processing