LLM4CVE: Enabling Iterative Automated Vulnerability Repair with Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Fakih, Mohamad, Dharmaji, Rahul, Bouzidi, Halima, Araya, Gustavo Quiros, Ogundare, Oluwatosin, Faruque, Mohammad Abdullah Al
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917885360734208
author Fakih, Mohamad
Dharmaji, Rahul
Bouzidi, Halima
Araya, Gustavo Quiros
Ogundare, Oluwatosin
Faruque, Mohammad Abdullah Al
author_facet Fakih, Mohamad
Dharmaji, Rahul
Bouzidi, Halima
Araya, Gustavo Quiros
Ogundare, Oluwatosin
Faruque, Mohammad Abdullah Al
contents Software vulnerabilities continue to be ubiquitous, even in the era of AI-powered code assistants, advanced static analysis tools, and the adoption of extensive testing frameworks. It has become apparent that we must not simply prevent these bugs, but also eliminate them in a quick, efficient manner. Yet, human code intervention is slow, costly, and can often lead to further security vulnerabilities, especially in legacy codebases. The advent of highly advanced Large Language Models (LLM) has opened up the possibility for many software defects to be patched automatically. We propose LLM4CVE an LLM-based iterative pipeline that robustly fixes vulnerable functions in real-world code with high accuracy. We examine our pipeline with State-of-the-Art LLMs, such as GPT-3.5, GPT-4o, Llama 38B, and Llama 3 70B. We achieve a human-verified quality score of 8.51/10 and an increase in groundtruth code similarity of 20% with Llama 3 70B. To promote further research in the area of LLM-based vulnerability repair, we publish our testing apparatus, fine-tuned weights, and experimental data on our website
format Preprint
id arxiv_https___arxiv_org_abs_2501_03446
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLM4CVE: Enabling Iterative Automated Vulnerability Repair with Large Language Models
Fakih, Mohamad
Dharmaji, Rahul
Bouzidi, Halima
Araya, Gustavo Quiros
Ogundare, Oluwatosin
Faruque, Mohammad Abdullah Al
Software Engineering
Cryptography and Security
Software vulnerabilities continue to be ubiquitous, even in the era of AI-powered code assistants, advanced static analysis tools, and the adoption of extensive testing frameworks. It has become apparent that we must not simply prevent these bugs, but also eliminate them in a quick, efficient manner. Yet, human code intervention is slow, costly, and can often lead to further security vulnerabilities, especially in legacy codebases. The advent of highly advanced Large Language Models (LLM) has opened up the possibility for many software defects to be patched automatically. We propose LLM4CVE an LLM-based iterative pipeline that robustly fixes vulnerable functions in real-world code with high accuracy. We examine our pipeline with State-of-the-Art LLMs, such as GPT-3.5, GPT-4o, Llama 38B, and Llama 3 70B. We achieve a human-verified quality score of 8.51/10 and an increase in groundtruth code similarity of 20% with Llama 3 70B. To promote further research in the area of LLM-based vulnerability repair, we publish our testing apparatus, fine-tuned weights, and experimental data on our website
title LLM4CVE: Enabling Iterative Automated Vulnerability Repair with Large Language Models
topic Software Engineering
Cryptography and Security
url https://arxiv.org/abs/2501.03446