What’s Vulnerable › Vulnerabilities
CVE-2025-68114: Capstone doesn't check vsnprintf return in SStream_concat, allows stack buffer underflow and overflow
- Severity: critical (CVSS 9.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: none known
- Published: 2025-12-17 · updated 2026-10-13
- Weakness: CWE-120
Description
Capstone is a disassembly framework. In versions 6.0.0-Alpha5 and prior, an unchecked vsnprintf return in SStream_concat lets a malicious cs_opt_mem.vsnprintf drive SStream’s index negative or past the end, leading to a stack buffer underflow/overflow when the next write occurs. Commit 2c7797182a1618be12017d7d41e0b6581d5d529e 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/2c7797182a1618be12017d7d41e0b6581d5d529e
- https://github.com/capstone-engine/capstone/security/advisories/GHSA-85f5-6xr3-q76r
- https://github.com/capstone-engine/capstone/security/advisories/GHSA-85f5-6xr3-q76r
Get alerted when CVE-2025-68114 or the next vulnerability affects your stack