Skip to main content

Ghidra CVE-2026-18718

| EUVDEUVD-2026-52372 HIGH
Uncontrolled Search Path Element (CWE-427)
2026-08-03 VulnCheck GHSA-mfcj-9frg-f2r4
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious GZF project with attacker-controlled Swift binary path
  2. Delivery
    Deliver project file to victim via social engineering
  3. Exploit
    Victim opens project in Ghidra and triggers analysis
  4. Execution
    SwiftDemanglerAnalyzer deserializes and restores persisted Swift directory path
  5. Persist
    SwiftNativeDemangler resolves and executes attacker binary without verification
  6. Impact
    Arbitrary code executes as Ghidra process user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
Exploitation Conditions

Exploitation requires two concrete conditions: (1) the victim must open a Ghidra project file (GZF or GAR archive) that was crafted or tampered with by the attacker - the malicious Swift binary directory path must be embedded in the project's persistent analyzer options state; and (2) the Demangler Swift Analyzer must be active during analysis of the opened project, which is the default behavior when a binary containing mangled Swift symbols is analyzed. The attacker does not need network access to the victim's machine, does not need any authentication, and does not need the victim to explicitly invoke the Swift demangler - opening the project file and running analysis is sufficient. Exploitation is limited by: the need for social engineering to deliver the project file (UI:A); the local attack vector meaning the file must land on the victim's filesystem first (AV:L); and the high complexity (AC:H) of crafting a convincing project file that the victim will trust and open. No network-exposed port, service, or non-default configuration setting is required beyond the victim using the Swift demangler feature (which is enabled by default).

Impact

The CVSS 4.0 vector (AV:L/AC:H/AT:N/PR:N/UI:A) accurately captures that this is a file-delivery social engineering attack, not a network-exploitable vulnerability - the malicious project must reach the victim's local filesystem and the victim must actively open it. This substantially reduces mass-exploitation potential and explains the moderate 7.1 score despite full C/H/I/H/A/H impact. No EPSS data was provided, no CISA KEV listing exists, and no public proof-of-concept exploit code has been identified. Real-world risk is nonetheless meaningful for targeted attacks: Ghidra's primary user base - security researchers, malware analysts, and government/defense-sector professionals - routinely exchanges project files with colleagues, clients, and public repositories. A threat actor targeting a specific analyst or organization could credibly deliver a malicious project file through a shared analysis workflow or a trusted-channel phishing lure. The attack is low-noise and leaves no obvious warning to the victim. For defenders in high-value targets (defense, intelligence, critical infrastructure), this warrants prompt patching despite the lack of known exploitation.

Exploit ScenarioDerived

An attacker crafts a Ghidra project archive (.gzf) with the OPTION_NAME_SWIFT_DIR project setting pointing to an attacker-controlled directory containing a malicious executable named swift-demangle (or the platform-appropriate Swift demangler binary name), then delivers this file to a target security analyst via a shared analysis repository, a spear-phishing email, or a Slack/Teams message posing as a colleague sharing a malware sample project. When the analyst opens the project in Ghidra and triggers analysis on a binary containing Swift symbols, SwiftDemanglerAnalyzer restores the persisted directory path and SwiftNativeDemangler silently executes the attacker's binary with no prompt or confirmation, achieving code execution as the analyst's OS user. No public proof-of-concept exploit code has been identified at time of analysis.

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

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

Alert me

AnalysisAIv1 – Aug 03, 2026

Arbitrary code execution in the NSA's Ghidra reverse engineering framework allows an attacker who can deliver a malicious project file to execute arbitrary binaries as the victim's OS user when the victim opens the project. The SwiftDemanglerAnalyzer restores a user-supplied Swift binary directory path persisted in project state and passes it directly to SwiftNativeDemangler, which executes the resolved binary without any integrity or signature check - a textbook CWE-427 uncontrolled search path element. No public exploit has been identified at time of analysis and no CISA KEV listing exists, but the attack is fully described in a VulnCheck advisory and the upstream patch confirms the vulnerability mechanism.

RemediationAI

Apply the upstream fix at commit c03a70d (https://github.com/NationalSecurityAgency/ghidra/commit/c03a70d), which removes the Swift binary directory configuration option entirely and enforces PATH-only resolution for the native Swift demangler binary. Monitor the Ghidra releases page at https://github.com/NationalSecurityAgency/ghidra for a tagged release incorporating this commit, as an exact patched version number is not yet confirmed. As an immediate compensating control, disable the Demangler Swift Analyzer in Ghidra's analysis options (Analysis > Auto Analyze > uncheck 'Demangler Swift') before opening any project files received from external or untrusted sources - this prevents SwiftDemanglerAnalyzer from running and eliminates the attack vector entirely, with the trade-off that Swift symbol demangling will be unavailable during analysis. Additionally, establish a policy against opening Ghidra project files from untrusted parties until a patched release is available.

Affected VersionsENISA

Ghidra 0 <12.1.2

Affected Packages

euvd ghidra fix: 12.1.2

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 (CPE: cpe:2.3:a:national_security_agency:ghidra:*:*:*:*:*:*:*:*) is an open-source binary reverse engineering suite developed by the NSA. Its Swift demangler feature (SwiftDemanglerAnalyzer / SwiftNativeDemangler Java classes) previously accepted an optional file-system path - OPTION_NAME_SWIFT_DIR - specifying the directory containing the native Swift toolchain binary used for demangling Swift symbols. This path was serialized into the Ghidra project's persistent state (the GZF/GAR project archive). On project load, the analyzer would deserialize and restore this path, then execute whatever binary resided there. CWE-427 (Uncontrolled Search Path Element) is the root cause: the analyzer trusted an externally controlled path without any verification that the binary was the legitimate Swift demangler, had a valid code signature, or matched an expected hash. The fix (commit c03a70d) eliminates the configurable directory entirely, hardcoding PATH-only resolution for the Swift binary.

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 (VulnCheck) PRIMARY 7.1 HIGH
CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.0 HIGH

Local file delivery (AV:L) with social engineering dependency (AC:H); no privileges needed to craft malicious project (PR:N); victim must actively open project file (UI:R); full code execution impact on the vulnerable system only (S:U, C:H/I:H/A:H).

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Ghidra contains an arbitrary code execution vulnerability in the Swift demangler analyzer that allows an attacker to execute arbitrary binaries by supplying a malicious Ghidra project with a crafted Swift tool directory path. When a victim opens the attacker-supplied project, SwiftDemanglerAnalyzer restores the persisted Swift binary directory from project state and SwiftNativeDemangler executes the resolved binary without integrity or signature verification, causing attacker-controlled executables to run under the Ghidra process user with no prompt or confirmation.

Executive ViewAI

Why It Matters

A remote code execution vulnerability in NSA's Ghidra reverse engineering framework (CVE-2026-18718) allows arbitrary code execution when users open a malicious project file; no public exploit has been identified at time of analysis. Organizations using Ghidra for binary analysis face risk of research system compromise and potential lateral movement within security infrastructure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
specialized reverse engineering tool used primarily by security researchers and government analysts
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.2%
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
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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-4946 HIGH
8.8 Mar 29

Command injection in NSA Ghidra (versions before 12.0.3) executes arbitrary commands when analysts click on maliciously

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

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