Vulnerability · Published Aug 3, 2026 · Assigned by VulnCheck
CVE-2026-18718Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State
High 7.0
In plain English
A high-severity uncontrolled search path in Ghidra from National Security Agency. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| National Security Agency | Ghidra | 0 – before 12.1.2 |
Weakness: CWE-427 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- GitHub Security Advisory vendor-advisory
- Patch Commit patch
- Product Repository product
- Blog Post technical-description
- https://www.vulncheck.com/advisories/ghidra-swift-demangler-analyzer-arbitrary-code-execution-via-project-state third-party-advisory
- https://sn0xs-organization.gitbook.io/sn0x-order.org/bb-web-hunt/critical/how-i-found-a-0-day-in-ghidra-shared-project-file-became-a-code-execution-vector technical-description