Description
Ghidra before 12.1 contains a heap-use-after-free vulnerability in the decompiler's HighVariable::merge() function during the variable merging pass. Attackers can trigger this vulnerability by crafting a binary that causes stale pointers in the HighIntersectTest::highedgemap cache to be dereferenced, reading and writing the flags field of freed heap memory when a user opens the binary in Ghidra's decompiler view.
Metrics
CVSS 3.1 4.4/10
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:LWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| nationalsecurityagency | ghidra | < 12.1 |
References
- https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-8jqp-qv73-395rExploit, Vendor Advisory
- https://www.vulncheck.com/advisories/ghidra-heap-use-after-free-in-highvariable-merge-during-decompilationThird Party Advisory
- https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-8jqp-qv73-395rExploit, Vendor Advisory
Timeline
- Published
- Jun 10, 2026
- Last modified
- Oct 26, 2026
- NVD status
- Analyzed