Heap Use-After-Free Vulnerability in Ghidra by National Security Agency
CVE-2026-49496

6.9MEDIUM

Key Information:

Status
Vendor
CVE Published:
10 June 2026

What is CVE-2026-49496?

A heap-use-after-free vulnerability exists in Ghidra prior to version 12.1, specifically in the SleighBuilder::generatePointerAdd function. This vulnerability arises due to iterator invalidation when the PcodeCacher::allocateInstruction reallocates the issued vector. Attackers can exploit this flaw by decompiling specially crafted malicious binaries via the public Sleigh::oneInstruction C++ API, resulting in memory corruption that affects consumers of the SLEIGH library.

Affected Version(s)

ghidra 0 < 12.1

ghidra 12.1

References

CVSS V4

Score:
6.9
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Stefano Bonicatti (@Smjert)
.