{"id":"CVE-2026-18718","published":"2026-08-03T16:54:17Z","modified":"2026-11-08T14:01:08Z","title":"Ghidra Swift Demangler Analyzer Arbitrary Code Execution via Project State","vendor":"National Security Agency","product":"Ghidra","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00174,"percentile":0.0404,"provenance":"source"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"references":[{"url":"https://github.com/NationalSecurityAgency/ghidra/security/advisories/GHSA-pcfh-853f-q3gh","tags":["vendor-advisory"]},{"url":"https://github.com/NationalSecurityAgency/ghidra/commit/c03a70d","tags":["patch"]},{"url":"https://github.com/NationalSecurityAgency/ghidra","tags":["product"]},{"url":"https://github.com/sn0x-sharma/CVE-2026-18718","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/ghidra-swift-demangler-analyzer-arbitrary-code-execution-via-project-state","tags":["third-party-advisory"]},{"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","tags":["technical-description"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":0.81},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.9}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-08-03","earliestUrl":"https://github.com/sn0x-sharma/CVE-2026-18718","repos":[{"name":"sn0x-sharma/CVE-2026-18718","url":"https://github.com/sn0x-sharma/CVE-2026-18718","stars":0,"created":"2026-08-03"}]},"first":{"date":"2026-08-03","source":"PoC-in-GitHub","url":"https://github.com/sn0x-sharma/CVE-2026-18718"},"provenance":"source"},"vendorSlug":"national-security-agency","affectedVersions":[{"vendor":"National Security Agency","product":"Ghidra","versions":["< 12.1.2"]}],"fixedVersions":[{"vendor":"National Security Agency","product":"Ghidra","versions":["12.1.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-03T21:17:08.036410Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-52372","exploited":false,"provenance":"source"}}