Seedlabs
Source research

VULSOLVER: Vulnerability Detection via LLM-Driven Constraint Solving

Li, Xiang, Youfeng Su, Jiahao Liu, Zhiwei Lin, Y. H. Hou, Peiming Gao et al. · 2025 · 10 citationsRead the paper

Traditional vulnerability detection methods rely heavily on predefined rule matching, which often fails to capture vulnerabilities accurately. With the rise of large language models (LLMs), leveraging their ability to understand code semantics has emerged as a promising direction for achieving more accurate and efficient vulnerability detection. However, current LLM-based approaches face significant challenges: instability in model outputs, degraded performance with long context, and hallucination. As a result, many existing solutions either use LLMs merely to enrich predefined rule sets, thereby keeping the detection process fundamentally rule-based, or over-rely on them, leading to poor robustness. To address these challenges, we propose a constraint-solving approach powered by LLMs named VULSOLVER. By modeling vulnerability detection as a constraint-solving problem, and by integrating static application security testing (SAST) with the semantic reasoning capabilities of LLMs, our method enables the LLM to act like a professional human security expert. We assess VULSOLVER on the OWASP Benchmark (1,023 labeled samples), achieving 97.85% accuracy, 97.97% F1-score, and 100% recall. Applied to widely-used open-source projects, VULSOLVER identified 15 previously unknown high-severity vulnerabilities (CVSS 7.5-9.8), demonstrating its effectiveness in real-world security analysis.

What the full text shows

Working prototype
  • VULSOLVER achieved high overall detection performance on the OWASP Benchmark. — 97.85% accuracy, 97.97% F1-score, and 100% recall (OWASP Benchmark (1,023 labeled samples))
  • The method demonstrated zero missed vulnerabilities on the test set. — 0 false negatives (531/531 vulnerable samples correctly identified) (OWASP Benchmark)
  • VULSOLVER maintained 100% recall across specific vulnerability types. — 100% recall for Command Injection, Path Traversal, and SQL Injection (OWASP Benchmark)
  • The method identified previously unknown high-severity vulnerabilities in open-source projects. — 15 vulnerabilities (CVSS 7.5-9.8) (Widely-used open-source projects)
Setup
Evaluated using GPT-4, GPT-4-Turbo, DeepSeek-V3, and Kimi-K2 (temperature 0.3) on 1,023 OWASP Benchmark samples and selected open-source repositories.
How
The framework models vulnerability detection as a constraint-solving problem, integrating SAST (Tabby) to generate code information summaries. It uses a decomposed analysis process consisting of Branch Method Analysis (call tree pruning), Context Maintenance (semantic pruning and simplification), and Main Path Analysis to infer parameter states across call chains using LLMs.
Limitations
Performance varies by LLM model (e.g., Kimi-K2 outperformed GPT-4o in some categories). · Relies on an underlying SAST tool (Tabby) for initial code information summaries.

Summarized by Gemma 4 from the open-access full text · 22 Nov 2026. Read it