On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Models
Not on the map. Why?
Abstract (arXiv)
Many studies have developed Machine Learning (ML) approaches to detect Software Vulnerabilities (SVs) in functions and fine-grained code statements that cause such SVs. However, there is little work on leveraging such detection outputs for data-driven SV assessment to give information about exploitability, impact, and severity of SVs. The information is important to understand SVs and prioritize their fixing. Using large-scale data from 1,782 functions of 429 SVs in 200 real-world projects, we investigate ML models for automating function-level SV assessment tasks, i.e., predicting seven Common Vulnerability Scoring System (CVSS) metrics. We particularly study the value and use of vulnerable statements as inputs for developing the assessment models because SVs in functions are originated in these statements. We show that vulnerable statements are 5.8 times smaller in size, yet exhibit 7.5-114.5% stronger assessment performance (Matthews Correlation Coefficient (MCC)) than non-vulnerable statements. Incorporating context of vulnerable statements further increases the performance by up to 8.9% (0.64 MCC and 0.75 F1-Score). Overall, we provide the initial yet promising ML-based baselines for function-level SV assessment, paving the way for further research in this direction.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 30 of its 91 references that are in the map. First posted on arXiv 16 Mar 2022.
Builds on
30 of 91 references.
References · 30
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2016Enriching Word Vectors with Subword Informationcited by 1,578
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2018Model Evaluation, Model Selection, and Algorithm Selection in Machine Learningcited by 157
- 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 91
- 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
- 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
18 more
- 2018Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanismscited by 53
- 2020CC2Vec: Distributed Representations of Code Changescited by 38
- 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
- 2018The Impact of Class Rebalancing Techniques on the Performance and Interpretation of Defect Prediction Modelscited by 29
- 2019A Manually-Curated Dataset of Fixes to Vulnerabilities of Open-Source Softwarecited by 28
- 2020Evaluating Representation Learning of Code Changes for Predicting Patch Correctness in Program Repaircited by 22
- 2021VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatementscited by 20
- 2021A Survey on Data-driven Software Vulnerability Assessment and Prioritizationcited by 18
- 2021Automated Software Vulnerability Assessment with Concept Driftcited by 15
- 2020Predicting Defective Lines Using a Model-Agnostic Techniquecited by 14
- 2020A Large-scale Study of Security Vulnerability Support on Developer Q&A Websitescited by 12
- 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learningcited by 11
- 2020PUMiner: Mining Security Posts from Developer Question and Answer Websites with PU Learningcited by 10
- 2021VulSPG: Vulnerability detection based on slice property graph representation learningcited by 7
- 2021Automated Security Assessment for the Internet of Thingscited by 6
- 2018Beyond Metadata: Code-centric and Usage-based Analysis of Known Vulnerabilities in Open-source Softwarecited by 4
- 2018Predicting Good Configurations for GitHub and Stack Overflow Topic Modelscited by 3
- 2021An Investigation into Inconsistency of Software Vulnerability Severity across Data Sourcescited by 1
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 2; 2026: 1.
5 papers.
- 2025LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurationscited by 9
- 2024Software Vulnerability Prediction in Low-Resource Languages: An Empirical Study of CodeBERT and ChatGPTcited by 8
- 2023Learning Defect Prediction from Unrealistic Datacited by 5
- 2026AgenticVM: Agentic AI for Adaptive Software Vulnerability Managementcited by 2
- 2025Resource-Efficient Automatic Software Vulnerability Assessment via Knowledge Distillation and Particle Swarm Optimizationcited by 0
- 2026AgenticVM: Agentic AI for Adaptive Software Vulnerability Management3 May 2026
- 2025Resource-Efficient Automatic Software Vulnerability Assessment via Knowledge Distillation and Particle Swarm Optimization30 Jul 2025
- 2025LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurations4 Feb 2025
- 2024Software Vulnerability Prediction in Low-Resource Languages: An Empirical Study of CodeBERT and ChatGPT26 Apr 2024
- 2023Learning Defect Prediction from Unrealistic Data2 Nov 2023