Capstone doesn't check Skipdata length, leading to cs_insn.bytes heap buffer overflow
Summary
| CVE | CVE-2025-67873 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-12-17 22:16:00 UTC |
| Updated | 2026-10-13 11:10:00 UTC |
| Description | Capstone is a disassembly framework. In versions 6.0.0-Alpha5 and prior, Skipdata length is not bounds-checked, so a user-provided skipdata callback can make cs_disasm/cs_disasm_iter memcpy more than 24 bytes into cs_insn.bytes, causing a heap buffer overflow in the disassembly path. Commit cbef767ab33b82166d263895f24084b75b316df3 fixes the issue. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-122 | CWE-122 CWE-122: Heap-based Buffer Overflow
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | [email protected] | Secondary | 4.8 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
| 3.1 | CNA | DECLARED | 4.8 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Capstone-engine | Capstone | All | All | All | All |
| Application | Capstone-engine | Capstone | 6.0.0 | alpha1 | All | All |
| Application | Capstone-engine | Capstone | 6.0.0 | alpha2 | All | All |
| Application | Capstone-engine | Capstone | 6.0.0 | alpha3 | All | All |
| Application | Capstone-engine | Capstone | 6.0.0 | alpha4 | All | All |
| Application | Capstone-engine | Capstone | 6.0.0 | alpha5 | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Capstone-engine | Capstone | affected <= 6.0.0-Alpha5 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/capstone-engine/capstone/commit/cbef767ab33b82166d263895f2408... | [email protected] | github.com | Patch |
| github.com/capstone-engine/capstone/security/advisories/GHSA-hj6g-v545-v7jg | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | Exploit, Vendor Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.