Lune

ASE2021Top-tier venue

An Empirical Study of Bugs in WebAssembly Compilers

Alan Romano, Xinyue Liu, Yonghwi Kwon, Weihang Wang

Abstract

WebAssembly is the newest programming language for the Web. It defines a portable bytecode format for use as a compilation target for programs developed in high-level languages such as C, C++, and Rust. As a result, WebAssembly binaries are generally created by WebAssembly compilers rather than being written manually. To port native code to the Web, WebAssembly compilers need to address the differences between the source and target languages and dissimilarities in their execution environments. A deep understanding of the bugs in WebAssembly compilers can help compiler developers determine where to focus development and testing efforts. In this paper, we conduct two empirical studies to understand the characteristics of the bugs found in WebAssembly compilers. First, we perform a qualitative analysis of bugs in Emscripten, the most widely-used WebAssembly compiler. We investigate 146 bug reports in Emscripten related to the unique challenges WebAssembly compilers encounter compared with traditional compilers. Second, we provide a quantitative analysis of 1,054 bugs in three open-source WebAssembly compilers, AssemblyScript, Emscripten, and Rustc/Wasm-Bindgen. We analyze these bugs along three dimensions: lifecycle, impact, and sizes of bug-inducing inputs and bug fixes. These studies deepen our understanding of WebAssembly compiler bugs. We hope that the findings of our study will shed light on opportunities to design practical tools for testing and debugging WebAssembly compilers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

14 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Exploring Missed Optimizations in WebAssembly Optimizers cites An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • Exploring Missed Optimizations in WebAssembly Optimizers cites Swivel: Hardening WebAssembly against Spectre
  • Exploring Missed Optimizations in WebAssembly Optimizers cites Everything Old is New Again: Binary Security of WebAssembly
  • WaDec: Decompiling WebAssembly Using Large Language Model cites An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • WADIFF: A Differential Testing Framework for WebAssembly Runtimes cites An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases
  • WADIFF: A Differential Testing Framework for WebAssembly Runtimes cites Everything Old is New Again: Binary Security of WebAssembly
  • MinerRay: Semantics-Aware Analysis for Ever-Evolving Cryptojacking Detection cites MineSweeper: An In-depth Look into Drive-by Cryptocurrency Mining and Its Defense
  • An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases cites MineSweeper: An In-depth Look into Drive-by Cryptocurrency Mining and Its Defense
  • An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use Cases cites Everything Old is New Again: Binary Security of WebAssembly
  • Swivel: Hardening WebAssembly against Spectre cites Everything Old is New Again: Binary Security of WebAssembly
  • Everything Old is New Again: Binary Security of WebAssembly cites MineSweeper: An In-depth Look into Drive-by Cryptocurrency Mining and Its Defense
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers14

  1. Exploring Missed Optimizations in WebAssembly OptimizersZhibo Liu, Dongwei Xiao, Zongjie Li, Shuai Wang et al.ISSTA 2023 · 24 citations
  2. Interoperability in Deep Learning: A User Survey and Failure Analysis of ONNX Model ConvertersPurvish Jajal, Wenxin Jiang, Arav Tewari, Erik Kocinare et al.ISSTA 2024 · 19 citations
  3. WADIFF: A Differential Testing Framework for WebAssembly RuntimesShiyao Zhou, Muhui Jiang, Weimin Chen, Hao Zhou et al.ASE 2023 · 14 citations
  4. A Generative and Mutational Approach for Synthesizing Bug-Exposing Test Cases to Guide Compiler FuzzingGuixin Ye, Tianmin Hu, Zhanyong Tang, Zhenye Fan et al.FSE 2023 · 14 citations
  5. WaDec: Decompiling WebAssembly Using Large Language ModelXinyu She, Yanjie Zhao, Haoyu WangASE 2024 · 9 citations

Builds on5

  1. MineSweeper: An In-depth Look into Drive-by Cryptocurrency Mining and Its DefenseRadhesh Krishnan Konoth, Emanuele Vineti, Veelasha Moonsamy, Martina Lindorfer et al.CCS 2018 · 162 citations
  2. An Empirical Study of Real-World WebAssembly Binaries: Security, Languages, Use CasesAaron Hilbig, Daniel Lehmann, Michael PradelWWW 2021 · 114 citations
  3. Swivel: Hardening WebAssembly against SpectreShravan Narayan, Craig Disselkoen, Daniel Moghimi, Sunjay Cauligi et al.USENIX Security 2021 · 74 citations
  4. MinerRay: Semantics-Aware Analysis for Ever-Evolving Cryptojacking DetectionAlan Romano, Yunhui Zheng, Weihang WangASE 2020 · 30 citations
  5. Everything Old is New Again: Binary Security of WebAssemblyDaniel Lehmann, Johannes Kinder, Michael PradelUSENIX Security 2020

Related papers

  1. When Function Inlining Meets WebAssembly: Counterintuitive Impacts on Runtime PerformanceAlan Romano, Weihang WangFSE 2023 · 7 citations
  2. Two Mechanisations of WebAssembly 1.0Conrad Watt, Xiaojia Rao, Jean Pichon-Pharabod, Martin Bodin et al.FM 2021 · 32 citations
  3. RGFuzz: Rule-Guided Fuzzer for WebAssembly RuntimesJunyoung Park, Yunho Kim, Insu YunS&P 2025
  4. WBSan: WebAssembly Bug Detection for Sanitization and Binary-Only FuzzingXiao Wu, Junzhou He, Liyan Huang, Cai Fu et al.WWW 2025 · 5 citations
  5. LWDIFF: an LLM-Assisted Differential Testing Framework for Webassembly RuntimesShiyao Zhou, Jincheng Wang, He Ye, Hao Zhou et al.ICSE 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines