Description
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.
Published: 2026-08-03
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Ghidra contains a vulnerability in its Swift demangler analyzer that allows an attacker to execute arbitrary binaries by placing a crafted Swift tool directory path in the project state. When a victim opens the malicious project, the SwiftDemanglerAnalyzer restores the stored path and SwiftNativeDemangler launches the binary without performing any integrity or signature checks. The attacker’s executable runs with the privileges of the Ghidra process owner and no user confirmation is prompted. This flaw meets the definition of CWE‑427, an uncontrolled search path element, because the analyzer accepts an unchecked path and passes it directly to an execution routine.

Affected Systems

The affected product is National Security Agency’s Ghidra. No specific version numbers are listed, so any installation prior to the remediation commit (c03a70d) may be vulnerable. The issue exists in the Swift demangler analyzer component of Ghidra.

Risk and Exploitability

The CVSS score of 7.1 classifies the vulnerability as moderate‑to‑high severity. EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. The attack requires a maliciously crafted Ghidra project file; it is triggered when the user opens the project. Because the payload runs under the Ghidra process’s user context and there is no prompt, an attacker who obtains this capability can gain arbitrary code execution with that user’s privileges. The lack of a signature or integrity check for the Swift binary directory means the path can be arbitrarily directed to attacker‑controlled executables.

Generated by OpenCVE AI on August 4, 2026 at 21:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Ghidra release that contains the Swift demangler patch (commit c03a70d).
  • If an upgrade cannot be performed immediately, remove or reset the persisted Swift tool directory path in the project’s state file or re‑import the project without the path to prevent the analyzer from executing an untrusted binary.
  • As a temporary safeguard, disable or uninstall the SwiftDemanglerAnalyzer plugin, or configure the operating system to block execution of binaries from untrusted or unknown locations.

Generated by OpenCVE AI on August 4, 2026 at 21:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Nsa
Nsa ghidra
CPEs cpe:2.3:a:nsa:ghidra:*:*:*:*:*:*:*:*
Vendors & Products Nsa
Nsa ghidra

Wed, 05 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Nationalsecurityagency
Nationalsecurityagency ghidra
Vendors & Products Nationalsecurityagency
Nationalsecurityagency ghidra

Tue, 04 Aug 2026 20:15:00 +0000


Tue, 04 Aug 2026 15:00:00 +0000


Mon, 03 Aug 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 03 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State
Weaknesses CWE-427
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7.1, 'vector': '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'}


Subscriptions

Nationalsecurityagency Ghidra
Nsa Ghidra
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T16:49:39.055Z

Reserved: 2026-08-03T16:42:07.892Z

Link: CVE-2026-18718

cve-icon Vulnrichment

Updated: 2026-08-03T21:17:16.529Z

cve-icon NVD

Status : Received

Published: 2026-08-03T17:16:36.447

Modified: 2026-08-04T20:16:50.833

Link: CVE-2026-18718

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:21:58Z

Weaknesses
  • CWE-427

    Uncontrolled Search Path Element