Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious binary with @execute annotation in CFString
-
DeliveryDistribute binary to analyst
-
ExploitAnalyst opens binary in Ghidra UI
-
ExecutionClick on generated comment text
-
ImpactExecute arbitrary commands on analyst machine
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Victim must open a crafted binary (e.g., Mach-O executable containing malicious CFStrings) in Ghidra versions prior to 12.0.3 and click on the attacker-injected @execute annotation text in the UI. Affects all default Ghidra installations with auto-analysis enabled. |
| Impact | Real-world risk is HIGH for targeted supply-chain or watering-hole attacks against reverse engineers and malware analysts. The CVSS vector (AV:N/AC:L/PR:N/UI:R) indicates remote delivery with low complexity but requires user interaction-an analyst must open a malicious binary and click rendered annotations. Attack complexity is genuinely low: adversaries need only craft CFStrings or similar metadata in a binary, which is trivial with standard toolchains. Exploitation is not automatable (SSVC: no) due to the UI interaction requirement, but technical impact is maximal (arbitrary code execution in the analyst's security context). No CISA KEV listing suggests this is not yet exploited at scale, but the attack surface-malware samples shared in research communities, CTF binaries, or poisoned open-source repositories-is substantial. EPSS unavailable, but the combination of high CVSS, low exploitation skill requirement, and high-value target base (security researchers with privileged system access) elevates priority. This is NOT a theoretical risk: the vendor advisory confirms exploitability, and the attack method (poisoned samples delivered to sandboxed analysis environments) aligns with APT tradecraft for compromising security teams. |
| Exploit ScenarioDerived | An APT group targeting cybersecurity researchers embeds @execute directives with reverse shell payloads inside CFString constants of a Mach-O malware sample, then shares the binary on Twitter as a novel macOS threat for community analysis. A malware analyst downloads the sample, opens it in Ghidra 12.0.2, and auto-analysis extracts the weaponized strings into clickable UI comments. When the analyst clicks what appears to be a benign annotation (e.g., 'Click for decrypted config'), Ghidra executes the embedded Python code, establishing a reverse HTTPS shell to attacker infrastructure, bypassing the analyst's EDR by leveraging Ghidra's trusted JVM process. The attacker pivots to steal proprietary detection signatures and zero-day research from the compromised workstation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 29, 2026
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.
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).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Ghidra gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
Lifecycle Timeline
3DescriptionCVE.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.
Executive ViewAI
Ghidra versions before 12.0.3 contain a command injection vulnerability that allows attackers to execute arbitrary commands on analyst workstations through maliciously crafted binary files. Security researchers and reverse engineers using affected Ghidra instances face direct compromise risk when analyzing untrusted binaries, potentially exposing sensitive analysis environments and intellectual property.
Vendor-released patch: Upgrade to Ghidra 12.0.3 or later. Interim mitigations: (1) Disable auto-extraction of CFStrings and similar binary string annotations in Ghidra preferences; (2) isolate Ghidra workstations on segmented networks with egress filtering; (3) require malware samples be analyzed in air-gapped or containerized environments; (4) restrict analyst access to Ghidra only for approved reverse engineering tasks with mandatory peer review before execution of extracted directives.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
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
EUVD-2026-17042
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB