Out-of-bounds Read Affecting capstone-engine/capstone package, versions [0,6.0.0-Alpha9)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (4th 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 Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-CAPSTONEENGINECAPSTONE-18856275
  • published16 Aug 2026
  • disclosed14 Aug 2026
  • creditzxcvbbq, sondt99

Introduced: 14 Aug 2026

NewCVE-2026-49282  (opens in a new tab)
CWE-125  (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 Out-of-bounds Read via the cs_insn_name() lookup in arch/M68K/M68KInstPrinter.c and arch/RISCV/RISCVMapping.c. An attacker can crash the process by supplying an invalid instruction ID to cs_insn_name() on an M68K or RISCV handle. On M68K, the backend indexes s_instruction_names directly with the caller-supplied ID, so a large invalid value reads past the table. On RISCV, the alias-name path accepts IDs in the gap before RISCV_INS_ALIAS_BEGIN, which makes the alias-table index underflow and triggers a read before the array.

CVSS Base Scores

version 4.0
version 3.1