Skip to main content
EPSS 0.2%top 93%

CVE-2026-55893: CWE-122: Heap-based Buffer Overflow in capstone-engine capstone

0
High
VulnerabilityCVE-2026-55893cvecve-2026-55893cwe-122
Published: 08/20/2026 (08/20/2026, 21:32:46 UTC)
Source: CVE Database V5
Vendor/Project: capstone-engine
Product: capstone

Description

A heap-based buffer overflow vulnerability exists in capstone-engine versions prior to 6.0.0-Alpha10 in the SH floating-point decoders. The issue arises when crafted instructions cause the operand count to exceed the allocated buffer size, leading to a four-byte overflow. This can crash the process and potentially allow code execution depending on heap layout. The vulnerability is fixed in version 6.0.0-Alpha10.

CVSS v4.0

Score 7.3high

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

capstone-engine

capstone

Affected versions
<6.0.0-Alpha10
GitHub Actionsmore threats →ai
capstone-engine/capstone
pkg:github/capstone-engine/capstone
Affected versions
=6.0.0-Alpha10

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 20:46:55 UTC

Technical Analysis

Capstone-engine versions 6.0.0-Alpha9 and earlier contain a heap-based buffer overflow in the SH floating-point decoders (opFADD, opFMUL, opFSUB) within arch/SH/SHDisassembler.c. These decoders call set_reg() and set_reg_n() using sh_info.op.op_count without validating against the fixed-size operands[] array. When processing crafted instructions via cs_disasm_iter() or cs_disasm() with CS_ARCH_SH and specific modes (CS_MODE_SH2A, CS_MODE_SH4A, CS_MODE_SHFPU) and the CS_OPT_DETAIL option, the operand count can increment beyond the 176-byte allocation, causing a four-byte heap buffer overflow write. This corruption can crash the process and may enable code execution depending on heap layout. The issue is resolved in version 6.0.0-Alpha10.

Potential Impact

Exploitation of this vulnerability can lead to process crashes and potentially arbitrary code execution depending on the heap layout. The vulnerability affects local users who can supply crafted instructions to the disassembler. The CVSS 4.0 score is 7.3 (high severity), reflecting the complexity and potential impact.

Mitigation Recommendations

Upgrade to capstone-engine version 6.0.0-Alpha10 or later, where this heap-based buffer overflow vulnerability has been fixed. No other mitigations are specified or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-17T16:59:42.760Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a87778eacd9273b492c5fab

Added to database: 08/20/2026, 21:54:22 UTC

Last enriched: 09/10/2026, 20:46:55 UTC

Last updated: 10/04/2026, 18:55:09 UTC

Views: 89

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses