arrow
Return

Code Language Models for Security Patch Management: How Far are We?

delete2026-05-05
delete0
PRE
AI
X
Xingwei Lin
S
Sicong Cao
L
Le Yu
X
Xiaobing Sun
F
Fu Xiao
L
Lei Xue
吴
吴春明 (Chunming Wu)
K
Kui Ren
D
David Lo
DOI:10.1109/tsc.2026.3690594delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The rapid expansion of open-source software has also brought significant security challenges to cloud infrastructure, particularly introducing and propagating vulnerabilities. In response, effective security patch management establishes a continuous, structured pipeline by systematically identifying, testing, and deploying security patches to fix vulnerabilities. However, manually managing a large number of security patches (i.e., any update is approved and installed by hand) is time-consuming, leading to a great motivation for automating this process. Although Code Language Models (CodeLMs) have shown potential in various code-centric tasks, there remains an open question as to how well CodeLMs perform within the context of security patch management. To bridge this gap, we performed the first comprehensive empirical study on fine-tuning or prompting nine state-of-the-art CodeLMs for three security-patch-related downstream tasks, including silent patch identification (distinguishing security patches from normal commits), record-patch linking (connecting authoritative vulnerability records, e.g., CVE, to the corresponding fixing commits), and vulnerability description generation (providing a piece of text summarizing the vulnerability fixed by the patch), covering classification, ranking, and generation problems. Our findings reveal that there is no “one-size-fits-all” model that can always perform the best. Furthermore, due to the lack of task-specific knowledge, naively prompting LLMs with the basic strategies is not consistently reliable and may even underperform smaller PTMs. Additionally, existing automated evaluation metrics cannot fully reflect the capability of LLMs in considered tasks. These findings underscore the considerable gap between current capabilities and the practical requirements for deploying CodeLMs in automating security patch management.
Keywords:
Automated patch management
large language models
OSS vulnerabilities

Journal

IEEE Transactions on Services Computing cover
IEEE Transactions on Services Computing
IF:
5.8
Papers:
2.2K
Citations:
6.5K

Organization

S
Sun Yat-Sen University
Scholars:
1.1W
Papers: 3.0K
Citations: 0
N
nanjing university of posts and telecommunications
Scholars:
3.8K
Papers: 1.6K
Citations: 0
S
singapore management university
Scholars:
371
Papers: 278
Citations: 0
Y
yangzhou university
Scholars:
9.3K
Papers: 2.9K
Citations: 2
Z
zhejiang university
Scholars:
17.7W
Papers: 12.1W
Citations: 152
researcher View more organizations
Cited Papers

Cited Papers

Finding A Needle in a Haystack: Automated Mining of Silent Vulnerability Fixes
err2021-11-01
err0
PREAI
errJiayuan Zhou; Michael Pacheco; Zhiyuan Wan; Xin Xia; David Lo; Yuan Wang; Ahmed E. Hassan
errShare
errSave
BLEU
err2001-01-01
err0
errOAAI
errKishore Papineni; Salim Roukos; Todd Ward; Wei-Jing Zhu
errShare
errSave
Automating code review activities by large-scale pre-training
err2022-11-09
err0
errOAAI
errZhiyu Li; Shuai Lu; Daya Guo; Nan Duan; Shailesh Jannu; Grant Jenks; Deep Majumder; Jared Green; Alexey Svyatkovskiy; Shengyu Fu; Neel Sundaresan
errShare
errSave
errShare
errSave
Automated Mapping of Vulnerability Advisories onto their Fix Commits in Open Source Repositories
err2024-06-04
err1
errOAAI
errHommersom, Daan; Sabetta, Antonino; Coppola, Bonaventura; Di Nucci, Dario; Tamburri, Damian A.
errShare
errSave
Vulnerability Detection with Code Language Models: How Far are We?
err2025-04-26
err0
PREAI
errDing,Yangruibo; Fu,Yanjun; Ibrahim,Omniyyah; Sitawarin,Chawin; Chen,Xinyun; Alomair,Basel; Wagner,David; Ray,Baishakhi; Chen,Yizheng
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
errShare
errSave
Detecting and Augmenting Missing Key Aspects in Vulnerability Descriptions
err2022-04-09
err18
PREAI
errGuo, Hao; Chen, Sen; Xing, Zhenchang; Li, Xiaohong; Bai, Yude; Sun, Jiamou
errShare
errSave
Automatic software vulnerability assessment by extracting vulnerability elements
err2023-10-01
err7
PREAI
errSun, Xiaobing; Ye, Zhenlei; Bo, Lili; Wu, Xiaoxue; Wei, Ying; Zhang, Tao; Li, Bin
errShare
errSave
researcher View more