# CVE-2026-49496: Ghidra < 12.1 - Heap-Use-After-Free in SleighBuilder::generatePointerAdd via Vector Reallocation

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-10T12:37:30.464Z
- Modified: 2026-10-26T11:10:00.157Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

Ghidra before 12.1 contains a heap-use-after-free vulnerability in SleighBuilder::generatePointerAdd caused by iterator invalidation when PcodeCacher::allocateInstruction reallocates the issued vector. Attackers can trigger memory corruption by decompiling malicious binaries through the public Sleigh::oneInstruction C++ API, affecting downstream SLEIGH library consumers.

(As written by CVE List.)

## Affected

- nationalsecurityagency ghidra: before 12.1 (not affected: 12.1)
- nsa ghidra: before 12.1

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`

## References

- <https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-gqh9-2c72-wpjc> (exploit, vendor-advisory)
- <https://github.com/NationalSecurityAgency/ghidra/commit/8a3018d5efcb07d2ec40bacdd6063cb6f01c8edf> (patch)
- <https://www.vulncheck.com/advisories/ghidra-heap-use-after-free-in-sleighbuilder-generatepointeradd-via-vector-reallocation> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-49496](https://www.cve.org/CVERecord?id=CVE-2026-49496), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-49496](https://nvd.nist.gov/vuln/detail/CVE-2026-49496), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-49496 · Whole record: https://cve.day/CVE-2026-49496.json · Rebuilt by cve.day 2026-11-25T22:59:24.319Z
