Heap-based Buffer Overflow Affecting capstone package, versions <5.0.7-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.23% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE323-CAPSTONE-15265432
  • published11 Feb 2026
  • disclosed17 Dec 2025

Introduced: 17 Dec 2025

CVE-2025-67873  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade Alpine:3.23 capstone to version 5.0.7-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream capstone package and not the capstone package as distributed by Alpine. See How to fix? for Alpine:3.23 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1