Skip to main content

Ghidra CVE-2026-4946

| EUVDEUVD-2026-17042 HIGH
OS Command Injection (CWE-78)
2026-03-29 AHA
8.8
CVSS 3.1 · Vendor: AHA
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious binary with @execute annotation in CFString
  2. Delivery
    Distribute binary to analyst
  3. Exploit
    Analyst opens binary in Ghidra UI
  4. Execution
    Click on generated comment text
  5. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Ghidra 0 <12.0.3

Affected Packages

euvd ghidra fix: 12.0.3

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

Vendor (AHA) PRIMARY 8.8 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 06:11 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
12.0.3
CVE Published
Mar 29, 2026 - 19:35 nvd
HIGH 8.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 87% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Ghidra

View all
CVE-2023-22671 CRITICAL POC
9.8 Jan 06

Ghidra/RuntimeScripts/Linux/support/launch.sh in NSA Ghidra through 10.2.2 passes user-provided input into eval, leading

CVE-2019-16941 CRITICAL POC
9.8 Sep 28

NSA Ghidra through 9.0.4, when experimental mode is enabled, allows arbitrary code execution if the Read XML Files featu

CVE-2019-13625 CRITICAL POC
9.1 Jul 17

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

CVE-2019-17665 HIGH POC
7.8 Oct 16

NSA Ghidra before 9.0.2 is vulnerable to DLL hijacking because it loads jansi.dll from the current working directory. Ra

CVE-2019-13623 HIGH POC
7.8 Jul 17

In NSA Ghidra before 9.1, path traversal can occur in RestoreTask.java (from the package ghidra.app.plugin.core.archive)

CVE-2026-52758 HIGH
8.7 Jun 10

SQL injection in Ghidra's BSim binary-similarity component (versions before 12.1) allows authenticated remote attackers

CVE-2026-52754 HIGH
8.7 Jun 10

Authentication bypass in NSA Ghidra versions prior to 12.1 allows any holder of a valid CA-signed certificate to imperso

CVE-2026-49498 HIGH
8.7 Jun 10

SQL injection in Ghidra's PostgreSQL collaboration backend (versions 11.0 through pre-12.1) allows authenticated users t

CVE-2026-52751 HIGH
8.6 Jun 10

Remote code execution in NSA Ghidra before version 12.1 allows attackers to execute arbitrary commands when a user opens

CVE-2026-52750 HIGH
8.4 Jun 10

Command injection in Ghidra versions before 12.1 on Windows allows attackers to execute arbitrary OS commands under the

CVE-2026-52755 HIGH
8.4 Jun 10

Arbitrary file write in NSA's Ghidra reverse-engineering framework before version 12.0.4 allows attackers to escape the

CVE-2026-52752 HIGH
8.4 Jun 10

Arbitrary file write in NSA Ghidra versions prior to 12.0.2 allows local attackers to achieve code execution by tricking

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy