Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (AHA) · only source for this CVE.
CVSS VectorVendor: AHA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Lifecycle Timeline
6DescriptionCVE.org
Ghidra versions prior to 12.0.3 improperly process annotation directives embedded in automatically extracted binary data, resulting in arbitrary command execution when an analyst interacts with the UI. Specifically, the @execute annotation (which is intended for trusted, user-authored comments) is also parsed in comments generated during auto-analysis (such as CFStrings in Mach-O binaries). This allows a crafted binary to present seemingly benign clickable text which, when clicked, executes attacker-controlled commands on the analyst’s machine.
AnalysisAI
Command injection in NSA Ghidra (versions before 12.0.3) executes arbitrary commands when analysts click on maliciously crafted binary comments. Attackers embed @execute annotation directives in binary data (e.g., CFStrings in Mach-O files) that Ghidra auto-extracts and renders as clickable UI elements, bypassing the intended trust boundary for user-authored annotations. No public exploit identified at time of analysis, though the attack vector is well-documented in vendor advisory. EPSS data not available; CVSS 8.8 reflects high impact contingent on user interaction with a weaponized binary file.
Technical ContextAI
Ghidra is the NSA's open-source reverse engineering framework used for malware analysis and vulnerability research. The vulnerability stems from CWE-78 (OS Command Injection) in the annotation processing subsystem. Ghidra supports @execute directives in user comments to automate workflows, executing Python/Java code within the Ghidra environment. The flaw arises because auto-analysis modules (particularly those parsing Mach-O CFString constants and other binary metadata) generate comments containing attacker-controlled strings, which are then passed to the same annotation parser used for trusted user input. The NSA CPE identifier (cpe:2.3:a:nsa:ghidra) confirms this affects the core Ghidra application across all platforms (Windows, Linux, macOS) where the binary analysis UI is used.
RemediationAI
Upgrade to Ghidra version 12.0.3 or later immediately, as confirmed by the NSA GitHub security advisory at https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-mc3p-mq2p-xw6v. The patch sanitizes auto-generated comments to prevent @execute directive parsing in untrusted content. Organizations unable to upgrade immediately should implement defense-in-depth controls: restrict Ghidra usage to isolated virtual machines or containers with no network access or sensitive data, disable auto-analysis features for untrusted binaries, and establish mandatory code review for any binaries from external sources before analysis. Network-level controls blocking outbound connections from analysis workstations can limit post-exploitation impact but do not prevent local privilege escalation or data exfiltration to removable media. Supplement with endpoint detection rules monitoring for unexpected child processes spawned by the Ghidra JVM (java.exe/javaw.exe).
Ghidra/RuntimeScripts/Linux/support/launch.sh in NSA Ghidra through 10.2.2 passes user-provided input into eval, leading
NSA Ghidra through 9.0.4, when experimental mode is enabled, allows arbitrary code execution if the Read XML Files featu
NSA Ghidra before 9.0.1 allows XXE when a project is opened or restored, or a tool is imported, as demonstrated by a pro
NSA Ghidra before 9.0.2 is vulnerable to DLL hijacking because it loads jansi.dll from the current working directory. Ra
In NSA Ghidra before 9.1, path traversal can occur in RestoreTask.java (from the package ghidra.app.plugin.core.archive)
SQL injection in Ghidra's BSim binary-similarity component (versions before 12.1) allows authenticated remote attackers
Authentication bypass in NSA Ghidra versions prior to 12.1 allows any holder of a valid CA-signed certificate to imperso
SQL injection in Ghidra's PostgreSQL collaboration backend (versions 11.0 through pre-12.1) allows authenticated users t
Remote code execution in NSA Ghidra before version 12.1 allows attackers to execute arbitrary commands when a user opens
Command injection in Ghidra versions before 12.1 on Windows allows attackers to execute arbitrary OS commands under the
Arbitrary file write in NSA's Ghidra reverse-engineering framework before version 12.0.4 allows attackers to escape the
Arbitrary file write in NSA Ghidra versions prior to 12.0.2 allows local attackers to achieve code execution by tricking
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-17042