Fuzzing

Hand-drawn bold terracotta threads enter a dense maze of linen corridors and sand, umber and moss hatched walls from the left, most ending early and a few branching far to the right.

Fuzzing is automated testing that runs a program on large numbers of generated inputs and watches for failures, most often crashes. It began in 1988 as a student assignment that tested Unix utilities, and it now runs continuously on about 1,000 open-source projects (Miller, n.d.; Miller et al., 1990; Google, n.d.f). Modern fuzzers differ in how much information about each run they use, and one survey groups them as black-box, greybox and whitebox (Manès et al., 2019). Researchers dispute how much each refinement adds, and reviews found widespread methodological problems in published evaluations of fuzzers (Klees et al., 2018; Schloegel et al., 2024).

Kinds of fuzzers

The split by how much a fuzzer observes is the standard classification, though its terms vary. One survey groups them into black-box, greybox and whitebox fuzzers according to the amount of execution information each run reports back (Manès et al., 2019). A survey of fuzzers for stateful systems, programs whose response depends on earlier messages, calls this division fairly standard but notes that terminology varies between papers (Daniele et al., 2024).

Greybox fuzzing uses coverage to steer input generation. Coverage is a record of which parts of the code a run executed. A greybox fuzzer changes, or mutates, inputs and uses coverage to guide those changes (Zeller et al., 2024). Fuzzers also differ in where inputs come from: mutation-based fuzzers alter existing sample inputs, while generation-based fuzzers build inputs from a description of the input format.

The word “mutation” has a second, unrelated meaning in testing. Mutation analysis changes the program’s code, not its input. It adds artificial faults and checks whether a test suite notices them (Zeller et al., 2024). It measures the strength of tests, and is covered with other generated tests in Automated test generation.

Origins

Fuzzing began as a reliability study of everyday command-line tools. Barton Miller dates the original graduate course assignment to the fall of 1988 (Miller, n.d.). The resulting 1990 paper was a systematic test of utility programs across versions of Unix, and it cited earlier random testing of hardware such as multiprocessor cache coherence protocols (Miller et al., 1990).

The same kind of random testing still finds failures decades later. In a 2020 follow-up from the same lab, 12% of the utilities tested failed on Linux, 16% on macOS and 19% on FreeBSD (Miller et al., 2020).

Symbolic execution, the basis of whitebox fuzzing, has a separate history. James King described EFFIGY, a system that applied symbolic execution to testing and debugging, in 1976, and cited an earlier system, SELECT, presented in 1975 (King, 1976).

How coverage feedback helps

The benefit of coverage feedback depends on the setting, and few studies have measured it. On one proprietary system, the benefit depended substantially on whether a starting set of sample inputs (a seed corpus) existed, on the parser type, and on code size (Jang et al., 2024b). The same idea outside software, in fuzzing hardware circuit designs, gave improvements over random testing, most of all for circuits that report whether an input was valid (Laeufer et al., 2018).

No single way of measuring coverage is best. In an evaluation on 221 binary programs, no coverage metric dominated all others at exploring branches (Wang et al., 2019a).

Structured inputs

Studies disagree on whether fuzzers that understand an input’s structure beat byte-level mutation. Byte-level fuzzers mutate the raw bytes of an input. Structure-aware fuzzers mutate a parsed form of the input, such as a syntax tree.

The studies measure different things. On five Java programs, Zest, a structure-aware fuzzer, covered 1.03 to 2.81 times as many branches in the semantic-analysis stage as baseline techniques (Padhye et al., 2019). In a case study of three XML parsers, byte-level mutation found more crashes than mutation of the XML tree (Şentürk et al., 2025). The first counts code reached past the parser; the second counts crashes.

Structure may also allow smaller test inputs. Bonsai fuzzing produced inputs 16 to 45% smaller on average than a fuzz-then-reduce approach, with approximately the same code coverage and fault detection (Vikram et al., 2021).

Symbolic execution and hybrid fuzzing

Symbolic execution reasons about many inputs at once, but the evidence that adding it to a fuzzer helps is thin. It runs a program on symbols that stand for any input, instead of concrete values. Its main obstacle is path explosion: the number of paths to examine grows with the number of branches (Baldoni et al., 2016). Cadar and Sen attribute its growing practicality to advances in constraint solvers and to concolic methods, which combine concrete and symbolic execution (Cadar & Sen, 2013).

Whitebox fuzzing has run at industrial scale. Microsoft researchers reported over 400 machine years of whitebox fuzzing from 2007 to 2012, across hundreds of large Windows applications and several product releases (Bounimova et al., 2012).

Hybrid fuzzers pair a greybox fuzzer with concolic execution, but their gains look small. On a shared benchmark suite, the hybrid fuzzers tested had only a limited advantage overall over conventional coverage-guided fuzzers (Jiang et al., 2023a). In an earlier counterexample, on one dataset a fuzzing-only approach crashed at least as many binaries as a hybrid comparison, while using fewer computing resources (Wang et al., 2019a).

Deciding that a run failed

A fuzzer finds only the failures it can recognise. A test oracle is the procedure that tells correct from incorrect behaviour of the program under test (Barr et al., 2015).

When fuzzers were scored on noticing deliberate faults rather than on crashing, they detected only a small share. One evaluation planted many artificial changes in programs and found that current fuzzers could detect only a small percentage of them (Görz et al., 2023).

Running code is not the same as checking it: generated tests often execute faulty code without exposing the fault (Shamshiri et al., 2015). That result, and stronger oracles such as properties and comparisons between implementations, are covered in Automated test generation.

How trustworthy fuzzer evaluations are Strong evidence: many studies agree on this

