4.6medium
Ghidra < 12.1 - Heap-use-after-free in HighVariable::merge() during decompilation
- Severity
- 4.6medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nationalsecurityagency ghidra | before 12.1 Not affected: 12.1 | CVE List |
| nsa ghidra | before 12.1 | NVD |
All scores
| VulnCheck | 4.6medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| VulnCheck | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Ghidra antes de 12.1 contiene una vulnerabilidad de uso después de liberación de heap en la función HighVariable::merge() del descompilador durante el paso de fusión de variables. Los atacantes pueden activar esta vulnerabilidad al crear un binario que provoca que se desreferencien punteros obsoletos en la caché HighIntersectTest::highedgemap, leyendo y escribiendo el campo ’flags’ de la memoria de heap liberada cuando un usuario abre el binario en la vista de descompilador de Ghidra.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-52757 changed 2026-07-14 | CVE Terms of Use |
| NVD | CVE-2026-52757 changed 2026-10-26 | Public domain |