Evaluation of ChatGPT Model for Vulnerability Detection

In this technical report, we evaluated the performance of the ChatGPT and GPT-3 models for the task of vulnerability detection in code. Our evaluation was conducted on our real-world dataset, using binary and multi-label classification tasks on CWE vulnerabilities. We decided to evaluate the model because it has shown good performance on other code-based tasks, such as solving programming challenges and understanding code at a high level. However, we found that the ChatGPT model performed no better than a dummy classifier for both binary and multi-label classification tasks for code vulnerability detection.

Paper

References (12)

07CWE-200: Exposure of Sensitive Information to an Unauthorized ActorCWE-611: Improper Restriction of XML External Entity Reference 5
08Sang-Woo Lee, and Woomyeong Park2021 · Gpt3mix: Leveraging largescale language models for text augmentation
09CWE-611: Improper Restriction of XML External Entity Reference 5. CWE-200: Exposure of Sensitive Information to an Unauthorized Actor 6. There is no vulnerability in the code
10Which of these types of vulnerabilities is contained in the code? 1. CWE-502: Deserialization of Untrusted Data 2CWE
11CWE-20: Improper Input Validation
12CWE-502: Deserialization of Untrusted Data 2. CWE-79: Cross-site Scripting

Similar papers

© 2026 NYSGPT2525 LLC