CVE-2026-4946

NSA Ghidra Auto-Analysis Annotation Command Execution

Published Mar 29, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

An engineered binary containing an @execute annotation tricks Ghidra’s auto‑analysis into displaying clickable text that, when the analyst clicks it, runs attacker‑supplied commands on the analyst’s machine. This abuses an OS command injection weakness (CWE‑78) and results in arbitrary code execution within the Ghidra process, compromising confidentiality, integrity, and availability of the system hosting the analysis.

Affected Systems

The flaw is present in all releases of Ghidra from the National Security Agency that precede version 12.0.3. Users who open malcrafted binaries containing CFStrings or similar metadata in these older versions are vulnerable whenever they interact with the generated annotation sentences.

Risk and Exploitability

The vulnerability carries a CVSS base score of 8.8, marking it high severity. No EPSS score is available and the flaw is currently not listed in CISA’s KEV catalog. The attacker must supply a malicious binary and rely on the analyst clicking the deceptive annotation; if this happens the exploit succeeds and commands execute with the privileges of the Ghidra process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Ghidra release (12.0.3 or newer).
  • If an upgrade cannot be performed immediately, disable auto‑analysis of data sources that generate annotation directives such as CFStrings.
  • Limit analyst interaction with annotation links from untrusted binaries and verify the source of any binary before opening it.
  • Monitor analyst workstations for unexpected command‑line activity and enforce least‑privilege execution for Ghidra.

Generated by OpenCVE AI on March 29, 2026 at 20:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Nsa
Nsa ghidra
Vendors & Products Nsa
Nsa ghidra
Type Values Removed Values Added
Description 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.
Title NSA Ghidra Auto-Analysis Annotation Command Execution
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
AHA
Published
Updated
Mar 30, 2026, 3:00 PM
Reserved
Mar 27, 2026, 2:17 AM
Status
Analyzed
Published
Mar 29, 2026, 8:16 PM
Modified
Aug 10, 2026, 2:08 PM