Buffer overflow in Webassembly Binaryen
CVE-2019-7154
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.011 (64.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 65th percentile — 64.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000
Affected products
Weakness classification (CWE)
References
- github.com/WebAssembly/binaryen/issues/1876 (Exploit, Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2019-7154?
- CVE-2019-7154 is a medium-severity vulnerability in Webassembly Binaryen, classified under Out-of-bounds Write. CVSS score: 6.5/10. Published 2019-01-29.
- How severe is CVE-2019-7154?
- Medium severity. CVSS v3 base score is 6.5 out of 10.