← Lab /Software

Solidity compiler harbors 25 hidden miscompilation bugs uncovered by differential fuzzing

The authors assert they discovered 25 previously unnoticed miscompilation bugs in the Solidity compiler.

Software arXiv 8 Jul 2026 Measurement Prototype evidence

Published as “Finding and Understanding Miscompilation Bugs in the Solidity Compiler”

Why it matters

Early detection of miscompilation bugs can prevent faulty smart contracts from being deployed, reducing financial risk on the Ethereum blockchain.

Summary

SolSmith, a semantics-aware differential fuzz tester, discovered 25 previously unnoticed miscompilation bugs in the Solidity compiler over three years of testing. About two thirds of these bugs stem from optimizer errors, and the median bug persisted in the code base for 134 days, with some lasting years. The tool also uncovered 164 internal compiler errors, demonstrating that conventional testing misses many critical defects. Evidence comes from longitudinal analysis across multiple compiler releases and a detailed bug classification, though only a third of the bugs affected released code and none were rated high severity.

What they found 5

  1. 25 miscompilation bugs were discovered that had gone unnoticed for years.

    “During this time period, we have discovered 25 miscompilation bugs that went unnoticed, some for multiple years.”

  2. Over two thirds of the bugs are optimizer bugs (17 out of 25).

    “over two thirds (17 out of 25) are optimizer bugs, with the Yul optimizer alone accounting for 14.”

  3. The median miscompilation bug persisted for 134 days in the code base.

    “The median miscompilation bug persisted for 134 days;”

  4. SolSmith also found 164 internal compiler errors across releases.

    “In addition to the 25 miscompilation bugs, SolSmith has found 164 internal compiler errors:”

  5. Close to two thirds of miscompilation bugs occur due to incorrect optimization.

    “We find that (1) close to two thirds of miscompilation bugs occur due to incorrect optimization, and the rest due to incorrect code translation;”

Caveats 2

  • None of the bugs was rated high or critical severity, chiefly because the affected code patterns were judged unlikely to occur in typical production contracts.
  • Only about a third (8 out of 25) of miscompilation bugs found were in production code and assigned a severity rating.

What’s new here 4

  • Generates semantically valid Solidity programs to trigger code generation, unlike random black-box fuzzing.
  • Uses differential execution of two compiler configurations to detect miscompilations.
  • Integrates into the Solidity compiler's CI pipeline for early bug detection.
  • Provides a quantitative analysis of bug root causes and persistence over time.