Vulnerability · Published Dec 17, 2025 · Assigned by GitHub_M

CVE-2025-67873Capstone doesn't check Skipdata length, leading to cs_insn.bytes heap buffer overflow

Medium 4.8

In plain English

A medium-severity heap buffer overflow in capstone from capstone-engine. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.2%top 85.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Capstone is a disassembly framework. In versions 6.0.0-Alpha5 and prior, Skipdata length is not bounds-checked, so a user-provided skipdata callback can make cs_disasm/cs_disasm_iter memcpy more than 24 bytes into cs_insn.bytes, causing a heap buffer overflow in the disassembly path. Commit cbef767ab33b82166d263895f24084b75b316df3 fixes the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9capstone4.0.2-11.el9_7ALSA-2026:4898
AlmaLinux:9capstone-devel4.0.2-11.el9_7ALSA-2026:4898
AlmaLinux:10capstone-java5.0.1-7.el10_1ALSA-2026:6817
AlmaLinux:9capstone-java4.0.2-11.el9_7ALSA-2026:4898
AlmaLinux:10python3-capstone5.0.1-7.el10_1ALSA-2026:6817
AlmaLinux:9python3-capstone4.0.2-11.el9_7ALSA-2026:4898
Alpine:v3.23capstone5.0.7-r0ALPINE-CVE-2025-67873
Alpine:v3.24capstone5.0.7-r0ALPINE-CVE-2025-67873
Debian:12capstoneno fix listedDEBIAN-CVE-2025-67873
Debian:13capstone5.0.7-1~deb13u1DEBIAN-CVE-2025-67873
Debian:14capstone5.0.7-1DEBIAN-CVE-2025-67873
Rocky Linux:10capstone0:5.0.1-7.el10_1RLSA-2026:6817
Rocky Linux:9capstone0:4.0.2-11.el9_7RLSA-2026:4898
Ubuntu:22.04:LTScapstoneno fix listedUBUNTU-CVE-2025-67873
Ubuntu:24.04:LTScapstoneno fix listedUBUNTU-CVE-2025-67873
Ubuntu:25.10capstoneno fix listedUBUNTU-CVE-2025-67873
Ubuntu:26.04:LTScapstoneno fix listedUBUNTU-CVE-2025-67873
Ubuntu:26.10capstoneno fix listedUBUNTU-CVE-2025-67873

Affected products (as reported)

VendorProductVersions
capstone-engine capstone <= 6.0.0-Alpha5

Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

References