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

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-08-03T16:54:17.653Z
- Modified: 2026-11-08T14:01:08.783Z
- Weaknesses: CWE-427
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- National Security Agency Ghidra: before 12.1.2 (not affected: 12.1.3)

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- VulnCheck: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-pcfh-853f-q3gh> (vendor-advisory)
- <https://github.com/NationalSecurityAgency/ghidra/commit/c03a70d> (patch)
- <https://github.com/NationalSecurityAgency/ghidra> (product)
- <https://github.com/sn0x-sharma/CVE-2026-18718> (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)

## Sources

- CVE List: [CVE-2026-18718](https://www.cve.org/CVERecord?id=CVE-2026-18718), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-18718](https://nvd.nist.gov/vuln/detail/CVE-2026-18718), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-18718 · Whole record: https://cve.day/CVE-2026-18718.json · Rebuilt by cve.day 2026-11-25T22:59:30.880Z
