CVE-2026-18718
published high CVSS 4.0 · 7.1Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| National Security Agency | — | Ghidra0 to < 12.1.2 (affected · semver) · 12.1.3 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.0 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| National Security Agency | Ghidra | 0 to < 12.1.2 (affected · semver)12.1.3 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-427 Uncontrolled Search Path Element
References
6- Product Repository https://github.com/NationalSecurityAgency/ghidra
- Patch Commit https://github.com/NationalSecurityAgency/ghidra/commit/c03a70d
- GitHub Security Advisory (GHSA-pcfh-853f-q3gh) https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-pcfh-853f-q3gh
- Blog Post https://github.com/sn0x-sharma/CVE-2026-18718
- 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
- https://www.vulncheck.com/advisories/ghidra-swift-demangler-analyzer-arbitrary-code-execution-via-project-state
Provider assertions
2VulnCheck · cna
Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e64fe96a3e42d5d2b319b893456fda6320d8526f505b45419b305cd261207d9b
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record