# CVE-2016-7151: 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.

Source: https://junglewise.ai/threats/cve-2016-7151-capstone-segv-caused-by-a-read-memory-access  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2019-05-15  
License: CC BY 4.0 with a link back

CVE-2016-7151 · Severity: low · CVSS 3 · Published 2019-05-15

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.

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

## Quick answers

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

**How severe is CVE-2016-7151?** Low severity, with a CVSS score of 3, published 15 May 2019.

**Which products and versions are affected?** capstone (PyPI) ECOSYSTEM:introduced=0,fixed=4.0.0, GIT:introduced=0,fixed=87a25bb543c8e4c09b48d4b4a6c7db31ce58df06|ECOSYSTEM:introduced=0.

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

**Am I affected by CVE-2016-7151?** 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 4.0.0 or later

  ```sh
  pip install "capstone>=4.0.0"
  ```


## Affected products

- capstone (PyPI) ECOSYSTEM:introduced=0,fixed=4.0.0, GIT:introduced=0,fixed=87a25bb543c8e4c09b48d4b4a6c7db31ce58df06|ECOSYSTEM:introduced=0

## Identifiers

- CVE-2016-7151
- GHSA-xx4j-rvcc-2vhr
- PYSEC-2019-242

## 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)
- [Capstone Integer overflow](https://junglewise.ai/threats/cve-2017-6952-capstone-integer-overflow)
