What’s Vulnerable › Vulnerabilities
CVE-2019-7154
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2019-01-29 · updated 2026-06-17
- Weakness: CWE-787
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.
Affected products
- WebAssembly Binaryen: before 65 — fixed in 65
How to fix
Upgrade to a fixed version: WebAssembly Binaryen 65. Check the vendor advisory for mitigations.
References
- https://github.com/WebAssembly/binaryen/issues/1876
- https://github.com/WebAssembly/binaryen/issues/1876
Get alerted when CVE-2019-7154 or the next vulnerability affects your stack