{"id":"CVE-2025-68114","state":"PUBLISHED","title":"Capstone doesn't check vsnprintf return in SStream_concat, allows stack buffer underflow and overflow","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.","publishedAt":"2025-12-17T21:14:31.226Z","updatedAt":"2025-12-18T15:09:11.561Z","severity":{"score":4.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["capstone-engine capstone"],"affected":[{"vendor":"capstone-engine","product":"capstone","versions":[{"version":"<= 6.0.0-Alpha5","status":"affected"}]}],"references":["https://github.com/capstone-engine/capstone/security/advisories/GHSA-85f5-6xr3-q76r","https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e"],"weaknesses":["CWE-124","CWE-120"],"ingestedAt":"2026-10-29T20:09:56.034Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/68xxx/CVE-2025-68114.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-68114","state":"PUBLISHED","datePublished":"2025-12-17T21:14:31.226Z","dateUpdated":"2025-12-18T15:09:11.561Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-12-15T16:16:22.744Z"},"containers":{"cna":{"title":"Capstone doesn't check vsnprintf return in SStream_concat, allows stack buffer underflow and overflow","descriptions":[{"lang":"en","value":"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":[{"vendor":"capstone-engine","product":"capstone","versions":[{"version":"<= 6.0.0-Alpha5","status":"affected"}]}],"references":[{"url":"https://github.com/capstone-engine/capstone/security/advisories/GHSA-85f5-6xr3-q76r","name":"https://github.com/capstone-engine/capstone/security/advisories/GHSA-85f5-6xr3-q76r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e","name":"https://github.com/capstone-engine/capstone/commit/2c7797182a1618be12017d7d41e0b6581d5d529e","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":4.8,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-124","lang":"en","description":"CWE-124: Buffer Underwrite ('Buffer Underflow')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-120","lang":"en","description":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-12-17T21:14:31.226Z"},"source":{"advisory":"GHSA-85f5-6xr3-q76r","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/capstone-engine/capstone/security/advisories/GHSA-85f5-6xr3-q76r","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-12-18T14:55:48.777775Z","id":"CVE-2025-68114","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-12-18T15:09:11.561Z"}}]}}}