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

- Severity: Medium 4.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-10T12:42:01.080Z
- Modified: 2026-10-26T11:10:00.157Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- nationalsecurityagency ghidra: before 12.1 (not affected: 12.1)
- nsa ghidra: before 12.1

## Every score

- VulnCheck: CVSS:4.0 4.6 Medium `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: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`

## References

- <https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-8jqp-qv73-395r> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/ghidra-heap-use-after-free-in-highvariable-merge-during-decompilation> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-52757](https://www.cve.org/CVERecord?id=CVE-2026-52757), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-52757](https://nvd.nist.gov/vuln/detail/CVE-2026-52757), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-52757 · Whole record: https://cve.day/CVE-2026-52757.json · Rebuilt by cve.day 2026-11-25T22:59:24.322Z
