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.
Published: 2026-08-14
Score: 2 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Fri, 14 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Capstone-engine
Capstone-engine capstone
Vendors & Products Capstone-engine
Capstone-engine capstone

Fri, 14 Aug 2026 18:15:00 +0000

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'}


Subscriptions

Capstone-engine Capstone
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-14T17:49:36.804Z

Reserved: 2026-05-28T14:33:01.180Z

Link: CVE-2026-49263

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-14T18:17:30.643

Modified: 2026-08-14T18:17:30.643

Link: CVE-2026-49263

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T19:30:04Z

Weaknesses