# CVE-2026-49282: Capstone M68K and RISCV `cs_insn_name()` invalid IDs can trigger out-of-bounds reads and process crashes

> Attackers can crash applications using Capstone's M68K or RISCV backends by supplying invalid instruction IDs to the name lookup API.

- **Severity:** Medium 5.1 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 Aug 2026
- **Updated:** 17 Aug 2026
- **Also known as:** AZL-95982, AZL-96737, AZL-96746, BELL-CVE-2026-49282, DEBIAN-CVE-2026-49282, GHSA-jrw4-wj52-2vw8, UBUNTU-CVE-2026-49282

## What is CVE-2026-49282?

CVE-2026-49282 is a medium-severity denial of service vulnerability in capstone-engine capstone, published on 14 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's public `cs_insn_name()` API forwards caller-supplied instruction IDs directly to the selected architecture backend. Most backends validate the ID before indexing instruction-name tables, but the M68K and RISCV backends have missing or incomplete bounds checks. On a Capstone handle opened for M68K or RISCV, a caller-controlled invalid instruction ID can trigger an out-of-bounds read and crash the process. The demonstrated impact is availability loss in applications or bindings that expose instruction-name lookup to untrusted IDs. No code execution or data disclosure was demonstrated. Version 6.0.0-Alpha9 patches the issue.

Weakness: CWE-191 (Integer Underflow (Wrap or Wraparound)), CWE-129 (Improper Validation of Array Index), CWE-125 (Out-of-bounds Read)

## Which versions are affected by CVE-2026-49282?


## How do I fix CVE-2026-49282?

Upgrade to a fixed version.

## Is CVE-2026-49282 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49282 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-49282 and fix it if it is affected.

What it is: CVE-2026-49282 is a medium-severity denial of service vulnerability in capstone-engine capstone, published on 14 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49282 exists.

Affected product: capstone-engine capstone. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-49282/ (Markdown: https://insights.sbomify.com/CVE-2026-49282/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-49282
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-49282
- OSV: https://osv.dev/vulnerability/CVE-2026-49282

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-49282/
Summaries are generated and may contain mistakes; the official description above is the record.
