# CVE-2017-6952: Capstone Integer overflow

Source: https://junglewise.ai/threats/cve-2017-6952-capstone-integer-overflow  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2017-03-16  
License: CC BY 4.0 with a link back

CVE-2017-6952 · Severity: low · CVSS 3 · Published 2017-03-16

Integer overflow in the cs_winkernel_malloc function in winkernel_mm.c in Capstone 3.0.4 and earlier allows attackers to cause a denial of service (heap-based buffer overflow in a kernel driver) or possibly have unspecified other impact via a large value.

Technologies: [capstone (PyPI)](https://junglewise.ai/threats/technologies/pypi-capstone). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2017-6952 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2017-6952 being exploited in the wild.

**How severe is CVE-2017-6952?** Low severity, with a CVSS score of 3, published 16 March 2017.

**Which products and versions are affected?** capstone (PyPI) ECOSYSTEM:introduced=0,fixed=3.0.5rc2, GIT:introduced=0,fixed=6fe86eef621b9849f51a5e1e5d73258a93440403|ECOSYSTEM:introduced=0,fixed=3.0.5rc2.

**Is there a fix for CVE-2017-6952?** Yes. capstone (PyPI): upgrade to 3.0.5rc2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2017-6952?** Check whether you run capstone (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- capstone (PyPI): upgrade to 3.0.5rc2 or later

  ```sh
  pip install "capstone>=3.0.5rc2"
  ```


## Affected products

- capstone (PyPI) ECOSYSTEM:introduced=0,fixed=3.0.5rc2, GIT:introduced=0,fixed=6fe86eef621b9849f51a5e1e5d73258a93440403|ECOSYSTEM:introduced=0,fixed=3.0.5rc2

## Identifiers

- CVE-2017-6952
- GHSA-3v99-hpv7-9hh9
- PYSEC-2017-113

## Related threats

- [Capstone Engine NULL pointer dereference in X86 reduced builds](https://junglewise.ai/threats/cve-2026-47143-capstone-engine-null-pointer-dereference-in-x86-reduced-builds)
- [PYSEC-2019-242 - Capstone 3.0.4 has an out-of-bounds vulnerability (SEGV caused by a read memory access) in X86_insn_reg_intel in arch/X86/X86Mapping.c.](https://junglewise.ai/threats/cve-2016-7151-capstone-segv-caused-by-a-read-memory-access)
