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.

Severity (CVSS)

Base score5.1
SeverityMedium
VersionCVSS 3.1
VectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Provided byCNA

Weaknesses

  • CWE-125 — CWE-125: Out-of-bounds Read
  • CWE-129 — CWE-129: Improper Validation of Array Index
  • CWE-191 — CWE-191: Integer Underflow (Wrap or Wraparound)

Affected products

VendorProductVersions
capstone-enginecapstone< 6.0.0-Alpha9

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 15 Aug 2026 07:05 UTC.