Numeric Truncation Error Affecting capstone-engine/capstone package, versions [,6.0.0-Alpha9)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd 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-CAPSTONEENGINECAPSTONE-18856234
  • published16 Aug 2026
  • disclosed14 Aug 2026
  • creditsondt99, zxcvbbq

Introduced: 14 Aug 2026

NewCVE-2026-49263  (opens in a new tab)
CWE-197  (opens in a new tab)

How to fix?

Upgrade capstone-engine/capstone to version 6.0.0-Alpha9 or higher.

Overview

Affected versions of this package are vulnerable to Numeric Truncation Error in read_brtable in arch/WASM/WASMDisassembler.c. An attacker can cause no-progress disassembly or parser desynchronization by supplying a large, well-formed br_table instruction through cs_disasm() or cs_disasm_iter(). The decoder accumulates the br_table payload length in a wider temporary, then returns it through the 16-bit instruction-size path used by Capstone’s WASM disassembler. When the encoded instruction reaches 65,536 bytes or more, the returned size wraps or becomes too small, so callers can keep decoding the same input or advance into the middle of the instruction stream, causing availability loss and incorrect analysis output.

CVSS Base Scores

version 4.0
version 3.1