CVE-2026-49263

Capstone WASM `br_table` instruction-size truncation can cause no-progress disassembly and parser desynchronization

Published Aug 14, 2026 CVSS 4.0 · 2 Low EPSS < 1% KEV · Not listed
Description
Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's WebAssembly backend accepts attacker-controlled raw WASM instruction bytes through the public `cs_disasm()` and `cs_disasm_iter()` APIs. For a large but well-formed `br_table` instruction, the WASM decoder accumulates the immediate length in a wider local variable but returns it through a `uint16_t` instruction-size path. When the encoded instruction length is exactly 65,536 bytes, the size wraps to zero and `cs_disasm()` can repeatedly decode the same instruction without advancing. For larger lengths, `cs_disasm_iter()` advances into the middle of the `br_table` payload and decodes target bytes as subsequent instructions. This is an availability and parser-integrity issue. Version 6.0.0-Alpha9 patches the issue.

Analysis

AI-generated

Technical impact

A numeric truncation bug in Capstone’s WebAssembly backend lets an attacker supply a specially crafted br_table instruction that either causes the disassembler to stall or to misinterpret subsequent bytes as separate instructions. The bug leads to an infinite decoding loop or to a corrupted parsing state, which can exhaust CPU or memory resources and result in a denial‑of‑service condition. The CVSS score of 2.0 reflects a low base severity but the potential for continuous resource exhaustion should not be underestimated.

Affected Systems

The vulnerability affects the Capstone Engine’s Capstone disassembly library built before version 6.0.0‑Alpha9. Any deployment that links against an older Capstone core and exposes the public cs_disasm() or cs_disasm_iter() functions to untrusted input is at risk. Upgrading to the patched 6.0.0‑Alpha9 release provides the fix.

Risk and Exploitability

The vulnerability requires the ability to inject arbitrary WebAssembly bytes into the disassembly API, so it can be triggered by any component that processes user‑supplied WASM code. While it does not provide code execution, it can be leveraged to flood the system with large br_table payloads, causing the decoder to repeatedly parse the same instruction or to walk into the payload payload region. With no EPSS score available and the issue not listed in KEV, the likelihood of widespread exploitation is currently unknown, but the DoS potential warrants proactive mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Capstone Engine to version 6.0.0‑Alpha9 or later to apply the official patch.
  • Implement input validation to check the length of WASM instructions before passing them to cs_disasm() or cs_disasm_iter(), preventing truncated values from reaching the decoder.
  • Apply rate‑limiting or sandboxing around the disassembly API in environments that consume user‑supplied WebAssembly code to mitigate resource exhaustion attacks.

Generated by OpenCVE AI on August 14, 2026 at 19:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Capstone-engine
Capstone-engine capstone
Vendors & Products Capstone-engine
Capstone-engine capstone
Type Values Removed Values Added
Description Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's WebAssembly backend accepts attacker-controlled raw WASM instruction bytes through the public `cs_disasm()` and `cs_disasm_iter()` APIs. For a large but well-formed `br_table` instruction, the WASM decoder accumulates the immediate length in a wider local variable but returns it through a `uint16_t` instruction-size path. When the encoded instruction length is exactly 65,536 bytes, the size wraps to zero and `cs_disasm()` can repeatedly decode the same instruction without advancing. For larger lengths, `cs_disasm_iter()` advances into the middle of the `br_table` payload and decodes target bytes as subsequent instructions. This is an availability and parser-integrity issue. Version 6.0.0-Alpha9 patches the issue.
Title Capstone WASM `br_table` instruction-size truncation can cause no-progress disassembly and parser desynchronization
Weaknesses CWE-197
References
Metrics cvssV4_0

{'score': 2, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 17, 2026, 7:52 PM
Reserved
May 28, 2026, 2:33 PM
Status
Awaiting Analysis
Published
Aug 14, 2026, 6:17 PM
Modified
Sep 18, 2026, 8:05 PM