CVE-2026-52757

Ghidra < 12.1 - Heap-use-after-free in HighVariable::merge() during decompilation

State
Published
Severity
4.6 Medium
Published
Jun 10, 2026
Updated
Jul 14, 2026
Reserved
Jun 8, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.04.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:NVulnCheck
3.14.4 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:LVulnCheck

Weaknesses

Affected Products

ProductVersions
ghidranationalsecurityagency
  • before 12.1Affected
  • 12.1Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.