CVE-2025-67873Capstone doesn't check Skipdata length, leading to cs_insn.bytes heap buffer overflow
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | capstone | Fix pending | UBUNTU-CVE-2025-67873 | |
| Ubuntu 26.04 | capstone | Under investigation | UBUNTU-CVE-2025-67873 | |
| Ubuntu 25.10 | capstone | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-67873 | |
| Ubuntu 24.04 | capstone | Under investigation | UBUNTU-CVE-2025-67873 | |
| Ubuntu 22.04 | capstone | Under investigation | UBUNTU-CVE-2025-67873 | |
| Ubuntu 20.04 | capstone | Fix pending | UBUNTU-CVE-2025-67873 | |
| Ubuntu 18.04 | capstone | Fix pending | UBUNTU-CVE-2025-67873 | |
| Ubuntu 16.04 | capstone | Fix pending | UBUNTU-CVE-2025-67873 | |
| Debian 14 | capstone | Fixed | 5.0.7-1 | DEBIAN-CVE-2025-67873 |
| Debian 13 | capstone | Fixed | 5.0.7-1~deb13u1 | DEBIAN-CVE-2025-67873 |
| Debian 12 | capstone | Fix pending | DEBIAN-CVE-2025-67873 | |
| Red Hat Enterprise Linux 10 | capstone | Fixed | 0:5.0.1-7.el10_1 | RHSA-2026:6817 |
| Red Hat Enterprise Linux 10 | capstone-devel | Fixed | 0:5.0.1-7.el10_1 | RHSA-2026:6817 |
| Red Hat Enterprise Linux 10 | capstone-java | Fixed | 0:5.0.1-7.el10_1 | RHSA-2026:6817 |
| Red Hat Enterprise Linux 10 | cargo | Not affected | ||
| Red Hat Enterprise Linux 10 | clippy | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-capstone | Fixed | 0:5.0.1-7.el10_1 | RHSA-2026:6817 |
| Red Hat Enterprise Linux 10 | ruby | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-bundled-gems | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-racc | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 10 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | rust | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-aarch64-unknown-none-softfloat | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-wasip1 | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-x86_64-unknown-none | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-toolset-srpm-macros | Not affected | ||
| Red Hat Enterprise Linux 10 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 9 | capstone | Fixed | 0:4.0.2-11.el9_7 | RHSA-2026:4898 |
| Red Hat Enterprise Linux 9 | capstone-devel | Fixed | 0:4.0.2-11.el9_7 | RHSA-2026:4898 |
| Red Hat Enterprise Linux 9 | capstone-java | Fixed | 0:4.0.2-11.el9_7 | RHSA-2026:4898 |
| Red Hat Enterprise Linux 9 | cargo | Not affected | ||
| Red Hat Enterprise Linux 9 | clippy | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-capstone | Fixed | 0:4.0.2-11.el9_7 | RHSA-2026:4898 |
| Red Hat Enterprise Linux 9 | ruby | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | rust | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-analysis | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasi | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasip1 | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 9 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-bundled-gems | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-irb | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bson | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bson-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-did_you_mean | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2 | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-net-telnet | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-pg | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-pg-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-racc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygems-devel | Not affected | ||
| AlmaLinux 10 | capstone-java | Fixed | 5.0.1-7.el10_1 | ALSA-2026:6817 |
| AlmaLinux 10 | python3-capstone | Fixed | 5.0.1-7.el10_1 | ALSA-2026:6817 |
| AlmaLinux 9 | capstone | Fixed | 4.0.2-11.el9_7 | ALSA-2026:4898 |
| AlmaLinux 9 | capstone-devel | Fixed | 4.0.2-11.el9_7 | ALSA-2026:4898 |
| AlmaLinux 9 | capstone-java | Fixed | 4.0.2-11.el9_7 | ALSA-2026:4898 |
| AlmaLinux 9 | python3-capstone | Fixed | 4.0.2-11.el9_7 | ALSA-2026:4898 |
| Rocky Linux 10 | capstone | Fixed | 0:5.0.1-7.el10_1 | RLSA-2026:6817 |
| Rocky Linux 9 | capstone | Fixed | 0:4.0.2-11.el9_7 | RLSA-2026:4898 |
| Alpine Linux 3.24 | capstone | Fixed | 5.0.7-r0 | ALPINE-CVE-2025-67873 |
| Alpine Linux 3.23 | capstone | Fixed | 5.0.7-r0 | ALPINE-CVE-2025-67873 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- capstone-engine capstone: affected: <= 6.0.0-Alpha5
References
- https://github.com/capstone-engine/capstone/security/advisories/GHSA-hj6g-v545-v7jg
- https://github.com/capstone-engine/capstone/commit/cbef767ab33b82166d263895f24084b75b316df3
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.