Capstone doesn't check vsnprintf return in SStream_concat, allows stack buffer underflow and overflow

Summary

CVECVE-2025-68114
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-17 22:16:01 UTC
Updated2026-10-13 11:10:00 UTC
DescriptionCapstone 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.

Risk And Classification

Primary CVSS: v3.1 9.8 CRITICAL from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-120 | CWE-124 | CWE-124 CWE-124: Buffer Underwrite ('Buffer Underflow') | CWE-120 CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Secondary4.8MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L
3.1CNADECLARED4.8MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
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

SourceVendorProductVersionPlatforms
CNA Capstone-engine Capstone affected <= 6.0.0-Alpha5 Not specified

References

ReferenceSourceLinkTags
github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b... [email protected] github.com Patch
github.com/capstone-engine/capstone/security/advisories/GHSA-85f5-6xr3-q76r 134c704f-9b21-4f2e-91b3-4a467353bcc0 github.com Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report