# CVE-2025-68114: Capstone doesn't check vsnprintf return in SStream_concat, allows stack buffer underflow and overflow

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-17T21:14:31.226Z
- Modified: 2026-10-13T11:10:00.203Z
- Weaknesses: CWE-120, CWE-124
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- capstone-engine capstone: <= 6.0.0-Alpha5; before 6.0.0; 6.0.0

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/capstone-engine/capstone/security/advisories/GHSA-85f5-6xr3-q76r> (exploit, vendor-advisory)
- <https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e> (patch)

## Sources

- CVE List: [CVE-2025-68114](https://www.cve.org/CVERecord?id=CVE-2025-68114), CVE Terms of Use, modified 2025-12-18
- NVD: [CVE-2025-68114](https://nvd.nist.gov/vuln/detail/CVE-2025-68114), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2025-68114 · Whole record: https://cve.day/CVE-2025-68114.json · Rebuilt by cve.day 2026-11-25T22:59:09.603Z
