4.8medium
Capstone doesn't check vsnprintf return in SStream_concat, allows stack buffer underflow and overflow
- Severity
- 4.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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
| Product or package | Versions | Reported by |
|---|---|---|
| capstone-engine capstone | <= 6.0.0-Alpha5, before 6.0.0, 6.0.0 | CVE List, NVD |
All scores
| GitHub_M | 4.8medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
Capstone es un framework de desensamblaje. En las versiones 6.0.0-Alpha5 y anteriores, un retorno de vsnprintf sin verificar en SStream_concat permite que un cs_opt_mem.vsnprintf malicioso lleve el índice de SStream a un valor negativo o más allá del final, lo que lleva a un desbordamiento/subdesbordamiento de búfer de pila cuando ocurre la siguiente escritura. El commit 2c7797182a1618be12017d7d41e0b6581d5d529e corrige el problema.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68114 changed 2025-12-18 | CVE Terms of Use |
| NVD | CVE-2025-68114 changed 2026-10-13 | Public domain |