Vulnerabilities in pkg:pypi/capstone
PACKAGECVE-2016-7151 is a MODERATE (CVSS 5.5) capstone segv caused by a vulnerability (CWE-125: Out-of-bounds Read) affecting Capstone libraries in the PyPI ecosystem. The issue involves capstone segv caused by a read memory access. Remediation is available by upgrading affected packages to version 4.0.0.
pkg:pypi/capstone
Vulnerability advisories affecting package pkg:pypi/capstone. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xx4j-rvcc-2vhr | CVE-2016-7151 | MODERATE | Capstone SEGV caused by a read memory access |
| GHSA-3v99-hpv7-9hh9 | CVE-2017-6952 | HIGH | Capstone Integer overflow |
CVE-2016-7151 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2016-7151
To remediate this vulnerability, upgrade all affected Capstone dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install capstone>=4.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show capstone
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2016-7151, inspect your installed packages using pip:
pip show capstone
Analyze the terminal output to locate any version of Capstone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0), your application is affected.
Note: The pip show capstone command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Capstone, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-7151 Affected Capstone Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
capstone
|
PyPI |
< 4.0.0
|
4.0.0
|
References
Frequently Asked Questions
What is CVE-2016-7151?
Which Capstone versions are affected?
What version fixes CVE-2016-7151?
Is capstone affected?
What is the CVSS score of CVE-2016-7151?
What CWE is associated with CVE-2016-7151?
How can I check PyPI dependencies for CVE-2016-7151?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xx4j-rvcc-2vhr",
"modified" : "2026-06-10T18:43:14Z",
"published" : "2022-05-24T16:45:42Z",
"aliases" : [ "CVE-2016-7151" ],
"summary" : "Capstone SEGV caused by a read memory access",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "capstone"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-7151"
}, {
"type" : "WEB",
"url" : "https://github.com/aquynh/capstone/pull/725"
}, {
"type" : "WEB",
"url" : "https://github.com/aquynh/capstone/commit/87a25bb543c8e4c09b48d4b4a6c7db31ce58df06"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/capstone-engine/capstone"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/capstone/PYSEC-2019-242.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-21T22:19:31Z",
"nvd_published_at" : "2019-05-15T14:29:00Z"
}
}