Description
Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's public `cs_insn_name()` API forwards caller-supplied instruction IDs directly to the selected architecture backend. Most backends validate the ID before indexing instruction-name tables, but the M68K and RISCV backends have missing or incomplete bounds checks. On a Capstone handle opened for M68K or RISCV, a caller-controlled invalid instruction ID can trigger an out-of-bounds read and crash the process. The demonstrated impact is availability loss in applications or bindings that expose instruction-name lookup to untrusted IDs. No code execution or data disclosure was demonstrated. Version 6.0.0-Alpha9 patches the issue.
Published: 2026-08-14
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Capstone’s public API function cs_insn_name() forwards supplied instruction IDs directly to the chosen architecture backend. The M68K and RISCV backends lack proper bounds checking, so a caller can pass an invalid ID that triggers an out-of-bounds read when the backend indexes its instruction-name tables. The only demonstrated outcome is a process crash, resulting in an availability loss for applications or bindings that use cs_insn_name() with untrusted input. No remote code execution or data disclosure has been shown, and the weakness is categorized as an out-of-bounds read and integer validation vulnerability (CWE-125, CWE-129, CWE-191).

Affected Systems

The affected product is the Capstone disassembly engine maintained by capstone-engine:capstone. All releases before 6.0.0-Alpha9 are vulnerable when a handle is opened for the M68K or RISCV architecture. Users running Capstone with these backends should verify whether their applications supply instruction IDs that might be out of bounds, and plan to upgrade the library.

Risk and Exploitability

The CVSS score of 5.1 classifies the vulnerability as moderate, and the EPSS score is not available. Because the exploit requires an attacker to control the instruction ID passed to cs_insn_name(), the attack vector is likely local or confined to a component with untrusted input. Although the impact is limited to denial of service via a crash, the lack of mitigation in the backend means the vulnerability could be easily triggered. The issue is not listed in the CISA KEV catalog, suggesting no confirmed exploits yet, but the moderate severity warrants immediate remediation.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Capstone to version 6.0.0-Alpha9 or later
  • If an upgrade is not immediately possible, add input validation to ensure instruction IDs for M68K and RISCV are within the valid range before calling cs_insn_name()
  • Implement defensive programming to catch any out-of-bounds reads and gracefully handle failures, preventing the entire process from crashing

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:00:00 +0000

Type Values Removed Values Added
Description Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's public `cs_insn_name()` API forwards caller-supplied instruction IDs directly to the selected architecture backend. Most backends validate the ID before indexing instruction-name tables, but the M68K and RISCV backends have missing or incomplete bounds checks. On a Capstone handle opened for M68K or RISCV, a caller-controlled invalid instruction ID can trigger an out-of-bounds read and crash the process. The demonstrated impact is availability loss in applications or bindings that expose instruction-name lookup to untrusted IDs. No code execution or data disclosure was demonstrated. Version 6.0.0-Alpha9 patches the issue.
Title Capstone M68K and RISCV `cs_insn_name()` invalid IDs can trigger out-of-bounds reads and process crashes
Weaknesses CWE-125
CWE-129
CWE-191
References
Metrics cvssV3_1

{'score': 5.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L'}


Subscriptions

Capstone-engine Capstone
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-14T17:44:44.818Z

Reserved: 2026-05-28T20:07:58.861Z

Link: CVE-2026-49282

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-49282

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-129

    Improper Validation of Array Index

  • CWE-191

    Integer Underflow (Wrap or Wraparound)