---
title: "Fuzzing collaboration with WINGFUZZ - Part 1"
description: "WINGFUZZ, a DBMS fuzzing engine, found eight new bugs in ClickHouse, some introduced only four months earlier, using two techniques."
url: "https://swe.quest/articles/fuzzing-collaboration-with-wingfuzz-part-1-659c66e435090a2d"
canonical: "https://clickhouse.com/blog/fuzzing-wingfuzz"
source: "ClickHouse"
published: "2023-08-08"
difficulty: "easy"
kind: "Case study"
reading_minutes: 4
tags: ["testing","vulnerability-research","databases","analytics"]
---

# Fuzzing collaboration with WINGFUZZ - Part 1

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-08-08, 4 min read, Case study. Original: [https://clickhouse.com/blog/fuzzing-wingfuzz](https://clickhouse.com/blog/fuzzing-wingfuzz)

## Summary

WINGFUZZ, a DBMS fuzzing engine, found eight new bugs in ClickHouse, some introduced only four months earlier, using two techniques. Grammar-free mutation builds a metadata graph from built-in SQL tests, reshuffles statements, and fixes semantic errors by metadata-guided substitution (Griffin). Type-affinity sequence generation uses coverage feedback to learn which SQL statement-type pairs matter and builds new sequences around them. ClickHouse is now integrating WINGFUZZ into its daily testing.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)

## Prerequisites

- fuzzing basics ([easy posts on Vulnerability research](https://swe.quest/tags/vulnerability-research.md?difficulty=easy))
- SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

ClickHouse, WINGFUZZ, Griffin, libFuzzer, AST Fuzzer

## Related posts

- [BuzzHouse: Bridging the database fuzzing gap for testing ClickHouse](https://swe.quest/articles/buzzhouse-bridging-the-database-fuzzing-gap-for-testing-clickhouse-7d42aa00b0761971.md): ClickHouse · 2025-01-21 · Medium · 8 min read · Testing, Databases, Analytics & OLAP, SQL
  BuzzHouse is a new ClickHouse fuzzer that generates complex but mostly semantically valid SQL backed by a tracked catalog of tables, filling a gap left by SQLsmith, SQLancer, the AST fuzzer and WINGFUZZ.
- [Fuzzing ClickHouse](https://swe.quest/articles/fuzzing-clickhouse-2e19ad8301dd21c4.md): ClickHouse · 2021-03-11 · Medium · 8 min read · Testing, Databases, Vulnerability research, CI/CD
  ClickHouse's AST-based query fuzzer takes SQL queries from the regression test suite, parses them, and randomly mutates the AST.
- [Decorating a Christmas Tree With the Help Of Flaky Tests](https://swe.quest/articles/decorating-a-christmas-tree-with-the-help-of-flaky-tests-286b59f771e1aae7.md): ClickHouse · 2021-12-27 · Medium · 3 min read · Testing, CI/CD, Concurrency
  ClickHouse treats flaky tests as bugs to investigate rather than noise to mute or retry, and deliberately makes tests flakier to surface hidden issues.
- [Fuzzer Blind Spots (Meet Jepsen!)](https://swe.quest/articles/fuzzer-blind-spots-meet-jepsen-95901ab1fc56e123.md): TigerBeetle · 2025-06-06 · Hard · 7 min read · Testing, Formal methods, Storage engines, Query engines, Debugging
  Jepsen found a missing-results bug in TigerBeetle's query engine despite four fuzzers covering it, because the VOPR and LSM query fuzzer pre-registered disjoint queries whose matching objects were always consecutive in every secondary index, so zig-zag merge join probing was never exercised.
- [On the Effectiveness of Mutational Grammar Fuzzing](https://swe.quest/articles/on-the-effectiveness-of-mutational-grammar-fuzzing-edf57a83d5fa06c9.md): Google Project Zero · 2026-03-05 · Hard · 9 min read · Vulnerability research, Testing
  Coverage-guided mutational grammar fuzzing has two weaknesses.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
