Buffer Overflow Affecting bytecodealliance/wasmtime package, versions [,1.0.2)[2.0.0,2.0.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (33rd 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-UNMANAGED-BYTECODEALLIANCEWASMTIME-3112349
  • published11 Nov 2022
  • disclosed11 Nov 2022
  • creditAlex Crichton

Introduced: 11 Nov 2022

CVE-2022-39393  (opens in a new tab)
CWE-226  (opens in a new tab)

How to fix?

Upgrade bytecodealliance/wasmtime to version 1.0.2, 2.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow due to a bug in Wasmtime's implementation of its pooling instance allocator. When a linear memory is reused for another instance the initial heap snapshot of the prior instance can be visible, erroneously to the next instance.

Workaround

Users who are unable to upgrade to the fixed version can disable the pooling allocator and disable the memory-init-cow.

CVSS Base Scores

version 3.1