Out-of-bounds Write Affecting binaryen package, versions <66-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.09% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-BINARYEN-259526
  • published29 Jan 2019
  • disclosed29 Jan 2019

Introduced: 29 Jan 2019

CVE-2019-7154  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Debian:unstable binaryen to version 66-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream binaryen package and not the binaryen package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Scores

version 3.1