CVE-2019-7154 Memory corruption in n/a

Medium 6.5 Published Updated

A heap-based buffer overflow in Binaryen's wasm2js tool allows attackers to cause a denial of service via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-7154?

CVE-2019-7154 is a medium-severity memory corruption vulnerability in n/a, published on 29 Jan 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-787

Which versions are affected by CVE-2019-7154?

It affects 1 product.

Products include Webassembly Binaryen.

How do I fix CVE-2019-7154?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-7154 being exploited?

There is no known exploitation of CVE-2019-7154 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2019-7154, GHSA-368j-92cq-wrg5, UBUNTU-CVE-2019-7154.

Is CVE-2019-7154 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free