Published claims that one fuzzer beats another often rest on flawed experiments. A 2018 review of 32 fuzzing papers found problems in every evaluation it considered (Klees et al., 2018). A later review of 150 papers from 2018 to 2023 found a widespread disregard of guidelines on statistical tests and systematic errors (Schloegel et al., 2024).

Fuzzer rankings depend on the programs and starting inputs chosen. Among eight fuzzers compared on one platform, none outperformed the others on every target program (Li et al., 2021d). On a benchmark of synthetic bugs, no fuzzer beat all others on all tests (Bundt et al., 2021). Where the seed corpus came from had a substantial effect on benchmark outcomes (Wolff et al., 2022).

Benchmarks also differ in what they count as success. FuzzBench can score fuzzers on code coverage or on bugs found (Metzman et al., 2021). Magma separates whether a run reached, triggered or detected each known bug (Hazimeh et al., 2020). Mutation analysis scores fuzzers on detecting deliberately changed program versions (Görz et al., 2023).

Results on planted bugs may not carry over to real ones. In one study, synthetic bugs were significantly easier to find than naturally occurring bugs in the same programs (Bundt et al., 2021). A review of research integrated into the AFL++ fuzzer found that progress in exercising new coverage had largely stalled across the three fuzzers studied (Schiller et al., 2026).

Fuzzing at scale

Continuous fuzzing services report large numbers of bugs, but the counts depend on how reports are grouped and filtered. Google’s OSS-Fuzz service reports having helped identify and fix 50,000 bugs across 1,000 projects as of May 2025 (Google, n.d.f). How quickly those bugs are fixed, and what fuzzing does to vulnerability counts, is covered in Secure software development.

Raw report counts overstate distinct bugs. Of 2,526 fixed reports from syzbot, a continuous fuzzer of the Linux kernel, 47.1% duplicated one or more other reports (Mu et al., 2022). A large study of OSS-Fuzz counted only reports marked fixed, and so left out the rest (Shirai et al., 2025).

When fuzzing stops finding bugs Weak evidence: few or small studies support this

Finding more bugs gets much more expensive. In experiments with two greybox fuzzers, finding linearly more bugs in the same time required exponentially more machines (Böhme & Falk, 2020).

A fuzzing campaign can estimate its remaining risk, but only under a model of how it samples inputs. Böhme proposed a statistical framework for testing inspired by the discovery of new species (Böhme, 2018). A later model defines a campaign’s residual risk as the chance that the next generated input discovers a bug. In the same study, estimators built for black-box fuzzing systematically and substantially underestimated the true risk of a greybox campaign (Böhme et al., 2021).

Adoption and practical cost

Where adoption has been measured, fuzzing is a small part of testing, and usability is among the barriers. In one study of open-source Go projects, fuzz tests made up 3.15% of testing functions (Nourry et al., 2024a). In a survey of fuzzing practitioners, usability was among the leading barriers to adoption for experienced participants (Wolff et al., n.d.).

Much of the work lies in the code being fuzzed. Intermediate and experienced participants reported fuzzing failures or inconsistent results caused by bad fuzzing targets (Nourry et al., 2023). Fuzzers also fail to build: one study mined over 1.2 million OSS-Fuzz build logs to examine fuzzing build failures (Nourry et al., 2024b).

Language-model agents can now write tests that compete with fuzzers on some projects. In one study, agent-written property tests covered more of PyTorch than domain-specific fuzzers did, while the fuzzers covered more of the compilers and of PostgreSQL (Naziri et al., 2026). Fuzzing of compilers is covered in Compilers, and a related randomised method for distributed systems, deterministic simulation, in Distributed systems. Fuzzing finds failures on the inputs it tries; proving their absence for all inputs is the aim of formal verification.

Further reading

  • Manès and colleagues, The art, science, and engineering of fuzzing: A survey (Manès et al., 2019): the standard taxonomy of fuzzers and a walk through each stage of a fuzzer’s design.
  • Zeller and colleagues, The Fuzzing Book (Zeller et al., 2024): an open, executable textbook that builds fuzzers step by step, from random inputs to coverage and grammars.
  • Klees and colleagues, Evaluating fuzz testing (Klees et al., 2018): the review that showed how fragile fuzzer comparisons are, with recommendations for running them.
  • Schloegel and colleagues, SoK: Prudent evaluation practices for fuzzing (Schloegel et al., 2024): a later and larger audit of fuzzing evaluations, with guidelines.
  • Cadar and Sen, Symbolic execution for software testing: Three decades later (Cadar & Sen, 2013): a short history of symbolic and concolic execution and what made them practical.
  • Böhme, Liyanage and Wüstholz, Estimating residual risk in greybox fuzzing (Böhme et al., 2021): how far a fuzzing campaign can say what it has not yet found.

Known gaps

What this article cannot tell you yet.

  1. Sanitizers and other crash and memory-error detectors that fuzzers depend on were not researched.
  2. Which program states fuzzers reach poorly, such as checksums, magic values, deep protocol states and concurrency bugs, was not researched with empirical sources.
  3. Grammar, protocol, API and kernel fuzzing were covered only through a few comparisons, not as subjects of their own.
  4. Directed fuzzing, crash triage and deduplication tools were not researched.
  5. No independent estimate of the total cost of industrial fuzzing, in machine time or developer labour, was found.
  6. Whether coverage-guided fuzzing beats symbolic execution alone, as opposed to hybrid fuzzing beating coverage-guided fuzzing, has thin comparative evidence.
  7. Language-model agents that write fuzz harnesses for byte-level fuzzers were not researched; only agent-written property tests compared with fuzzers were.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 39 references