Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-100503 Overview
CVE-2026-100503 is a heap use-after-free vulnerability [CWE-416] in Ghidra, the National Security Agency's open-source reverse engineering tool. The flaw affects Ghidra versions through 12.1.4 and resides in the decompiler's Funcdata::opInsertAfter function. Stale INDIRECT effect-op references trigger invalid heap access when the decompiler processes a crafted x86-64 instruction sequence. The result is a crash of the decompile helper process. Analysts opening a malicious binary and triggering decompilation lose decompilation output, and automated reverse engineering pipelines fail on affected samples.
Critical Impact
An attacker-controlled binary can crash the Ghidra decompiler helper process, denying service to interactive analysts and halting automated analysis pipelines that rely on decompilation output.
Affected Products
- Ghidra versions up to and including 12.1.4
- Ghidra Decompiler component (decompile helper process)
- Any downstream tooling that invokes the Ghidra decompiler on untrusted binaries
Discovery Timeline
- 2026-09-26 - CVE-2026-100503 published to the National Vulnerability Database
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-100503
Vulnerability Analysis
The defect lives in the Ghidra decompiler's intermediate representation (IR) transformation pipeline, implemented in C++ under Ghidra/Features/Decompiler/src/decompile/cpp/. During decompilation, Ghidra lifts machine code into a p-code IR and iteratively applies simplification rules. INDIRECT p-code ops model side effects where one op's output depends on another op. When the decompiler rewrites or deletes the referenced op, pointers to the deleted PcodeOp object can remain inside dependent INDIRECT entries. A subsequent call to Funcdata::opInsertAfter dereferences this freed memory, producing the use-after-free condition. The vulnerability is reachable only when decompilation runs on a specifically crafted x86-64 instruction sequence that exercises the stale reference path.
Root Cause
The root cause is improper lifecycle management of INDIRECT effect-op references within the decompiler's analysis actions. Rules such as the former RuleIndirectCollapse did not consistently clear or update dependent INDIRECT ops when their referenced op was removed. The patch replaces this rule with RuleAliasUpdate and increments the decompiler protocol minor version from 1 to 2, indicating a change in IR handling semantics.
Attack Vector
Exploitation requires local user interaction. An attacker crafts a malicious binary containing the triggering x86-64 sequence and distributes it to a target analyst or automated pipeline. When the user opens the sample in Ghidra and invokes decompilation on the affected function, the decompile helper process crashes. The vulnerability does not yield code execution based on current analysis; impact is limited to availability of the decompilation service.
// Patch excerpt — architecture.cc
const uint4 ArchitectureCapability::majorversion = 6;
-const uint4 ArchitectureCapability::minorversion = 1;
+const uint4 ArchitectureCapability::minorversion = 2;
// Patch excerpt — coreaction.cc
- actprop->addRule( new RuleIndirectCollapse("analysis") );
+ actprop->addRule( new RuleAliasUpdate("analysis") );
Source: Ghidra Commit 5ef1ee4d. The fix removes the rule that left dangling INDIRECT references and introduces RuleAliasUpdate, which maintains alias state correctly during IR transformations.
Detection Methods for CVE-2026-100503
Indicators of Compromise
- Repeated abnormal termination of the decompile helper process spawned by Ghidra during analysis of a specific binary
- Ghidra console or log messages reporting decompiler communication failures or lost pipe to the native helper
- Crash dumps from decompile referencing Funcdata::opInsertAfter or INDIRECT p-code handling
Detection Strategies
- Monitor Ghidra project logs and the operating system crash reporter for recurring decompile process exits tied to a particular sample hash
- Track Ghidra versions deployed across analyst workstations and continuous reverse-engineering pipelines to identify instances at or below 12.1.4
- Flag ingestion of unknown or untrusted x86-64 binaries into automated decompilation workflows for enhanced monitoring
Monitoring Recommendations
- Alert on child-process crashes of decompile under the Ghidra JVM, correlating with the sample path and user context
- Centralize analyst workstation telemetry so repeated decompiler failures across hosts can be correlated to a shared sample
- Review audit trails for the origin of binaries submitted to shared analysis infrastructure
How to Mitigate CVE-2026-100503
Immediate Actions Required
- Upgrade Ghidra to a version containing commit 5ef1ee4d7a25a65db195f3a70f681ca74440be61 or later, which replaces RuleIndirectCollapse with RuleAliasUpdate and bumps the decompiler minor version to 2
- Rebuild the native decompile helper from patched source when running custom Ghidra builds
- Avoid opening untrusted x86-64 binaries from unverified sources in affected Ghidra installations until patched
Patch Information
The fix is published in the Ghidra repository as commit 5ef1ee4d7a25a65db195f3a70f681ca74440be61 on branch origin/GP-7166_caheckman_CopyIndirect. See the VulnCheck Ghidra Heap Advisory for additional advisory context, and the affected code paths in merge.cc and subflow.cc.
Workarounds
- Run Ghidra within an isolated virtual machine or container when analyzing unknown binaries so decompiler crashes do not disrupt the host
- Disable automated decompilation steps in analysis pipelines until Ghidra is upgraded, falling back to disassembly-only workflows
- Pre-screen inbound samples for x86-64 architecture and route them through patched analysis nodes only
# Verify installed Ghidra version and update
cat $GHIDRA_INSTALL_DIR/Ghidra/application.properties | grep application.version
# Pull the patched source and rebuild the decompiler
git clone https://github.com/NationalSecurityAgency/ghidra.git
cd ghidra
git checkout 5ef1ee4d7a25a65db195f3a70f681ca74440be61
gradle buildNatives_linux_x86_64
gradle buildGhidra
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

