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

Published Jun 10, 2026
·
Updated

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 Software

2 affected components
National Security Agency Ghidra<12.1
NSA Ghidra<12.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Ghidra to a version that resolves this vulnerability.

    Fixed in 12.1
  2. Compensating control

    Do not open untrusted or unverified binaries in Ghidra's decompiler view; inspect or analyze unknown binaries only in a sandboxed or isolated environment until Ghidra is updated to 12.1.

Event History

Jun 10, 2026
CVE Published
via MITRE·12:42 PM
Data Sourced
via MITRE·12:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-52757?

The severity of CVE-2026-52757 is rated as medium with a score of 4.6.

2

How do I fix CVE-2026-52757?

To mitigate CVE-2026-52757, upgrade Ghidra to version 12.1 or later.

3

What type of vulnerability is CVE-2026-52757?

CVE-2026-52757 is a heap-use-after-free vulnerability.

4

Which function is affected in CVE-2026-52757?

CVE-2026-52757 affects the HighVariable::merge() function during decompilation.

5

Who is affected by CVE-2026-52757?

Users of Ghidra versions prior to 12.1 are affected by CVE-2026-52757.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203