← Lab /Software

Per-commit SAST misses 87% of multi-commit Python vulnerabilities

Per-commit static analysis detects only 13% of real-world Python vulnerabilities that span multiple commits

Software arXiv 23 Apr 2026 Benchmark Prototype evidence

Published as “CrossCommitVuln-Bench: A Dataset of Multi-Commit Python Vulnerabilities Invisible to Per-Commit Static Analysis”

Why it matters

The results demonstrate that current snapshot-based SAST pipelines miss most multi-commit vulnerabilities, motivating the development of cross-commit analysis techniques.

Summary

The paper finds that per-commit static analysis tools detect only 13% of multi-commit Python vulnerabilities (CCDR) and even when scanning the full pre-fix codebase they catch just 27% (CDR), meaning 87% of such chains are invisible to snapshot-based SAST. They built a curated benchmark of 15 real-world CVEs with annotated multi-commit chains and evaluated Semgrep and Bandit in both per-commit and cumulative modes. The evidence comes from running these tools on each contributing commit and on the full vulnerable snapshot, showing a large detection gap. The dataset and evaluation scripts are released openly for further research.

What they found 1

  1. Per-commit detection rate (CCDR) is 13% across the 15 CVEs.

    “CCDR = 13% (2/15 CVEs caught per-commit).”

Caveats 5

  • Both per-commit detections are qualitatively poor, suggesting the practical CCDR is effectively lower than the nominal 13%.
  • Even in cumulative mode 73% of chains remain invisible, indicating snapshot-based SAST tools miss the majority of multi-commit vulnerabilities.
  • Single annotator. All chains were annotated by the author.
  • Two SAST tools. We evaluated Semgrep and Bandit.
  • Python only. The benchmark is Python-specific.

What’s new here 4

  • Provides the first publicly released dataset of real-world multi-commit Python vulnerabilities with detailed commit-chain annotations.
  • Introduces an annotation schema that captures why each commit evades per-commit analysis.
  • Establishes baseline per-commit and cumulative detection rates for popular SAST tools on this new benchmark.
  • Offers open-source evaluation scripts to enable reproducible replication and future tool development.