CVE-2026-52757
JSON

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 packageVersionsReported by
nationalsecurityagency ghidrabefore 12.1
Not affected: 12.1
CVE List
nsa ghidrabefore 12.1NVD

All scores

VulnCheck4.6medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
VulnCheck4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

Classification

CWE-416

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

SourceRecordLicence
CVE ListCVE-2026-52757 changed 2026-07-14CVE Terms of Use
NVDCVE-2026-52757 changed 2026-10-26Public domain