Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Nsa | Ghidra | < 12.1 |
Related Weaknesses (CWE)
References
- https://github.com/NationalSecurityAgency/ghidra/commit/8a3018d5efcb07d2ec40bacdPatch
- https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-gqh9-2ExploitVendor Advisory
- https://www.vulncheck.com/advisories/ghidra-heap-use-after-free-in-sleighbuilderThird Party Advisory
- https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-gqh9-2ExploitVendor Advisory
FAQ
What is CVE-2026-49496?
CVE-2026-49496 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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...
How severe is CVE-2026-49496?
CVE-2026-49496 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-49496?
Check the references section above for vendor advisories and patch information. Affected products include: Nsa Ghidra.