CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2019 · Webassembly

CVE-2019-7154
Webassembly Binaryen vulnerability

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

Binaryen. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Webassembly Binaryen runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Webassembly products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.