capstone — security advisory
Capstone is a disassembly framework. In 6.0.0-Alpha9 and earlier, Capstone's arch/SH/SHDisassembler.c SH floating-point decoders such as opFADD, opFMUL, and opFSUB call set_reg() and set_reg_n() using sh_info.op.op_count without checking the fixed-size operands[] array. Repeated crafted instructions processed through cs_disasm_iter() or cs_disasm() with CS_ARCH_SH, CS_MODE_SH2A or CS_MODE_SH4A, CS_MODE_SHFPU, and CS_OPT_DETAIL can increment the operand count beyond the 176-byte sh_info allocation and perform a four-byte heap buffer overflow write. The corruption can crash the process and may enable code execution depending on heap layout. This issue is fixed in version 6.0.0-Alpha10.
- Products
- capstone
- Affected versions
- 3.0.4-0.1, 3.0.4-0.2, 3.0.4-3, 3.0.4-5, 4.0.1+really+3.0.5-1, 4.0.1+really+3.0.5-1build1, 4.0.2-3, 4.0.2-3build1, 4.0.2-5, 4.0.2-5.1, 4.0.2-5.1build1, 4.0.2-5ubuntu1, 5.0.6-1, 5.0.6-1build1, 5.0.7-2, 5.0.9-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-55893
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:46 UTC · Revision 1
Source evidence
Capstone is a disassembly framework. In 6.0.0-Alpha9 and earlier, Capstone's arch/SH/SHDisassembler.c SH floating-point decoders such as opFADD, opFMUL, and opFSUB call set_reg() and set_reg_n() using sh_info.op.op_count without checking the fixed-size operands[] array. Repeated crafted instructions processed through cs_disasm_iter() or cs_disasm() with CS_ARCH_SH, CS_MODE_SH2A or CS_MODE_SH4A, CS_MODE_SHFPU, and CS_OPT_DETAIL can increment the operand count beyond the 176-byte sh_info allocation and perform a four-byte heap buffer overflow write. The corruption can crash the process and may enable code execution depending on heap layout. This issue is fixed in version 6.0.0-Alpha10.
osv:UBUNTU-CVE-2026-55893
capstone
Fixed versions: Not specified
capstone
Fixed versions: Not specified
capstone
Fixed versions: Not specified
capstone
Fixed versions: Not specified
capstone
Fixed versions: Not specified
capstone
Fixed versions: Not specified
capstone
Fixed versions: Not specified
Complete source record
{
"id": "54927434a18f73133c059cd3570f4010022412602759d20c480c4c3d082ab3a2",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-55893",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-55893",
"summary": "Capstone is a disassembly framework. In 6.0.0-Alpha9 and earlier, Capstone's arch/SH/SHDisassembler.c SH floating-point decoders such as opFADD, opFMUL, and opFSUB call set_reg() and set_reg_n() using sh_info.op.op_count without checking the fixed-size operands[] array. Repeated crafted instructions processed through cs_disasm_iter() or cs_disasm() with CS_ARCH_SH, CS_MODE_SH2A or CS_MODE_SH4A, CS_MODE_SHFPU, and CS_OPT_DETAIL can increment the operand count beyond the 176-byte sh_info allocation and perform a four-byte heap buffer overflow write. The corruption can crash the process and may enable code execution depending on heap layout. This issue is fixed in version 6.0.0-Alpha10.",
"evidence": "osv:UBUNTU-CVE-2026-55893",
"products": [
{
"name": {
"value": "capstone",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0.4-0.1",
"evidence": "/affected/0/versions"
},
{
"value": "3.0.4-0.2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "capstone",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0.4-3",
"evidence": "/affected/1/versions"
},
{
"value": "3.0.4-5",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "capstone",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.0.1+really+3.0.5-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.0.1+really+3.0.5-1build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "capstone",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.0.2-3",
"evidence": "/affected/3/versions"
},
{
"value": "4.0.2-3build1",
"evidence": "/affected/3/versions"
},
{
"value": "4.0.2-5",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "capstone",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.0.2-5",
"evidence": "/affected/4/versions"
},
{
"value": "4.0.2-5ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "4.0.2-5.1",
"evidence": "/affected/4/versions"
},
{
"value": "4.0.2-5.1build1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "capstone",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.7-2",
"evidence": "/affected/5/versions"
},
{
"value": "5.0.9-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "capstone",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.6-1",
"evidence": "/affected/6/versions"
},
{
"value": "5.0.6-1build1",
"evidence": "/affected/6/versions"
},
{
"value": "5.0.7-2",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-55893",
"aliases": [
"UBUNTU-CVE-2026-55893"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "capstone",
"purl": "pkg:deb/ubuntu/capstone?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"3.0.4-0.1",
"3.0.4-0.2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55893.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcapstone3",
"binary_version": "3.0.4-0.2"
},
{
"binary_name": "python-capstone",
"binary_version": "3.0.4-0.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "capstone",
"purl": "pkg:deb/ubuntu/capstone?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"3.0.4-3",
"3.0.4-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55893.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcapstone3",
"binary_version": "3.0.4-5"
},
{
"binary_name": "python-capstone",
"binary_version": "3.0.4-5"
},
{
"binary_name": "python3-capstone",
"binary_version": "3.0.4-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "capstone",
"purl": "pkg:deb/ubuntu/capstone?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"4.0.1+really+3.0.5-1",
"4.0.1+really+3.0.5-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55893.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "capstone-tool",
"binary_version": "4.0.1+really+3.0.5-1build1"
},
{
"binary_name": "libcapstone3",
"binary_version": "4.0.1+really+3.0.5-1build1"
},
{
"binary_name": "python-capstone",
"binary_version": "4.0.1+really+3.0.5-1build1"
},
{
"binary_name": "python3-capstone",
"binary_version": "4.0.1+really+3.0.5-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "capstone",
"purl": "pkg:deb/ubuntu/capstone?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"4.0.2-3",
"4.0.2-3build1",
"4.0.2-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55893.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "capstone-tool",
"binary_version": "4.0.2-5"
},
{
"binary_name": "libcapstone4",
"binary_version": "4.0.2-5"
},
{
"binary_name": "python3-capstone",
"binary_version": "4.0.2-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "capstone",
"purl": "pkg:deb/ubuntu/capstone?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"4.0.2-5",
"4.0.2-5ubuntu1",
"4.0.2-5.1",
"4.0.2-5.1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55893.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "capstone-tool",
"binary_version": "4.0.2-5.1build1"
},
{
"binary_name": "libcapstone4",
"binary_version": "4.0.2-5.1build1"
},
{
"binary_name": "python3-capstone",
"binary_version": "4.0.2-5.1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "capstone",
"purl": "pkg:deb/ubuntu/capstone?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"5.0.7-2",
"5.0.9-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55893.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "capstone-tool",
"binary_version": "5.0.9-1"
},
{
"binary_name": "libcapstone5",
"binary_version": "5.0.9-1"
},
{
"binary_name": "python3-capstone",
"binary_version": "5.0.9-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "capstone",
"purl": "pkg:deb/ubuntu/capstone?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"5.0.6-1",
"5.0.6-1build1",
"5.0.7-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-55893.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "capstone-tool",
"binary_version": "5.0.7-2"
},
{
"binary_name": "libcapstone5",
"binary_version": "5.0.7-2"
},
{
"binary_name": "python3-capstone",
"binary_version": "5.0.7-2"
}
]
}
}
],
"modified": "2026-10-17T12:59:08.864921299Z",
"provider": "osv",
"upstream": [
"CVE-2026-55893"
],
"references": [
"https://ubuntu.com/security/CVE-2026-55893",
"https://www.cve.org/CVERecord?id=CVE-2026-55893",
"https://github.com/capstone-engine/capstone/security/advisories/GHSA-3hpv-wr3j-rxwh",
"https://github.com/capstone-engine/capstone/pull/2968",
"https://github.com/capstone-engine/capstone/pull/2969"
]
},
"related_cves": [
{
"value": "CVE-2026-55893",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359343,
"published_at": "2026-08-20T22:17:00+00:00"
}