{"id":"CVE-2026-18718","summary":"Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State","details":"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.","aliases":["GHSA-pcfh-853f-q3gh"],"modified":"2026-09-26T03:30:30.334520489Z","published":"2026-08-03T16:54:17.653Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-427"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18718.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18718.json"},{"type":"ADVISORY","url":"https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-pcfh-853f-q3gh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18718"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ghidra-swift-demangler-analyzer-arbitrary-code-execution-via-project-state"},{"type":"FIX","url":"https://github.com/NationalSecurityAgency/ghidra/commit/c03a70d"},{"type":"PACKAGE","url":"https://github.com/NationalSecurityAgency/ghidra"},{"type":"ARTICLE","url":"https://github.com/sn0x-sharma/CVE-2026-18718"},{"type":"ARTICLE","url":"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nationalsecurityagency/ghidra","events":[{"introduced":"0"},{"fixed":"c03a70d"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"12.1.2"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-18718.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}