SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
Not on the map. Why?
Abstract (arXiv)
Fuzzing is an increasingly popular technique for verifying software functionalities and finding security vulnerabilities. However, current mutation-based fuzzers cannot effectively test database management systems (DBMSs), which strictly check inputs for valid syntax and semantics. Generation-based testing can guarantee the syntax correctness of the inputs, but it does not utilize any feedback, like code coverage, to guide the path exploration. In this paper, we develop Squirrel, a novel fuzzing framework that considers both language validity and coverage feedback to test DBMSs. We design an intermediate representation (IR) to maintain SQL queries in a structural and informative manner. To generate syntactically correct queries, we perform type-based mutations on IR, including statement insertion, deletion and replacement. To mitigate semantic errors, we analyze each IR to identify the logical dependencies between arguments, and generate queries that satisfy these dependencies. We evaluated Squirrel on four popular DBMSs: SQLite, MySQL, PostgreSQL and MariaDB. Squirrel found 51 bugs in SQLite, 7 in MySQL and 5 in MariaDB. 52 of the bugs are fixed with 12 CVEs assigned. In our experiment, Squirrel achieves 2.4x-243.9x higher semantic correctness than state-of-the-art fuzzers, and explores 2.0x-10.9x more new edges than mutation-based tools. These results show that Squirrel is effective in finding memory errors of database management systems.
Key facts. Cited by 4 papers in the map (data through 13 Oct 2026). First posted on arXiv 3 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 2; 2023: 0; 2024: 0; 2025: 0; 2026: 2.
4 papers.
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutationcited by 9
- 2022SLOPT: Bandit Optimization Framework for Mutation-Based Fuzzingcited by 1
- 2026LLM-Based Test Case Generation in DBMS through Monte Carlo Tree Searchcited by 1
- 2026Adversarial SQL Injection Generation with LLM-Based Architecturescited by 0
- 2026Adversarial SQL Injection Generation with LLM-Based Architectures11 May 2026
- 2026LLM-Based Test Case Generation in DBMS through Monte Carlo Tree Search23 Mar 2026
- 2022SLOPT: Bandit Optimization Framework for Mutation-Based Fuzzing7 Nov 2022
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutation21 Feb 2022