Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted 16-bit SH instruction word
-
DeliveryApplication calls cs_disasm() or cs_disasm_iter() with SH2A/SH4A+SHFPU mode
-
Exploitsh_disassemble() computes out-of-bounds idx
-
ExecutionDecode table read exceeds array bounds
-
ImpactSegmentation fault crashes host process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the calling application to have initialised a Capstone handle explicitly with CS_ARCH_SH and either CS_MODE_SH2A or CS_MODE_SH4A combined with CS_MODE_SHFPU - this is not the default Capstone configuration, and the vast majority of Capstone integrations target x86, ARM, or MIPS and are entirely unaffected. The attacker must additionally be able to supply arbitrary bytecode to cs_disasm() or cs_disasm_iter(); applications that disassemble only their own trusted binaries are not exposed at runtime. Exploitation is further limited to process crash (denial of service) - the CVE description explicitly rules out code execution and information disclosure, capping the worst-case outcome at termination of the disassembling process. No authentication level applies in the CVSS 4.0 sense (PR:N) because the trust boundary is at the application-library interface, not a network authentication layer. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VA:H, score 6.8) accurately reflects the constrained impact profile: the local attack vector is correct because Capstone is a library, so exploitation requires a calling application to pass attacker-controlled bytecode to cs_disasm() or cs_disasm_iter(), and user interaction (UI:P) represents the application developer's choice to process untrusted input. No KEV listing and no EPSS score were provided in the intelligence data, leaving exploitation probability unquantified beyond the CVE description itself; no public PoC or active exploitation has been identified at time of analysis. The intelligence tags ('RCE', 'Information Disclosure', 'Buffer Overflow') are contradicted by the CVE text, which explicitly states no code execution or information disclosure was demonstrated - defenders should discard those tags and treat this as a denial-of-service issue only. Practical blast radius is narrow: only applications that initialise Capstone with SH2A/SH4A plus SHFPU mode and process externally supplied bytecode are exposed, which is a niche deployment pattern even within Capstone's user base. Overall, this is a low-urgency patch for most organisations, with priority elevated only for teams running SH-architecture binary analysis pipelines on untrusted input. |
| Exploit ScenarioDerived | An attacker who can supply arbitrary bytecode to an application wrapping Capstone - such as a binary analysis tool, reverse-engineering platform, or automated malware triage system - provides a crafted 16-bit SH instruction word whose decoded idx falls beyond the mode-specific decode[] table boundary. When the application calls cs_disasm() or cs_disasm_iter() with CS_ARCH_SH plus CS_MODE_SH2A or CS_MODE_SH4A and CS_MODE_SHFPU, sh_disassemble() dereferences the out-of-bounds address, the operating system delivers SIGSEGV, and the host process terminates. No public PoC has been identified, but a proof-of-concept test case was added by the reporter in PR #2968, making independent reproduction straightforward from the CVE description alone. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
Out-of-bounds read in Capstone's SuperH (SH) architecture disassembler crashes the host process when fed crafted SH2A or SH4A bytecode. Versions 6.0.0-Alpha9 and earlier are affected when the library handle is configured with CS_ARCH_SH plus CS_MODE_SH2A or CS_MODE_SH4A and CS_MODE_SHFPU; the disassembler derives an idx value from a raw 16-bit instruction and dereferences a mode-specific decode[] function-pointer table without a bounds check. The demonstrated impact is limited to process termination - no code execution or information disclosure was shown - and a vendor-released patch is available in 6.0.0-Alpha10.
RemediationAI
Upgrade Capstone to version 6.0.0-Alpha10, which is confirmed by the official release tag and contains the bounds check introduced in commits 09e76802380b9e94d9720c44458d9d5282219e7e and e17ee44a8307ea33375b4727ac4f987650bf7bed, merged via pull requests #2968 and #2969 (https://github.com/capstone-engine/capstone/pull/2968 and https://github.com/capstone-engine/capstone/pull/2969). If an immediate upgrade is not feasible, the primary compensating control is to avoid initialising any Capstone handle with CS_ARCH_SH combined with CS_MODE_SH2A or CS_MODE_SH4A and CS_MODE_SHFPU; disabling SH FPU mode removes the vulnerable decode path with no impact on non-SH-FPU workloads. Applications that only disassemble trusted, internally generated bytecode are not exposed in practice even without patching, as the attacker must control the bytecode input.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Capstone (cpe:2.3:a:capstone-engine:capstone) is a multi-architecture disassembly framework written in C. The flaw resides in arch/SH/SHDisassembler.c within sh_disassemble(), which processes 16-bit SuperH instruction words. The function computes an integer idx directly from the raw instruction encoding and uses it as an index into a statically sized, mode-specific decode[] array of function pointers. CWE-125 (Out-of-bounds Read) is the root cause: no check verified that idx fell within the array's bounds before the dereference, so a crafted instruction word can produce an idx beyond the table end, causing a read of unmapped memory and a segmentation fault. The fix in PR #2968 adds a single guard - if (idx >= ARR_SIZE(decode)) return MCDisassembler_Fail; - immediately before the table access, plus related operand-count bounds checks in the set_reg_n() and set_mem_n() helpers to address a related over-indexing path.
Know when Capstone gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Local vector because Capstone is a library requiring a calling application to pass attacker-controlled bytecode; no confidentiality or integrity impact demonstrated; user interaction reflects the application's choice to process untrusted input.
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Capstone is a disassembly framework. In 6.0.0-Alpha9 and earlier, Capstone's arch/SH/SHDisassembler.c sh_disassemble() function computes an idx value from a raw 16-bit instruction without ensuring it is within the active mode-specific decode[] function-pointer table. An application using CS_ARCH_SH with CS_MODE_SH2A or CS_MODE_SH4A and CS_MODE_SHFPU can pass crafted bytecode through cs_disasm_iter() or cs_disasm(), causing the decode[idx] test to read outside the table and terminate the process with a segmentation fault. No code execution or information disclosure was demonstrated. This issue is fixed in version 6.0.0-Alpha10.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Heap-based buffer overflow in the Capstone disassembly framework's skip-data path lets a malformed input corrupt memory
Out-of-bounds read/write in the Capstone disassembly engine's SStream string-formatting path can be triggered when the i
Integer overflow in the cs_winkernel_malloc function in winkernel_mm.c in Capstone 3.0.4 and earlier allows attackers to
Heap buffer overflow in Capstone's SuperH (SH) architecture floating-point disassembler affects all releases through 6.0
Capstone disassembly framework package in Alpine Linux has been patched at version 5.0.8-r0, addressing an unspecified v
Out-of-bounds read in Capstone's cs_insn_name() public API crashes host processes when the M68K or RISCV architecture ba
Same weakness CWE-125 – Out-of-bounds Read
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Micro 5.5 | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Micro 6.0 | Affected |
| SUSE Linux Micro 6.1 | Affected |
| SUSE Linux Micro 6.2 | Affected |
| openSUSE Leap 16.0 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Server Applications 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
| openSUSE Leap Micro 5.5 | Affected |
EUVD-2026-63669
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB