CVE-2026-52757: Use After Free in nationalsecurityagency ghidra
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.
AI Analysis
Technical Summary
CVE-2026-52757 is a heap-use-after-free vulnerability in the National Security Agency's Ghidra software before version 12.1. The flaw exists in the decompiler component, specifically in the HighVariable::merge() function during the variable merging pass. Attackers can exploit this by crafting a binary that causes stale pointers in the HighIntersectTest::highedgemap cache to be dereferenced, resulting in the reading and writing of freed heap memory's flags field when the binary is opened in the decompiler view.
Potential Impact
Successful exploitation allows an attacker to cause use-after-free conditions in Ghidra's decompiler, potentially leading to memory corruption. This could result in application crashes or undefined behavior when analyzing malicious binaries. There is no indication of privilege escalation or remote code execution from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch link is provided, users should monitor the National Security Agency's Ghidra advisories for updates. Until a fix is available, avoid opening untrusted or specially crafted binaries in the decompiler view to reduce risk.
CVE-2026-52757: Use After Free in nationalsecurityagency ghidra
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.
CVSS v4.0
Score 4.6medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-52757 is a heap-use-after-free vulnerability in the National Security Agency's Ghidra software before version 12.1. The flaw exists in the decompiler component, specifically in the HighVariable::merge() function during the variable merging pass. Attackers can exploit this by crafting a binary that causes stale pointers in the HighIntersectTest::highedgemap cache to be dereferenced, resulting in the reading and writing of freed heap memory's flags field when the binary is opened in the decompiler view.
Potential Impact
Successful exploitation allows an attacker to cause use-after-free conditions in Ghidra's decompiler, potentially leading to memory corruption. This could result in application crashes or undefined behavior when analyzing malicious binaries. There is no indication of privilege escalation or remote code execution from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch link is provided, users should monitor the National Security Agency's Ghidra advisories for updates. Until a fix is available, avoid opening untrusted or specially crafted binaries in the decompiler view to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-08T15:20:09.274Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2967b2c9170919df1fd8f5
Added to database: 06/10/2026, 13:33:38 UTC
Last enriched: 07/15/2026, 10:10:47 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 125
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.