Description
The main function in tools/wasm2js.cpp in Binaryen 1.38.22 has a heap-based buffer overflow because Emscripten is misused, triggering an error in cashew::JSPrinter::printAst() in emscripten-optimizer/simple_ast.h. A crafted input can cause segmentation faults, leading to denial-of-service, as demonstrated by wasm2js.
References (1)
Core 1
Core References
Exploit, Patch, Third Party Advisory x_refsource_misc
https://github.com/WebAssembly/binaryen/issues/1876
Scores
CVSS v3
6.5
EPSS
0.0043
EPSS Percentile
62.3%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Details
CWE
CWE-787
Status
published
Products (1)
webassembly/binaryen
< 65
Published
Jan 29, 2019
Tracked Since
Feb 18, 2026