CVE-2026-18718 Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State
Attackers can execute arbitrary code by tricking users into opening a malicious Ghidra project with a crafted Swift tool path.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-18718?
CVE-2026-18718 is a high-severity code injection vulnerability in National Security Agency Ghidra, published on 3 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-427
Which versions are affected by CVE-2026-18718?
How do I fix CVE-2026-18718?
No fix has been published for CVE-2026-18718 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-18718 being exploited?
There is no known exploitation of CVE-2026-18718 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-mfcj-9frg-f2r4, GHSA-pcfh-853f-q3gh.