arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.11019cs.CRcs.SE
收藏

PATCHEVAL:一个用于评估大语言模型修复真实世界漏洞能力的新型基准

PATCHEVAL: A New Benchmark for Evaluating LLMs on Patching Real-World Vulnerabilities

Huazhong University of Science and Technology(华中科技大学);ByteDance(字节跳动)

Zichao Wei, Jun Zeng, Ming Wen, Zeliang Yu, Kai Cheng, Yiding Zhu, Jingyi Guo, Shiqi Zhou, Le Yin, Xiaodong Su, Zhechao Ma

AI总结:

针对现有漏洞修复基准的缺陷,本文提出覆盖Go、JS、Python的多语言基准PATCHEVAL,基于千个近年CVE构建数据集并配套沙箱验证环境,评估主流LLM与智能体的漏洞修复能力以指导后续AVR研究。

摘要:

软件漏洞正以惊人的速度增长。然而,人工漏洞修复既耗时又耗费资源,现有自动化漏洞修复(AVR)技术的效果仍十分有限。大语言模型(LLMs)的最新进展为自动化漏洞修复开辟了新范式,取得了显著进展。为检验大语言模型在自动化漏洞修复中的能力,近期已有多个漏洞基准被提出,但这些基准仍存在关键局限:漏洞数据过时、覆盖编程语言有限、补丁验证不可靠、可复现性不足。为克服上述挑战,我们推出了PATCHEVAL,这是一个面向Go、JavaScript、Python三种语言的多语言基准,现有基准尚未覆盖这些语言的相关场景。PATCHEVAL从2015年至2025年间披露的通用漏洞披露(CVE)条目里整理了包含1000个漏洞的数据集,覆盖65种不同的通用缺陷枚举(CWE)类型。其中230个CVE构成的子集进一步配备了运行时沙箱环境,可同时通过安全测试和功能测试完成补丁验证。为系统比较基于大语言模型的漏洞修复效果,我们评估了一系列当前最先进的大语言模型与智能体,通过实证分析得出了关键洞见,可为未来自动化漏洞修复领域的研究提供指导。

英文摘要:

Software vulnerabilities are increasing at an alarming rate. However, manual patching is both time-consuming and resource-intensive, while existing automated vulnerability repair (AVR) techniques remain limited in effectiveness. Recent advances in large language models (LLMs) have opened a new paradigm for AVR, demonstrating remarkable progress. To examine the capability of LLMs in AVR, several vulnerability benchmarks have been proposed recently. However, they still suffer from key limitations of outdated vulnerabilities, limited language coverage, unreliable patch validation, and insufficient reproducibility. To overcome these challenges, we introduce PATCHEVAL, a multilingual benchmark for Go, JavaScript, and Python, languages for which existing benchmarks remain unexplored. PATCHEVAL curates a dataset of 1,000 vulnerabilities drawn from CVEs reported between 2015 and 2025, covering 65 distinct CWEs. A subset of 230 CVEs is further equipped with runtime sandbox environments, enabling patch verification through both security tests and functionality tests. To provide a systematic comparison of LLM-based vulnerability repair, we evaluate a series of state-of-the-art LLMs and agents, presenting an in-depth analysis that empirically yields key insights to guide future research in AVR.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