What’s Vulnerable › Vulnerabilities
CVE-2025-67873: Capstone doesn't check Skipdata length, leading to cs_insn.bytes heap buffer overflow
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-12-17 · updated 2026-10-13
- Weakness: CWE-122
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.
Affected products
- capstone-engine capstone: before 6.0.0; 6.0.0-alpha1, 6.0.0-alpha2, 6.0.0-alpha3, 6.0.0-alpha4, 6.0.0-alpha5 — fixed in 6.0.0
How to fix
Upgrade to a fixed version: capstone-engine capstone 6.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/capstone-engine/capstone/commit/cbef767ab33b82166d263895f24084b75b316df3
- https://github.com/capstone-engine/capstone/security/advisories/GHSA-hj6g-v545-v7jg
- https://github.com/capstone-engine/capstone/security/advisories/GHSA-hj6g-v545-v7jg
Get alerted when CVE-2025-67873 or the next vulnerability affects your stack